Skip to content

PMM e2e Tests(Playwright) #674

PMM e2e Tests(Playwright)

PMM e2e Tests(Playwright) #674

Triggered via schedule August 12, 2023 00:06
Status Failure
Total duration 14m 21s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention
Fit to window
Zoom out
Zoom in

Annotations

17 errors, 8 warnings, and 3 notices
Portal / Tests
Error setting status: No commit found for SHA: null Request object: { "context": "@portal UI tests", "description": "Test execution success", "state": "pending", "owner": "percona", "repo": "pmm-ui-tests", "sha": "null", "target_url": "https://github.com/percona/pmm-ui-tests/actions/runs/5838098935" }
Portal / Tests
Error setting status: No commit found for SHA: null Request object: { "context": "@portal UI tests", "description": "Test execution failure", "state": "failure", "owner": "percona", "repo": "pmm-ui-tests", "sha": "null", "target_url": "https://github.com/percona/pmm-ui-tests/actions/runs/5838098935" }
[chromium] › portal/connectPMM.spec.ts:43:7 › Spec file for connecting PMM to the portal › PMM-T398 Verify Percona Platform elements on PMM Settings Page @portal @pre-pmm-portal-upgrade: pmm-ui-tests/playwright-tests/api/helpers/portalApiHelper.ts#L6
1) [chromium] › portal/connectPMM.spec.ts:43:7 › Spec file for connecting PMM to the portal › PMM-T398 Verify Percona Platform elements on PMM Settings Page @portal @pre-pmm-portal-upgrade Error: Failed to execute portal request. Error: Error: apiRequestContext.post: Request timed out after 30000ms =========================== logs =========================== → POST https://portal-dev.percona.com/v1/orgs user-agent: Playwright/1.30.0 (x64; ubuntu 22.04) node/18.17 CI/1 accept: */* accept-encoding: gzip,deflate,br authorization: *** content-type: application/json content-length: 28 ============================================================ at ../api/helpers/portalApiHelper.ts:6 4 | 5 | const throwPortalRequestError = (e: string) => { > 6 | throw new Error(`Failed to execute portal request. Error: ${e}`); | ^ 7 | }; 8 | 9 | const checkAndReturnResponse = (r: APIResponse) => { at throwPortalRequestError (/home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/api/helpers/portalApiHelper.ts:6:9) at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/portal/connectPMM.spec.ts:31:23
[chromium] › portal/connectPMM.spec.ts:43:7 › Spec file for connecting PMM to the portal › PMM-T398 Verify Percona Platform elements on PMM Settings Page @portal @pre-pmm-portal-upgrade: pmm-ui-tests/playwright-tests/api/helpers/portalApiHelper.ts#L6
1) [chromium] › portal/connectPMM.spec.ts:43:7 › Spec file for connecting PMM to the portal › PMM-T398 Verify Percona Platform elements on PMM Settings Page @portal @pre-pmm-portal-upgrade Retry #1 --------------------------------------------------------------------------------------- Error: Failed to execute portal request. Error: Error: apiRequestContext.post: Request timed out after 30000ms =========================== logs =========================== → POST https://portal-dev.percona.com/v1/orgs user-agent: Playwright/1.30.0 (x64; ubuntu 22.04) node/18.17 CI/1 accept: */* accept-encoding: gzip,deflate,br authorization: *** content-type: application/json content-length: 28 ============================================================ at ../api/helpers/portalApiHelper.ts:6 4 | 5 | const throwPortalRequestError = (e: string) => { > 6 | throw new Error(`Failed to execute portal request. Error: ${e}`); | ^ 7 | }; 8 | 9 | const checkAndReturnResponse = (r: APIResponse) => { at throwPortalRequestError (/home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/api/helpers/portalApiHelper.ts:6:9) at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/portal/connectPMM.spec.ts:31:23
[chromium] › portal/connectPMM.spec.ts:43:7 › Spec file for connecting PMM to the portal › PMM-T398 Verify Percona Platform elements on PMM Settings Page @portal @pre-pmm-portal-upgrade: pmm-ui-tests/playwright-tests/api/helpers/portalApiHelper.ts#L6
1) [chromium] › portal/connectPMM.spec.ts:43:7 › Spec file for connecting PMM to the portal › PMM-T398 Verify Percona Platform elements on PMM Settings Page @portal @pre-pmm-portal-upgrade Retry #2 --------------------------------------------------------------------------------------- Error: Failed to execute portal request. Error: Error: apiRequestContext.post: Request timed out after 30000ms =========================== logs =========================== → POST https://portal-dev.percona.com/v1/orgs user-agent: Playwright/1.30.0 (x64; ubuntu 22.04) node/18.17 CI/1 accept: */* accept-encoding: gzip,deflate,br authorization: *** content-type: application/json content-length: 28 ============================================================ at ../api/helpers/portalApiHelper.ts:6 4 | 5 | const throwPortalRequestError = (e: string) => { > 6 | throw new Error(`Failed to execute portal request. Error: ${e}`); | ^ 7 | }; 8 | 9 | const checkAndReturnResponse = (r: APIResponse) => { at throwPortalRequestError (/home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/api/helpers/portalApiHelper.ts:6:9) at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/portal/connectPMM.spec.ts:31:23
[chromium] › portal/postPmmConnect.spec.ts:56:7 › Spec file for PMM connected the portal › Verify user roles are untouched after PMM server upgrade @not-ui-pipeline @portal @post-pmm-portal-upgrade: pmm-ui-tests/playwright-tests/helpers/FileHelper.ts#L9
2) [chromium] › portal/postPmmConnect.spec.ts:56:7 › Spec file for PMM connected the portal › Verify user roles are untouched after PMM server upgrade @not-ui-pipeline @portal @post-pmm-portal-upgrade Error: Could not read the file portalCredentials at ../helpers/FileHelper.ts:9 7 | } catch (e) { 8 | if (failOnError) { > 9 | throw new Error(`Could not read the file ${path}`); | ^ 10 | } 11 | } 12 | return null; at Object.readfile (/home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/helpers/FileHelper.ts:9:15) at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/portal/postPmmConnect.spec.ts:32:46
[chromium] › portal/postPmmConnect.spec.ts:56:7 › Spec file for PMM connected the portal › Verify user roles are untouched after PMM server upgrade @not-ui-pipeline @portal @post-pmm-portal-upgrade: pmm-ui-tests/playwright-tests/helpers/FileHelper.ts#L9
2) [chromium] › portal/postPmmConnect.spec.ts:56:7 › Spec file for PMM connected the portal › Verify user roles are untouched after PMM server upgrade @not-ui-pipeline @portal @post-pmm-portal-upgrade Retry #1 --------------------------------------------------------------------------------------- Error: Could not read the file portalCredentials at ../helpers/FileHelper.ts:9 7 | } catch (e) { 8 | if (failOnError) { > 9 | throw new Error(`Could not read the file ${path}`); | ^ 10 | } 11 | } 12 | return null; at Object.readfile (/home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/helpers/FileHelper.ts:9:15) at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/portal/postPmmConnect.spec.ts:32:46
[chromium] › portal/postPmmConnect.spec.ts:56:7 › Spec file for PMM connected the portal › Verify user roles are untouched after PMM server upgrade @not-ui-pipeline @portal @post-pmm-portal-upgrade: pmm-ui-tests/playwright-tests/helpers/FileHelper.ts#L9
2) [chromium] › portal/postPmmConnect.spec.ts:56:7 › Spec file for PMM connected the portal › Verify user roles are untouched after PMM server upgrade @not-ui-pipeline @portal @post-pmm-portal-upgrade Retry #2 --------------------------------------------------------------------------------------- Error: Could not read the file portalCredentials at ../helpers/FileHelper.ts:9 7 | } catch (e) { 8 | if (failOnError) { > 9 | throw new Error(`Could not read the file ${path}`); | ^ 10 | } 11 | } 12 | return null; at Object.readfile (/home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/helpers/FileHelper.ts:9:15) at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/portal/postPmmConnect.spec.ts:32:46
Portal / Tests
Process completed with exit code 1.
[chromium] › inventory/inventory.spec.ts:332:7 › Spec file for PMM inventory tests. › PMM-T1672 Verify PMM Inventory redesign : State of the agents @inventory @inventory-post-upgrade: pmm-ui-tests/playwright-tests/tests/inventory/inventory.spec.ts#L391
1) [chromium] › inventory/inventory.spec.ts:332:7 › Spec file for PMM inventory tests. › PMM-T1672 Verify PMM Inventory redesign : State of the agents @inventory @inventory-post-upgrade Error: expect(received).toHaveText(expected) Expected string: "4/4 not running" Received string: "1/4 running" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('xpath=//span[@data-testid="details-row-content"]//div[contains(@data-testid, "status-badge")]') - locator resolved to <div class="css-14y64wi" data-testid="status-badge-or…>…</div> - unexpected value "1/4 running" - waiting for locator('xpath=//span[@data-testid="details-row-content"]//div[contains(@data-testid, "status-badge")]') - locator resolved to <div class="css-14y64wi" data-testid="status-badge-or…>…</div> - unexpected value "1/4 running" - locator resolved to <div class="css-14y64wi" data-testid="status-badge-or…>…</div> - unexpected value "1/4 running" - locator resolved to <div class="css-14y64wi" data-testid="status-badge-or…>…</div> - unexpected value "1/4 running" - locator resolved to <div class="css-14y64wi" data-testid="status-badge-or…>…</div> - unexpected value "1/4 running" - locator resolved to <div class="css-14y64wi" data-testid="status-badge-or…>…</div> - unexpected value "1/4 running" - locator resolved to <div class="css-14y64wi" data-testid="status-badge-or…>…</div> - unexpected value "1/4 running" - locator resolved to <div class="css-14y64wi" data-testid="status-badge-or…>…</div> - unexpected value "1/4 running" - locator resolved to <div class="css-14y64wi" data-testid="status-badge-or…>…</div> - unexpected value "1/4 running" 389 | await page.reload(); 390 | await servicesPage.servicesTable.buttons.showRowDetails(mongoLocalService.serviceName).click(); > 391 | await expect(servicesPage.servicesTable.elements.agentStatus).toHaveText('4/4 not running'); | ^ 392 | await servicesPage.servicesTable.elements.monitoring(mongoLocalService.serviceName).click(); 393 | await expect(servicesPage.elements.waitingStatusAgent).not.toBeVisible(); 394 | await servicesPage.buttons.goBackToServices.click(); at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/inventory/inventory.spec.ts:391:69 at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/inventory/inventory.spec.ts:379:5
[chromium] › inventory/inventory.spec.ts:332:7 › Spec file for PMM inventory tests. › PMM-T1672 Verify PMM Inventory redesign : State of the agents @inventory @inventory-post-upgrade: pmm-ui-tests/playwright-tests/tests/inventory/components/servicesTable.ts#L71
1) [chromium] › inventory/inventory.spec.ts:332:7 › Spec file for PMM inventory tests. › PMM-T1672 Verify PMM Inventory redesign : State of the agents @inventory @inventory-post-upgrade Retry #1 --------------------------------------------------------------------------------------- Error: expect(received).toHaveText(expected) Expected string: "OK" Received string: "Failed" Call log: - expect.toHaveText with timeout 5000ms - waiting for getByTestId('table-tbody').getByTestId('table-tbody-tr').locator('xpath=//td[5]').first() - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - waiting for getByTestId('table-tbody').getByTestId('table-tbody-tr').locator('xpath=//td[5]').first() - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" at inventory/components/servicesTable.ts:71 69 | const numberOfServices = await this.elements.serviceStatuses.count() 70 | for (let i = 0; i < numberOfServices; i++) { > 71 | await expect(this.elements.serviceStatuses.nth(i)).toHaveText(expectedStatus); | ^ 72 | } 73 | }; 74 | at ServicesTable.verifyAllMonitoring (/home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/inventory/components/servicesTable.ts:71:58) at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/inventory/inventory.spec.ts:343:7 at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/inventory/inventory.spec.ts:340:5
[chromium] › inventory/inventory.spec.ts:332:7 › Spec file for PMM inventory tests. › PMM-T1672 Verify PMM Inventory redesign : State of the agents @inventory @inventory-post-upgrade: pmm-ui-tests/playwright-tests/tests/inventory/components/servicesTable.ts#L71
1) [chromium] › inventory/inventory.spec.ts:332:7 › Spec file for PMM inventory tests. › PMM-T1672 Verify PMM Inventory redesign : State of the agents @inventory @inventory-post-upgrade Retry #2 --------------------------------------------------------------------------------------- Error: expect(received).toHaveText(expected) Expected string: "OK" Received string: "Failed" Call log: - expect.toHaveText with timeout 5000ms - waiting for getByTestId('table-tbody').getByTestId('table-tbody-tr').locator('xpath=//td[5]').first() - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - waiting for getByTestId('table-tbody').getByTestId('table-tbody-tr').locator('xpath=//td[5]').first() - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" - locator resolved to <td role="cell" title="Failed" class="css-aqkpyi">…</td> - unexpected value "Failed" at inventory/components/servicesTable.ts:71 69 | const numberOfServices = await this.elements.serviceStatuses.count() 70 | for (let i = 0; i < numberOfServices; i++) { > 71 | await expect(this.elements.serviceStatuses.nth(i)).toHaveText(expectedStatus); | ^ 72 | } 73 | }; 74 | at ServicesTable.verifyAllMonitoring (/home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/inventory/components/servicesTable.ts:71:58) at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/inventory/inventory.spec.ts:343:7 at /home/runner/work/pmm-ui-tests/pmm-ui-tests/pmm-ui-tests/playwright-tests/tests/inventory/inventory.spec.ts:340:5
Inventory / Tests
Process completed with exit code 1.
Inventory / Tests
Error setting status: No commit found for SHA: null Request object: { "context": "@inventory UI tests", "description": "Test execution failure", "state": "failure", "owner": "percona", "repo": "pmm-ui-tests", "sha": "null", "target_url": "https://github.com/percona/pmm-ui-tests/actions/runs/5838098935" }
Inventory / Tests
Error setting status: No commit found for SHA: null Request object: { "context": "@inventory UI tests", "description": "Test execution success", "state": "pending", "owner": "percona", "repo": "pmm-ui-tests", "sha": "null", "target_url": "https://github.com/percona/pmm-ui-tests/actions/runs/5838098935" }
RBAC / Tests
Error setting status: No commit found for SHA: null Request object: { "context": "@rbac UI tests", "description": "Test execution success", "state": "pending", "owner": "percona", "repo": "pmm-ui-tests", "sha": "null", "target_url": "https://github.com/percona/pmm-ui-tests/actions/runs/5838098935" }
RBAC / Tests
Error setting status: No commit found for SHA: null Request object: { "context": "@rbac UI tests", "description": "Test execution success", "state": "success", "owner": "percona", "repo": "pmm-ui-tests", "sha": "null", "target_url": "https://github.com/percona/pmm-ui-tests/actions/runs/5838098935" }
Portal / Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: percona-platform/github-status-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Portal / Tests
No files were found with the provided path: pmm-ui-tests/playwright-report/data/*webm pmm-ui-tests/playwright-report/data/*png. No artifacts will be uploaded.
Inventory / Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: percona-platform/github-status-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Slow Test: pmm-ui-tests/[chromium] › inventory/inventory.spec.ts#L1
pmm-ui-tests/[chromium] › inventory/inventory.spec.ts took 4.0m
Inventory / Tests
No files were found with the provided path: pmm-ui-tests/playwright-report/data/*webm pmm-ui-tests/playwright-report/data/*png. No artifacts will be uploaded.
RBAC / Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: percona-platform/github-status-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
RBAC / Tests
No files were found with the provided path: pmm-ui-tests/playwright-report/data/*webm pmm-ui-tests/playwright-report/data/*png. No artifacts will be uploaded.
Slow Test: pmm-ui-tests/[chromium] › rbac/rbac.spec.ts#L1
pmm-ui-tests/[chromium] › rbac/rbac.spec.ts took 8.1m
🎭 Playwright Run Summary
2 failed [chromium] › portal/connectPMM.spec.ts:43:7 › Spec file for connecting PMM to the portal › PMM-T398 Verify Percona Platform elements on PMM Settings Page @portal @pre-pmm-portal-upgrade [chromium] › portal/postPmmConnect.spec.ts:56:7 › Spec file for PMM connected the portal › Verify user roles are untouched after PMM server upgrade @not-ui-pipeline @portal @post-pmm-portal-upgrade 14 skipped
🎭 Playwright Run Summary
1 failed [chromium] › inventory/inventory.spec.ts:332:7 › Spec file for PMM inventory tests. › PMM-T1672 Verify PMM Inventory redesign : State of the agents @inventory @inventory-post-upgrade 8 passed (4.1m)
🎭 Playwright Run Summary
8 passed (8.1m)