test: opravy Playwright testů
CI / Generate TypeScript types (push) Successful in 14s
CI / Generate TypeScript types (pull_request) Successful in 9s
CI / Server unit tests (push) Successful in 25s
CI / Build server (push) Successful in 30s
CI / Server unit tests (pull_request) Successful in 18s
CI / Build client (push) Successful in 37s
CI / Build server (pull_request) Successful in 30s
CI / Build client (pull_request) Successful in 38s
CI / Playwright E2E tests (push) Failing after 2m33s
CI / Build and push Docker image (push) Has been skipped
CI / Playwright E2E tests (pull_request) Failing after 2m20s
CI / Notify (push) Successful in 2s
CI / Build and push Docker image (pull_request) Has been skipped
CI / Notify (pull_request) Has been skipped

This commit is contained in:
2026-04-29 21:55:41 +02:00
parent 6b2deff215
commit f8cfdf70f1
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -1,5 +1,4 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import { clearPizzaDay } from './helpers';
test.beforeEach(async ({ page, request }) => { test.beforeEach(async ({ page, request }) => {
// Vyčistíme volby dne, aby testy neovlivnily navzájem // Vyčistíme volby dne, aby testy neovlivnily navzájem
+2 -1
View File
@@ -141,8 +141,9 @@ router.post("/clear", async (req: Request<{}, any, any>, res, next) => {
const dateKey = formatDate(date); const dateKey = formatDate(date);
const data = await storage.getData<any>(dateKey); const data = await storage.getData<any>(dateKey);
// Vymažeme všechny volby // Vymažeme všechny volby i aktivní pizza day
data.choices = {}; data.choices = {};
delete data.pizzaDay;
await storage.setData(dateKey, data); await storage.setData(dateKey, data);