sendou.ink/e2e/lfg.spec.ts
Kalle fd48bced91
Migrate Prettier/Eslint/Stylelint setup to Biome (#1772)
* 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>
2024-06-24 13:07:17 +03:00

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();
});
});