1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-12-08 00:44:30 +01:00
.profile/cypress/e2e/pages/index.cy.ts

19 lines
456 B
TypeScript
Raw Normal View History

describe("Page /", () => {
2022-09-04 20:40:58 +02:00
beforeEach(() => {
return cy.visit("/")
2022-09-04 20:40:58 +02:00
})
2021-08-13 15:48:29 +02:00
it("should reveals the sections while scrolling except the about section", () => {
const sectionsReveals = ["#interests", "#skills", "#portfolio"]
cy.get("#about").should("be.visible")
2021-08-13 15:48:29 +02:00
for (const section of sectionsReveals) {
cy.get(section)
.should("not.be.visible")
2021-08-13 15:48:29 +02:00
.scrollIntoView()
.should("be.visible")
2021-08-13 15:48:29 +02:00
}
})
})
export {}