mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -05:00
* Initial * CSS lint * Test CI * Add 1v1, 2v2, and 3v3 Tags (#1771) * Initial * CSS lint * Test CI * Rename step --------- Co-authored-by: xi <104683822+ximk@users.noreply.github.com>
34 lines
860 B
TypeScript
34 lines
860 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
import { navigate, seed } from "~/utils/playwright";
|
|
import { topSearchPage, userPage } from "~/utils/urls";
|
|
|
|
test.describe("Top search", () => {
|
|
test("views different x rank placements", async ({ page }) => {
|
|
await seed(page);
|
|
|
|
await navigate({
|
|
page,
|
|
url: topSearchPage(),
|
|
});
|
|
|
|
await page.getByTestId("xsearch-select").selectOption("3-2023-TC-WEST");
|
|
await expect(page.getByText("Brasario")).toBeVisible();
|
|
});
|
|
|
|
test("navigates from user page to x search player page to x search", async ({
|
|
page,
|
|
}) => {
|
|
await seed(page);
|
|
|
|
await navigate({
|
|
page,
|
|
url: userPage({ customUrl: "sendou", discordId: "" }),
|
|
});
|
|
|
|
await page.getByTestId("placements-box").click();
|
|
await page.getByTestId("placement-row-0").click();
|
|
|
|
await expect(page.getByText("Twig?")).toBeVisible();
|
|
});
|
|
});
|