This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
835c809
commit 14d7b50
Showing
7 changed files
with
67 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ const premiumUser = { | |
name: "Automated Test Premium User", | ||
email: "[email protected]", | ||
username: "_test-profile-user-6", | ||
type: "premium", | ||
accountType: "premium", | ||
}; | ||
|
||
test("Guest user cannot access premium locations stats", async ({ | ||
|
@@ -25,7 +25,7 @@ test("Logged in free user cannot access premium locations stats", async ({ | |
const page = await context.newPage(); | ||
await page.goto("/account/statistics/locations"); | ||
await page.waitForLoadState("networkidle"); | ||
await expect(page).toHaveURL(/account\/onboarding/); | ||
await expect(page).toHaveURL(/\/pricing/); | ||
}); | ||
|
||
test("Logged in premium user can access premium locations stats", async ({ | ||
|
@@ -46,7 +46,7 @@ test.describe("accessibility tests (light)", () => { | |
const page = await context.newPage(); | ||
await page.goto("/account/statistics/locations"); | ||
const accessibilityScanResults = await new AxeBuilder({ page }) | ||
.withTags(["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"]) | ||
.withTags([ "wcag2a", "wcag2aa", "wcag21a", "wcag21aa" ]) | ||
.analyze(); | ||
expect(accessibilityScanResults.violations).toEqual([]); | ||
}); | ||
|
@@ -62,7 +62,7 @@ test.describe("accessibility tests (dark)", () => { | |
const page = await context.newPage(); | ||
await page.goto("/account/statistics/locations"); | ||
const accessibilityScanResults = await new AxeBuilder({ page }) | ||
.withTags(["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"]) | ||
.withTags([ "wcag2a", "wcag2aa", "wcag21a", "wcag21aa" ]) | ||
.analyze(); | ||
expect(accessibilityScanResults.violations).toEqual([]); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters