2020-12-10 14:52:35 +01:00
|
|
|
import '../../support/authenticateUser'
|
|
|
|
|
|
|
|
describe('The Menu', () => {
|
|
|
|
it('Is visible by default on desktop', () => {
|
|
|
|
cy.get('.namespace-container')
|
|
|
|
.should('have.class', 'is-active')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('Can be hidden on desktop', () => {
|
2021-11-13 15:16:14 +01:00
|
|
|
cy.get('button.menu-show-button:visible')
|
2020-12-10 14:52:35 +01:00
|
|
|
.click()
|
|
|
|
cy.get('.namespace-container')
|
|
|
|
.should('not.have.class', 'is-active')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('Is hidden by default on mobile', () => {
|
|
|
|
cy.viewport('iphone-8')
|
|
|
|
cy.get('.namespace-container')
|
|
|
|
.should('not.have.class', 'is-active')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('Is can be shown on mobile', () => {
|
|
|
|
cy.viewport('iphone-8')
|
2021-11-13 15:16:14 +01:00
|
|
|
cy.get('button.menu-show-button:visible')
|
2020-12-10 14:52:35 +01:00
|
|
|
.click()
|
|
|
|
cy.get('.namespace-container')
|
|
|
|
.should('have.class', 'is-active')
|
|
|
|
})
|
|
|
|
})
|