koel/cypress/integration/layout.spec.ts

20 lines
471 B
TypeScript
Raw Permalink Normal View History

2020-12-30 18:56:41 +00:00
context('Application Layout', () => {
it('renders a proper layout', () => {
cy.$login()
;[
'#mainHeader',
'#searchForm',
'#userBadge',
'#mainHeader .about',
'#mainWrapper',
'#sidebar',
'#mainContent',
'#extra',
'#mainFooter',
'#mainFooter .player-controls',
'#mainFooter .middle-pane',
'#mainFooter .other-controls'
].forEach(selector => cy.get(selector).should('be.visible'))
})
})