docs: add cypress test

This commit is contained in:
MapleLeaf
2022-01-10 15:06:55 -06:00
parent 4f463bfa23
commit 87cbf1b74d
13 changed files with 758 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
describe("main popover menu", () => {
it("should toggle on button click", () => {
cy.viewport(480, 720)
cy.visit("/")
cy.findByRole("button", { name: "Menu" }).click()
cy.findByRole("menu").should("be.visible")
cy.findByRole("button", { name: "Menu" }).click()
cy.findByRole("menu").should("not.exist")
})
})