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

Commit

Permalink
tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Dec 15, 2022
1 parent b98dc6a commit c31e9b9
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions cypress/e2e/block-basics.cy.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import { setupBeforeEach, tearDownAfterEach } from '../support/e2e';
// import { setupBeforeEach, tearDownAfterEach } from '../support/e2e';

describe('Blocks Tests', () => {
beforeEach(setupBeforeEach);
afterEach(tearDownAfterEach);
// describe('Blocks Tests', () => {
// beforeEach(setupBeforeEach);
// afterEach(tearDownAfterEach);

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}',
// );
// // 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');
});
});
// 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}',
// // );
// // // 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 c31e9b9

Please sign in to comment.