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
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:
@@ -1,5 +1,4 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { clearPizzaDay } from './helpers';
|
||||
|
||||
test.beforeEach(async ({ page, request }) => {
|
||||
// Vyčistíme volby dne, aby testy neovlivnily navzájem
|
||||
|
||||
@@ -141,8 +141,9 @@ router.post("/clear", async (req: Request<{}, any, any>, res, next) => {
|
||||
const dateKey = formatDate(date);
|
||||
const data = await storage.getData<any>(dateKey);
|
||||
|
||||
// Vymažeme všechny volby
|
||||
// Vymažeme všechny volby i aktivní pizza day
|
||||
data.choices = {};
|
||||
delete data.pizzaDay;
|
||||
|
||||
await storage.setData(dateKey, data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user