feat: publish open alpha policies
CI / backend-and-migrations (push) Canceled after 0s
CI / astro-build (push) Canceled after 0s
CI / compose-e2e (push) Canceled after 0s

This commit is contained in:
ik
2026-09-07 09:29:26 +07:00
parent 16e4c071d1
commit 9e71215bd8
9 changed files with 32 additions and 5 deletions
+1 -1
View File
@@ -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();
+1
View File
@@ -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();