test: add new tests for multiple examples

Added tests for CSS modules, Custom Documents and the Default Editor example
This commit is contained in:
Dominik Biedebach
2022-05-11 11:44:14 +02:00
committed by Dominik
parent 790aaeb915
commit 3d0074b294
15 changed files with 538 additions and 20 deletions

View File

@@ -0,0 +1,11 @@
context('/src/Examples/CSSModules/React/', () => {
before(() => {
cy.visit('/src/Examples/CSSModules/React/')
})
it('should apply a randomly generated class that adds padding and background color to the toolbar', () => {
cy.get('.toolbar').should('exist')
cy.get('.toolbar').should('have.css', 'background-color', 'rgb(255, 0, 0)')
cy.get('.toolbar').should('have.css', 'padding', '16px')
})
})