test: opravy Playwright testů
CI / Generate TypeScript types (push) Successful in 10s
CI / Generate TypeScript types (pull_request) Successful in 9s
CI / Server unit tests (push) Successful in 19s
CI / Build server (push) Successful in 23s
CI / Server unit tests (pull_request) Failing after 7s
CI / Build server (pull_request) Failing after 8s
CI / Build client (pull_request) Failing after 8s
CI / Playwright E2E tests (pull_request) Has been skipped
CI / Build and push Docker image (pull_request) Has been skipped
CI / Notify (pull_request) Has been skipped
CI / Build client (push) Successful in 33s
CI / Playwright E2E tests (push) Failing after 4m13s
CI / Build and push Docker image (push) Has been skipped
CI / Notify (push) Successful in 3s

This commit is contained in:
2026-04-29 20:56:48 +02:00
parent d7c8a4663d
commit db1fe473cd
+2 -2
View File
@@ -30,7 +30,7 @@ test.describe.serial('pizza day životní cyklus', () => {
const createBtn = page.locator('.pizza-section button', { hasText: 'Založit Pizza day' }); const createBtn = page.locator('.pizza-section button', { hasText: 'Založit Pizza day' });
await expect(createBtn).toBeVisible({ timeout: 10_000 }); await expect(createBtn).toBeVisible({ timeout: 10_000 });
// Čekáme na odpověď API před reloadem jinak by reload přerušil probíhající request // Čekáme na odpověď API před reloadem jinak by reload přerušil probíhající request
const createResponse = page.waitForResponse(resp => resp.url().includes('/api/pizza/create')); const createResponse = page.waitForResponse(resp => resp.url().includes('/api/pizzaDay/create'));
await createBtn.click(); await createBtn.click();
await createResponse; await createResponse;
await page.reload(); await page.reload();
@@ -39,7 +39,7 @@ test.describe.serial('pizza day životní cyklus', () => {
// Přidáme pizzu přes API (obejde komplex SelectSearch) // Přidáme pizzu přes API (obejde komplex SelectSearch)
const token = await page.evaluate(() => localStorage.getItem('token')); const token = await page.evaluate(() => localStorage.getItem('token'));
const addResp = await page.request.post('/api/pizza/add', { const addResp = await page.request.post('/api/pizzaDay/add', {
headers: { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' }, headers: { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' },
data: { pizzaIndex: 0, pizzaSizeIndex: 0 }, data: { pizzaIndex: 0, pizzaSizeIndex: 0 },
}); });