Skip to content

Commit

Permalink
fix cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaelaCretu11 committed Sep 29, 2023
1 parent ded1b62 commit 557e299
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/01-block-columns.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ describe('Blocks Tests', () => {

cy.get('.documentFirstHeading').contains('My Add-on Page');

cy.getSlate().click();
cy.getSlate().click({force: true});

// Add block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.columnsBlock')
.contains('Columns')
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/01-block-group.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ describe('Blocks Tests', () => {

cy.get('.documentFirstHeading').contains('My Add-on Page');

cy.getSlate().click();
cy.getSlate().click({force: true});

// Add block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.group')
.contains('Section (Group)')
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/01-block-tabs.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ describe('Blocks Tests', () => {

cy.get('.documentFirstHeading').contains('My Add-on Page');

cy.getSlate().click();
cy.getSlate().click({force: true});

// Add block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Media').click();
cy.get('.content.active.media .button.image').contains('Image').click();

cy.getSlate().click();

cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.tabs_block')
.contains('Tabs')
Expand All @@ -44,7 +44,7 @@ describe('Blocks Tests', () => {
cy.get('.tabs-block.edit [contenteditable=true]').first().type('Oxygen');

cy.getSlate().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.tabs_block')
.contains('Tabs')
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/01-blocks-accordion.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ describe('Blocks Tests', () => {

cy.get('.documentFirstHeading').contains('My Add-on Page');

cy.getSlate().click();
cy.getSlate().click({force: true});

// Add metadata block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.accordion')
.contains('Accordion')
Expand All @@ -37,7 +37,7 @@ describe('Blocks Tests', () => {
cy.getSlate().click();

// Add accordion block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.accordion')
.contains('Accordion')
Expand Down Expand Up @@ -74,7 +74,7 @@ describe('Blocks Tests', () => {
cy.getSlate().click();

// Add block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.accordion')
.contains('Accordion')
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/01-blocks-divider.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ describe('Blocks Tests', () => {

cy.get('.documentFirstHeading').contains('My Add-on Page');

cy.getSlate().click();
cy.getSlate().click({force: true});

// Add Divider block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.dividerBlock')
.contains('Divider')
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/01-blocks-metadata-section.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ describe('Blocks Tests', () => {

cy.get('.documentFirstHeading').contains('My Add-on Page');

cy.getSlate().click();
cy.getSlate().click({force: true});

// Add Metadata Section block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.metadataSection')
.contains('Metadata Section')
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/01-blocks-metadata.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ describe('Blocks Tests', () => {

cy.get('.documentFirstHeading').contains('My Add-on Page');

cy.getSlate().click();
cy.getSlate().click({force: true});

// Add Metadata block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
cy.get('.ui.basic.icon.button.block-add-button').first().click({force: true});
cy.get('.blocks-chooser .title').contains('Common').click();
cy.get('.content.active.common .button.metadata')
.contains('Metadata')
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/01-slate-footnote-block.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('Slate citations', () => {
.type('{selectAll}')
.dblclick();

cy.getSlate().dblclick();
cy.getSlate().dblclick({force: true});

// Footnote
cy.setSlateCursor('Colorless').dblclick();
Expand All @@ -29,7 +29,7 @@ describe('Slate citations', () => {
cy.get('.blocks-chooser .title').contains('Text').click();
cy.get('.content.active.text .button.slateFootnotes')
.contains('Footnotes')
.click();
.click({ force: true });

// Configure block
cy.get('[id=sidebar-properties] [name=title]').click().type('Footnotes');
Expand Down

0 comments on commit 557e299

Please sign in to comment.