This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
generated from eea/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
// }); | ||
// }); |