mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-05-18 11:13:15 +12:00
17 lines
408 B
TypeScript
17 lines
408 B
TypeScript
import DataCyComponent from '../data-cy.vue'
|
|
|
|
describe('dataCy command', () => {
|
|
it('works as a parent command', () => {
|
|
cy.mount(DataCyComponent)
|
|
|
|
cy.dataCy('wrapper').should('exist')
|
|
cy.dataCy('paragraph').should('exist').and('contain', 'Test')
|
|
})
|
|
|
|
it('works as a child command', () => {
|
|
cy.mount(DataCyComponent)
|
|
|
|
cy.dataCy('wrapper').dataCy('paragraph').should('exist')
|
|
})
|
|
})
|