mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-20 02:08:33 -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>
25 lines
655 B
TypeScript
25 lines
655 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("add-new-button").click();
|
|
|
|
await page.getByLabel("Text").fill("looking for a cool team");
|
|
|
|
await submit(page);
|
|
|
|
// got redirected
|
|
await expect(page.getByTestId("add-new-button")).toBeVisible();
|
|
await expect(page.getByText("looking for a cool team")).toBeVisible();
|
|
});
|
|
});
|