2023-10-23 23:11:59 +02:00
|
|
|
describe("Page /", () => {
|
2022-09-04 20:40:58 +02:00
|
|
|
beforeEach(() => {
|
2023-10-23 23:11:59 +02:00
|
|
|
return cy.visit("/")
|
2022-09-04 20:40:58 +02:00
|
|
|
})
|
2021-08-13 15:48:29 +02:00
|
|
|
|
2023-10-23 23:11:59 +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)
|
2023-10-23 23:11:59 +02:00
|
|
|
.should("not.be.visible")
|
2021-08-13 15:48:29 +02:00
|
|
|
.scrollIntoView()
|
2023-10-23 23:11:59 +02:00
|
|
|
.should("be.visible")
|
2021-08-13 15:48:29 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
2022-07-28 22:51:12 +02:00
|
|
|
|
|
|
|
export {}
|