Skip to content

Commit

Permalink
Adequate import in cypress commands, move to new helpers module
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Mar 22, 2024
1 parent 5657472 commit 7ae9bd1
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 15 deletions.
2 changes: 0 additions & 2 deletions packages/volto/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ const ploneAuthObj = {
pass: ploneAuth[1],
};

export * from './volto-slate';

// --- isInViewport ----------------------------------------------------------
Cypress.Commands.add('isInViewport', (element) => {
cy.get(element).then(($el) => {
Expand Down
1 change: 1 addition & 0 deletions packages/volto/cypress/support/helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './volto-slate';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach, getSlateBlockValue } from '../../../support/commands';
import { slateBeforeEach, getSlateBlockValue } from '../../../support/helpers';

describe('Block Tests', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests: Basic text format', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests: Links', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests: Bulleted lists', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests: Numbered lists', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('SlashMenu Test: Shortcuts', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests: Bold Bulleted lists', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests: paste external images', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests: external text containing html contents/tags ', () => {
beforeEach(slateBeforeEach);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { slateBeforeEach } from '../../../support/commands';
import { slateBeforeEach } from '../../../support/helpers';

describe('Block Tests: pasting content in table block', () => {
beforeEach(slateBeforeEach);
Expand Down

0 comments on commit 7ae9bd1

Please sign in to comment.