mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-20 22:21:27 -05:00
* Initial * Progress * Recent winners * Add button * Progress * Mobile nav initial * UI tweaks * Overflow * AnythingAdder links to places * Remove color for tournament showcase * Adjust SQ top banner based on if season is on right or not * Tournament participant count fixed * Log out * todo * Progress * Nav complete * Done? * Fix lint * Translate settings
26 lines
725 B
TypeScript
26 lines
725 B
TypeScript
import test, { expect } from "@playwright/test";
|
|
import { impersonate, navigate, seed, submit } from "~/utils/playwright";
|
|
import { LFG_PAGE } from "~/utils/urls";
|
|
|
|
test.describe("LFG", () => {
|
|
test("adds a new lfg post", async ({ page }) => {
|
|
await seed(page);
|
|
await impersonate(page);
|
|
await navigate({
|
|
page,
|
|
url: LFG_PAGE,
|
|
});
|
|
|
|
await page.getByTestId("anything-adder-menu-button").click();
|
|
await page.getByTestId("menu-item-lfgPost").click();
|
|
|
|
await page.getByLabel("Text").fill("looking for a cool team");
|
|
|
|
await submit(page);
|
|
|
|
// got redirected
|
|
await expect(page.getByTestId("add-filter-button")).toBeVisible();
|
|
await expect(page.getByText("looking for a cool team")).toBeVisible();
|
|
});
|
|
});
|