refactor: update UI interactions and improve test stability #6805
tests.yml
on: pull_request
Unit Tests
4m 22s
CLI Tests
3m 5s
Playwright E2E Tests
9m 57s
Annotations
4 errors and 1 notice
|
CLI Tests
Process completed with exit code 1.
|
|
[default] › tests/response-examples/create-example.spec.ts:62:7 › Create and Delete Response Examples › should close modal when cancelled:
tests/response-examples/create-example.spec.ts#L65
2) [default] › tests/response-examples/create-example.spec.ts:62:7 › Create and Delete Response Examples › should close modal when cancelled › Test modal cancellation
TimeoutError: locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for getByTestId('send-arrow-icon')
63 | await test.step('Test modal cancellation', async () => {
64 | await page.locator('.collection-item-name').getByText('create-example').click();
> 65 | await page.getByTestId('send-arrow-icon').click();
| ^
66 | await page.getByTestId('response-bookmark-btn').click({ timeout: 30000 });
67 | await page.getByRole('button', { name: 'Cancel' }).click();
68 | await expect(page.getByText('Save Response as Example')).not.toBeVisible();
at /home/runner/work/bruno/bruno/tests/response-examples/create-example.spec.ts:65:49
at /home/runner/work/bruno/bruno/tests/response-examples/create-example.spec.ts:63:5
|
|
[default] › tests/response-examples/create-example.spec.ts:62:7 › Create and Delete Response Examples › should close modal when cancelled:
tests/response-examples/create-example.spec.ts#L0
2) [default] › tests/response-examples/create-example.spec.ts:62:7 › Create and Delete Response Examples › should close modal when cancelled › Test modal cancellation
Test timeout of 30000ms exceeded.
|
|
[default] › tests/environments/import-environment/global-env-import.spec.ts:5:7 › Global Environment Import Tests › should import global environment from file:
tests/environments/import-environment/global-env-import.spec.ts#L80
1) [default] › tests/environments/import-environment/global-env-import.spec.ts:5:7 › Global Environment Import Tests › should import global environment from file
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('[data-testid="response-status-code"]')
Expected string: "201"
Received string: "503 Service Unavailable"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('[data-testid="response-status-code"]')
9 × locator resolved to <div data-testid="response-status-code" class="StyledWrapper__Wrapper-dHkLvc laolIg response-status-code ml-2 text-error">503 Service Unavailable</div>
- unexpected value "503 Service Unavailable"
78 | await page.locator('[data-testid="send-arrow-icon"]').click();
79 | await page.locator('[data-testid="response-status-code"]').waitFor({ state: 'visible' });
> 80 | await expect(page.locator('[data-testid="response-status-code"]')).toContainText('201');
| ^
81 |
82 | // Cleanup
83 | await page.locator('#sidebar-collection-name').filter({ hasText: 'Environment Test Collection' }).click();
at /home/runner/work/bruno/bruno/tests/environments/import-environment/global-env-import.spec.ts:80:72
|
|
🎭 Playwright Run Summary
2 flaky
[default] › tests/environments/import-environment/global-env-import.spec.ts:5:7 › Global Environment Import Tests › should import global environment from file
[default] › tests/response-examples/create-example.spec.ts:62:7 › Create and Delete Response Examples › should close modal when cancelled
146 passed (7.8m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report
|
14.6 MB |
sha256:31a258eb8c2d8bdc11cb9925cb014a55859769df844b7489e052e2a75998b30b
|
|