Skip to content

Commit

Permalink
Undo cypress change
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Nov 11, 2021
1 parent 1f4333b commit b7f1db6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions cypress/integration/block-basics.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ describe('Blocks Tests', () => {

it('Add Block: Empty', () => {
// Change page title
// cy.get('.documentFirstHeading > .public-DraftStyleDefault-block')
// .clear()
// .type('My Add-on Page')
// .get('.documentFirstHeading span[data-text]')
// .contains('My Add-on Page');
//
// cy.get('.documentFirstHeading > .public-DraftStyleDefault-block').type(
// '{enter}',
// );
cy.get('.documentFirstHeading > .public-DraftStyleDefault-block')
.clear()
.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();
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const setupBeforeEach = () => {
cy.waitForResourceToLoad('@types');
cy.waitForResourceToLoad('my-page');
cy.navigate('/cypress/my-page/edit');
// cy.get(`.block.title [data-contents]`);
cy.get(`.block.title [data-contents]`);
};

export const tearDownAfterEach = () => {
Expand Down

0 comments on commit b7f1db6

Please sign in to comment.