Files
tiptap/demos/src/Examples/CSSModules/React/index.spec.js
Dominik Biedebach 3d0074b294 test: add new tests for multiple examples
Added tests for CSS modules, Custom Documents and the Default Editor example
2022-05-16 12:49:12 +02:00

12 lines
420 B
JavaScript

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')
})
})