mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
20 lines
474 B
TypeScript
20 lines
474 B
TypeScript
describe('Page /', () => {
|
|
beforeEach(() => cy.visit('/'))
|
|
|
|
it('should reveals the sections while scrolling except the about section', () => {
|
|
const sectionsReveals = [
|
|
'#interests',
|
|
'#skills',
|
|
'#portfolio',
|
|
'#open-source'
|
|
]
|
|
cy.get('#about').should('be.visible')
|
|
for (const section of sectionsReveals) {
|
|
cy.get(section)
|
|
.should('not.be.visible')
|
|
.scrollIntoView()
|
|
.should('be.visible')
|
|
}
|
|
})
|
|
})
|