Skip to content

e2e test fix

e2e test fix #1186

Triggered via pull request March 6, 2025 12:56
Status Failure
Total duration 14m 25s
Artifacts 1

e2e-playwright.js.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 6 warnings, and 1 notice
playwright-e2e
Process completed with exit code 1.
[chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation: src/e2e/newConsultation.e2e.spec.ts#L1
1) [chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation Test timeout of 60000ms exceeded.
[chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation: src/e2e/newConsultation.e2e.spec.ts#L24
1) [chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation Error: locator.click: Test timeout of 60000ms exceeded. Call log: - waiting for locator('text=TutorSelect a person').locator('input[role="combobox"]') 22 | 23 | // Select a tutor, accounting for potential loading delays > 24 | await page.locator('text=TutorSelect a person >> input[role="combobox"]').click(); | ^ 25 | await page.waitForSelector('.ant-select-dropdown .rc-virtual-list .ant-select-item-option', { 26 | timeout: 5000, 27 | }); at /home/runner/work/Admin/Admin/src/e2e/newConsultation.e2e.spec.ts:24:79
[chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation: src/e2e/newConsultation.e2e.spec.ts#L1
1) [chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded.
[chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation: src/e2e/newConsultation.e2e.spec.ts#L24
1) [chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 60000ms exceeded. Call log: - waiting for locator('text=TutorSelect a person').locator('input[role="combobox"]') 22 | 23 | // Select a tutor, accounting for potential loading delays > 24 | await page.locator('text=TutorSelect a person >> input[role="combobox"]').click(); | ^ 25 | await page.waitForSelector('.ant-select-dropdown .rc-virtual-list .ant-select-item-option', { 26 | timeout: 5000, 27 | }); at /home/runner/work/Admin/Admin/src/e2e/newConsultation.e2e.spec.ts:24:79
[chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation: src/e2e/newConsultation.e2e.spec.ts#L1
1) [chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 60000ms exceeded.
[chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation: src/e2e/newConsultation.e2e.spec.ts#L24
1) [chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 60000ms exceeded. Call log: - waiting for locator('text=TutorSelect a person').locator('input[role="combobox"]') 22 | 23 | // Select a tutor, accounting for potential loading delays > 24 | await page.locator('text=TutorSelect a person >> input[role="combobox"]').click(); | ^ 25 | await page.waitForSelector('.ant-select-dropdown .rc-virtual-list .ant-select-item-option', { 26 | timeout: 5000, 27 | }); at /home/runner/work/Admin/Admin/src/e2e/newConsultation.e2e.spec.ts:24:79
[chromium] › src/e2e/newCourse.e2e.spec.ts:10:7 › New course › create and delete new course: src/e2e/newCourse.e2e.spec.ts#L31
2) [chromium] › src/e2e/newCourse.e2e.spec.ts:10:7 › New course › create and delete new course ─── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('.ant-message-notice') Expected string: "Course saved successfully" Received: <element(s) not found> Call log: - expect.toContainText with timeout 5000ms - waiting for locator('.ant-message-notice') - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" 29 | 30 | const courseSavedAlert = await page.locator('.ant-message-notice'); > 31 | await expect(courseSavedAlert).toContainText('Course saved successfully'); | ^ 32 | 33 | await page.goto(`${BASE_URL}${routerType}courses/list`); 34 | await page.waitForSelector('.ant-table-tbody .ant-table-row-level-0', { state: 'visible' }); // w8 for initial list before querying at /home/runner/work/Admin/Admin/src/e2e/newCourse.e2e.spec.ts:31:36
[chromium] › src/e2e/newCourse.e2e.spec.ts:10:7 › New course › create and delete new course: src/e2e/newCourse.e2e.spec.ts#L31
2) [chromium] › src/e2e/newCourse.e2e.spec.ts:10:7 › New course › create and delete new course ─── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('.ant-message-notice') Expected string: "Course saved successfully" Received: <element(s) not found> Call log: - expect.toContainText with timeout 5000ms - waiting for locator('.ant-message-notice') - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" 29 | 30 | const courseSavedAlert = await page.locator('.ant-message-notice'); > 31 | await expect(courseSavedAlert).toContainText('Course saved successfully'); | ^ 32 | 33 | await page.goto(`${BASE_URL}${routerType}courses/list`); 34 | await page.waitForSelector('.ant-table-tbody .ant-table-row-level-0', { state: 'visible' }); // w8 for initial list before querying at /home/runner/work/Admin/Admin/src/e2e/newCourse.e2e.spec.ts:31:36
[chromium] › src/e2e/newCourse.e2e.spec.ts:10:7 › New course › create and delete new course: src/e2e/newCourse.e2e.spec.ts#L31
2) [chromium] › src/e2e/newCourse.e2e.spec.ts:10:7 › New course › create and delete new course ─── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('.ant-message-notice') Expected string: "Course saved successfully" Received: <element(s) not found> Call log: - expect.toContainText with timeout 5000ms - waiting for locator('.ant-message-notice') - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" - locator resolved to <div class="ant-message-notice ant-message-notice-success">…</div> - unexpected value "Course created successfully" 29 | 30 | const courseSavedAlert = await page.locator('.ant-message-notice'); > 31 | await expect(courseSavedAlert).toContainText('Course saved successfully'); | ^ 32 | 33 | await page.goto(`${BASE_URL}${routerType}courses/list`); 34 | await page.waitForSelector('.ant-table-tbody .ant-table-row-level-0', { state: 'visible' }); // w8 for initial list before querying at /home/runner/work/Admin/Admin/src/e2e/newCourse.e2e.spec.ts:31:36
[chromium] › src/e2e/newStationaryEvents.e2e.spec.ts:11:7 › New stationary events › create and delete stationary events: src/e2e/newStationaryEvents.e2e.spec.ts#L1
3) [chromium] › src/e2e/newStationaryEvents.e2e.spec.ts:11:7 › New stationary events › create and delete stationary events Test timeout of 60000ms exceeded.
playwright-e2e
Docker network rm failed with exit code 1
Slow Test: [chromium] › src/e2e/logout.e2e.spec.ts#L1
[chromium] › src/e2e/logout.e2e.spec.ts took 53.7s
Slow Test: [chromium] › src/e2e/login.e2e.spec.ts#L1
[chromium] › src/e2e/login.e2e.spec.ts took 50.9s
Slow Test: [chromium] › src/e2e/newUser.e2e.spec.ts#L1
[chromium] › src/e2e/newUser.e2e.spec.ts took 32.5s
Slow Test: [chromium] › src/e2e/newCategory.e2e.spec.ts#L1
[chromium] › src/e2e/newCategory.e2e.spec.ts took 18.3s
Slow Test: [chromium] › src/e2e/newProduct.spec.ts#L1
[chromium] › src/e2e/newProduct.spec.ts took 15.9s
🎭 Playwright Run Summary
5 failed [chromium] › src/e2e/newConsultation.e2e.spec.ts:10:7 › New consultation › create and delete consultation [chromium] › src/e2e/newCourse.e2e.spec.ts:10:7 › New course › create and delete new course ──── [chromium] › src/e2e/newStationaryEvents.e2e.spec.ts:11:7 › New stationary events › create and delete stationary events [chromium] › src/e2e/newUserGroup.e2e.spec.ts:10:7 › New user group › create and delete new user group [chromium] › src/e2e/newVoucher.e2e.spec.ts:10:7 › New voucher › create and delete new voucher ─ 5 passed (8.4m)

Artifacts

Produced during runtime
Name Size
test-results
37.5 MB