1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

test(e2e): header should always be visible (sticky)

This commit is contained in:
Divlo
2022-02-23 09:03:10 +01:00
parent a467ea7aff
commit a2da9618af
6 changed files with 13 additions and 21 deletions

View File

@ -8,6 +8,10 @@ describe('Common > Header', () => {
.should('eq', '/blog')
})
it('should always be visible (sticky header)', () => {
cy.scrollTo('bottom').get('header').should('be.visible')
})
describe('Switch theme color (dark/light)', () => {
it('should switch theme from `dark` (default) to `light`', () => {
cy.get('[data-cy=switch-theme-dark]').should('be.visible')