feat: publish open alpha policies
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import AxeBuilder from "@axe-core/playwright";
|
||||
import { expect, test } from "@playwright/test";
|
||||
|
||||
for (const path of ["/", "/records", "/report"]) {
|
||||
for (const path of ["/", "/records", "/report", "/rules", "/privacy"]) {
|
||||
test(`${path} has no serious accessibility violations`, async ({ page }) => {
|
||||
await page.goto(path);
|
||||
const results = await new AxeBuilder({ page }).withTags(["wcag2a", "wcag2aa", "wcag21aa"]).analyze();
|
||||
|
||||
@@ -11,6 +11,7 @@ test("production bootstrap supports submission and moderation", async ({ page, r
|
||||
await page.getByLabel("Координата X *").fill(String(x));
|
||||
await page.getByLabel("Координата Y *").fill(String(y));
|
||||
await page.getByLabel("Вес, граммы *").fill("4321");
|
||||
await page.getByLabel(/Я отправляю собственное наблюдение/).check();
|
||||
await page.getByLabel("Ник игрока").fill(player);
|
||||
await page.getByRole("button", { name: "Отправить на проверку" }).click();
|
||||
await expect(page.getByText("Улов отправлен на модерацию. Спасибо!")).toBeVisible();
|
||||
|
||||
@@ -25,6 +25,7 @@ test("submitted catch appears publicly only after moderation", async ({ page })
|
||||
await page.getByLabel("Координата Y *").fill(String(y));
|
||||
await page.getByLabel("Вес, граммы *").fill("6789");
|
||||
await page.getByLabel("Ник игрока").fill(player);
|
||||
await page.getByLabel(/Я отправляю собственное наблюдение/).check();
|
||||
await page.getByRole("button", { name: "Отправить на проверку" }).click();
|
||||
await expect(page.getByText("Улов отправлен на модерацию. Спасибо!")).toBeVisible();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user