Skip to content

Commit a657082

Browse files
committed
Add test for user-defined classes
1 parent 5923fc0 commit a657082

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

cypress/integration/test.spec.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,17 @@ describe('Integration Tests', () => {
275275
.get('._toastBtn')
276276
.click()
277277
})
278+
279+
it('Adds and merges user-defined classes', () => {
280+
cy.get('[data-btn=styleWithUserDefinedClasses]')
281+
.click()
282+
.get('._toastItem')
283+
.should('have.css', 'background-color', 'rgb(66, 153, 225)')
284+
.get('._toastContainer li')
285+
.should('have.class', 'custom')
286+
.and('have.class', 'merge1')
287+
.and('have.class', 'merge2')
288+
.get('._toastBtn')
289+
.click()
290+
})
278291
})

0 commit comments

Comments
 (0)