e2e: enable console-gate on smoke spec

This commit is contained in:
2026-04-25 02:51:58 +03:00
parent 36ad9cac3d
commit 6c30e8ae09
+5 -5
View File
@@ -1,7 +1,7 @@
import { test, expect } from "@playwright/test";
import { test, expect } from "./fixtures/console-gate";
test.describe("Smoke tests", () => {
test("root / redirects to /ru/onlineboard", async ({ page }) => {
test("root / redirects to /ru/onlineboard", async ({ page, consoleMessages }) => {
await page.goto("/");
await page.waitForLoadState("domcontentloaded");
@@ -26,7 +26,7 @@ test.describe("Smoke tests", () => {
}
});
test("/ru/smoke renders with Russian text", async ({ page }) => {
test("/ru/smoke renders with Russian text", async ({ page, consoleMessages }) => {
await page.goto("/ru/smoke");
await page.waitForLoadState("domcontentloaded");
@@ -39,7 +39,7 @@ test.describe("Smoke tests", () => {
await expect(page.locator("text=ru")).toBeVisible();
});
test("/en/smoke renders with English text", async ({ page }) => {
test("/en/smoke renders with English text", async ({ page, consoleMessages }) => {
await page.goto("/en/smoke");
await page.waitForLoadState("domcontentloaded");
@@ -50,7 +50,7 @@ test.describe("Smoke tests", () => {
await expect(page.locator("text=en")).toBeVisible();
});
test("/xx/smoke shows 404 or unknown locale message", async ({ page }) => {
test("/xx/smoke shows 404 or unknown locale message", async ({ page, consoleMessages }) => {
await page.goto("/xx/smoke");
await page.waitForLoadState("domcontentloaded");