Skip to content

Commit

Permalink
Test settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed May 13, 2022
1 parent f2868ac commit f5117f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/test.yml

This file was deleted.

16 changes: 16 additions & 0 deletions tests/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,20 @@ test.describe("Tests", async () => {
await expect(landing.locator("#text")).toHaveText("Passwords match! Please wait!")
await landing.screenshot({ path: "tests/landing2.png" }) */
})

test("Test settings", async () => {
console.log("Settings")

// Click codes
await expect(settings.locator(".codes")).toHaveText("Codes")
await settings.locator(".codes").click()

await settings.screenshot({ path: "tests/settings0.png" })

// Click codes
await expect(settings.locator(".shortcuts")).toHaveText("Shortcuts")
await settings.locator(".shortcuts").click()

await settings.screenshot({ path: "tests/settings1.png" })
})
})

0 comments on commit f5117f5

Please sign in to comment.