Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Update tests2
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Jul 29, 2022
1 parent bc2f734 commit 69e5fda
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions cypress/integration/block-basics.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,20 @@ describe('Blocks Tests', () => {
// .type('My Add-on Page')
// .get('.documentFirstHeading span[data-text]')
// .contains('My Add-on Page');

// cy.get('.documentFirstHeading > .public-DraftStyleDefault-block').type(
// '{enter}',
// );

// Add block
cy.get('.ui.basic.icon.button.block-add-button').first().click();
//cy.get('.blocks-chooser .title').contains('Common Blocks').click();
cy.get('.content.active.common_blocks .button.image')
.contains('Image')
.click();

// Save
cy.get('#toolbar-save').click();
cy.url().should('eq', Cypress.config().baseUrl + '/cypress/my-page');

// then the page view should contain our changes
cy.contains('My Page');
cy.get('.block.image');
// // Add block
// cy.get('.ui.basic.icon.button.block-add-button').first().click();
// //cy.get('.blocks-chooser .title').contains('Common Blocks').click();
// cy.get('.content.active.common_blocks .button.image')
// .contains('Image')
// .click();
// // Save
// cy.get('#toolbar-save').click();
// cy.url().should('eq', Cypress.config().baseUrl + '/cypress/my-page');
// // then the page view should contain our changes
// cy.contains('My Page');
// cy.get('.block.image');
});
});

0 comments on commit 69e5fda

Please sign in to comment.