mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-05-18 11:13:15 +12:00
21 lines
619 B
TypeScript
21 lines
619 B
TypeScript
import LayoutContainer from 'app/test/cypress/wrappers/LayoutContainer.vue'
|
|
import QuasarDrawer from '../QuasarDrawer.vue'
|
|
|
|
describe('QuasarDrawer', () => {
|
|
it('should show a drawer', () => {
|
|
cy.mount(LayoutContainer, {
|
|
props: {
|
|
component: QuasarDrawer
|
|
}
|
|
})
|
|
cy.dataCy('drawer')
|
|
.should('exist')
|
|
.dataCy('button')
|
|
.should('not.be.visible')
|
|
cy.get('.q-scrollarea .scroll')
|
|
cy.get('.q-scrollarea .scroll').scrollTo('bottom', { duration: 500 })
|
|
cy.get('.q-scrollarea .scroll').dataCy('button')
|
|
cy.get('.q-scrollarea .scroll').should('be.visible')
|
|
})
|
|
})
|