Skip to content

Commit

Permalink
fix(test): change default instance url
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-r committed Jul 22, 2024
1 parent c07af4e commit ea9dbd4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion e2e/favorites.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { navigateTo, selectedInstance } from "./utils";

test("save card in favorites", async ({ page }) => {
await page.goto("localhost:3000");
await selectedInstance(page, "invidious.projectsegfau.lt");
await selectedInstance(page, "invidious.fdn.fr");

// Go to Trending page
await page.getByRole("button", { name: "Trending" }).click();
Expand Down
2 changes: 1 addition & 1 deletion e2e/player.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test.describe.serial("player", () => {
test.skip("play video", async ({ page }) => {
await page.goto("localhost:3000");

await selectedInstance(page, "invidious.projectsegfau.lt");
await selectedInstance(page, "invidious.fdn.fr");

await page.reload();

Expand Down
2 changes: 1 addition & 1 deletion e2e/playlists.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "./utils";

const createPlaylist = async (page, title: string) => {
await selectedInstance(page, "invidious.projectsegfau.lt");
await selectedInstance(page, "invidious.fdn.fr");
await navigateTo(page, "Playlists", "Playlists");

// Open modal to create playlist
Expand Down
2 changes: 1 addition & 1 deletion e2e/search.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.describe.serial("search", () => {
test("search an artist", async ({ page }) => {
await page.goto("localhost:3000");

await selectedInstance(page, "invidious.projectsegfau.lt");
await selectedInstance(page, "invidious.fdn.fr");

await search(page, "Eminem");
await search(page, "Dubstep");
Expand Down
6 changes: 3 additions & 3 deletions e2e/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ export const selectedInstance = async (page: Page, instanceUri: string) => {
page.getByRole("list", { name: "Invidious instances list" }),
).toBeVisible();
await expect(
page.getByRole("listitem", { name: "invidious.projectsegfau.lt" }),
page.getByRole("listitem", { name: "invidious.fdn.fr" }),
).toBeVisible();
await page
.getByRole("listitem", { name: "invidious.projectsegfau.lt" })
.getByRole("listitem", { name: "invidious.fdn.fr" })
.getByTestId("use")
.click();
await expect(
page.getByRole("listitem", { name: "invidious.projectsegfau.lt" }),
page.getByRole("listitem", { name: "invidious.fdn.fr" }),
).toHaveAttribute("aria-current", "true");
};

0 comments on commit ea9dbd4

Please sign in to comment.