Switch `page.locator` with `page.getByRole` and `page.getByText`
modified src/App/Header.svelte
@@ -72,7 +72,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/build/smoke.spec.ts
@@ -6,8 +6,8 @@ test("exceptions in production build", async ({ page }) => {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified tests/e2e/clipboard.spec.ts
@@ -42,16 +42,16 @@ test("copy to clipboard", async ({ page, browserName, context }) => {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified tests/e2e/hashRouter.spec.ts
@@ -17,7 +17,7 @@ test("navigate between landing and project page", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -34,7 +34,7 @@ test("navigation between seed and project pages", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -45,7 +45,7 @@ test.describe("project page navigation", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -60,7 +60,7 @@ test.describe("project page navigation", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -73,11 +73,11 @@ test.describe("project page navigation", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -95,11 +95,11 @@ test.describe("project page navigation", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified tests/e2e/historyRouter.spec.ts
@@ -17,7 +17,7 @@ test("navigate between landing and project page", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -34,7 +34,7 @@ test("navigation between seed and project pages", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -45,7 +45,7 @@ test.describe("project page navigation", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -63,7 +63,7 @@ test.describe("project page navigation", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -78,11 +78,11 @@ test.describe("project page navigation", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -100,11 +100,11 @@ test.describe("project page navigation", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified tests/e2e/landingPage.spec.ts
@@ -13,19 +13,17 @@ test("show pinned projects", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
modified tests/e2e/project.spec.ts
@@ -18,16 +18,14 @@ async function expectCounts(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -39,10 +37,10 @@ test("navigate to project", async ({ page }) => {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -62,18 +60,18 @@ test("navigate to project", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -137,7 +135,7 @@ test("navigate deep file hierarchies", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -159,7 +157,7 @@ test("navigate deep file hierarchies", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -213,7 +211,7 @@ test("binary files", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -230,14 +228,14 @@ test("hidden files", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -245,7 +243,7 @@ test("markdown files", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -263,12 +261,10 @@ test("clone modal", async ({ page }) => {
|
|
|
|
|
|
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -279,15 +275,15 @@ test("peer and branch switching", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -304,7 +300,7 @@ test("peer and branch switching", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -315,7 +311,7 @@ test("peer and branch switching", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -323,14 +319,14 @@ test("peer and branch switching", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -338,13 +334,13 @@ test("peer and branch switching", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -359,7 +355,7 @@ test("peer and branch switching", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -369,31 +365,31 @@ test("only one modal can be open at a time", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -406,11 +402,9 @@ test.describe("browser error handling", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -419,9 +413,9 @@ test.describe("browser error handling", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -431,7 +425,7 @@ test.describe("browser error handling", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -442,7 +436,7 @@ test.describe("browser error handling", () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/e2e/project/commit.spec.ts
@@ -12,10 +12,10 @@ const commitUrl = `${sourceBrowsingUrl}/commits/${bobHead}`;
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -41,18 +41,18 @@ test("modified file", async ({ page }) => {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -62,9 +62,9 @@ test("created file", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -74,9 +74,9 @@ test("deleted file", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -98,7 +98,7 @@ test("navigation to source tree at specific revision", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/e2e/project/issues.spec.ts
@@ -3,16 +3,16 @@ import { createProject } from "@tests/support/project";
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/e2e/project/patches.spec.ts
@@ -2,10 +2,10 @@ import { test, cobUrl, expect } from "@tests/support/fixtures.js";
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -14,23 +14,23 @@ test("navigate listing", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/e2e/seed.spec.ts
@@ -13,9 +13,9 @@ test("seed metadata", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -24,19 +24,17 @@ test("seed projects", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
modified tests/e2e/settings.spec.ts
@@ -17,7 +17,7 @@ test("default settings", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -34,7 +34,7 @@ test("settings persistance", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -58,7 +58,7 @@ test("change theme", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/visual/markdown.spec.ts
@@ -25,7 +25,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -36,7 +36,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -45,7 +45,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -54,9 +54,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -65,7 +63,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -74,7 +72,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -83,7 +81,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -98,22 +96,18 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -133,9 +127,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -144,7 +136,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -153,9 +145,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -164,7 +154,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -173,7 +163,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -182,7 +172,7 @@ test.describe("markdown rendering", async () => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/visual/mobile/project.spec.ts
@@ -50,6 +50,6 @@ test("commit page", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
modified tests/visual/project.spec.ts
@@ -47,6 +47,6 @@ test("commit page", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|