test: opravy Playwright testů
CI / Generate TypeScript types (pull_request) Failing after 7s
CI / Server unit tests (pull_request) Has been skipped
CI / Build server (pull_request) Has been skipped
CI / Build client (pull_request) Has been skipped
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 / Generate TypeScript types (push) Successful in 10s
CI / Build server (push) Failing after 7s
CI / Build client (push) Failing after 8s
CI / Playwright E2E tests (push) Has been skipped
CI / Server unit tests (push) Successful in 20s
CI / Build and push Docker image (push) Has been skipped
CI / Notify (push) Successful in 3s
CI / Generate TypeScript types (pull_request) Failing after 7s
CI / Server unit tests (pull_request) Has been skipped
CI / Build server (pull_request) Has been skipped
CI / Build client (pull_request) Has been skipped
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 / Generate TypeScript types (push) Successful in 10s
CI / Build server (push) Failing after 7s
CI / Build client (push) Failing after 8s
CI / Playwright E2E tests (push) Has been skipped
CI / Server unit tests (push) Successful in 20s
CI / Build and push Docker image (push) Has been skipped
CI / Notify (push) Successful in 3s
This commit is contained in:
@@ -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 },
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user