fix: handle prettifying json data with bruno variables
#6800
tests.yml
on: pull_request
Unit Tests
3m 58s
CLI Tests
2m 43s
Playwright E2E Tests
10m 19s
Annotations
8 errors and 1 notice
|
CLI Tests
Process completed with exit code 1.
|
|
Playwright E2E Tests
Process completed with exit code 1.
|
|
[default] › tests/environments/import-environment/collection-env-import.spec.ts:10:7 › Collection Environment Import Tests › should import collection environment from file:
tests/utils/page/actions.ts#L13
2) [default] › tests/environments/import-environment/collection-env-import.spec.ts:10:7 › Collection Environment Import Tests › should import collection environment from file
TimeoutError: locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for locator('.collection-name').first().locator('.collection-actions')
- locator resolved to <div class="collection-actions" data-testid="collection-actions">…</div>
- attempting click action
2 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div class="bruno-modal-backdrop"></div> from <div class="StyledWrapper__Wrapper-bFEkFv bLvctg bruno-modal">…</div> subtree intercepts pointer events
- retrying click action
- waiting 20ms
2 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div class="bruno-modal-backdrop"></div> from <div class="StyledWrapper__Wrapper-bFEkFv bLvctg bruno-modal">…</div> subtree intercepts pointer events
- retrying click action
- waiting 100ms
58 × waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div class="bruno-modal-backdrop"></div> from <div class="StyledWrapper__Wrapper-bFEkFv bLvctg bruno-modal">…</div> subtree intercepts pointer events
- retrying click action
- waiting 500ms
at tests/utils/page/actions.ts:13
11 |
12 | for (let i = 0; i < numberOfCollections; i++) {
> 13 | await page.locator('.collection-name').first().locator('.collection-actions').click();
| ^
14 | await page.locator('.dropdown-item').getByText('Close').click();
15 | // Wait for the close collection modal to be visible
16 | await page.locator('.bruno-modal-header-title', { hasText: 'Close Collection' }).waitFor({ state: 'visible' });
at /home/runner/work/bruno/bruno/tests/utils/page/actions.ts:13:85
at closeAllCollections (/home/runner/work/bruno/bruno/tests/utils/page/actions.ts:9:3)
at /home/runner/work/bruno/bruno/tests/environments/import-environment/collection-env-import.spec.ts:7:5
|
|
[default] › tests/environments/import-environment/collection-env-import.spec.ts:10:7 › Collection Environment Import Tests › should import collection environment from file:
tests/environments/import-environment/collection-env-import.spec.ts#L6
2) [default] › tests/environments/import-environment/collection-env-import.spec.ts:10:7 › Collection Environment Import Tests › should import collection environment from file
"afterAll" hook timeout of 30000ms exceeded.
4 |
5 | test.describe('Collection Environment Import Tests', () => {
> 6 | test.afterAll(async ({ page }) => {
| ^
7 | await closeAllCollections(page);
8 | });
9 |
at /home/runner/work/bruno/bruno/tests/environments/import-environment/collection-env-import.spec.ts:6:8
|
|
[default] › tests/environments/import-environment/collection-env-import.spec.ts:10:7 › Collection Environment Import Tests › should import collection environment from file:
tests/environments/import-environment/collection-env-import.spec.ts#L97
2) [default] › tests/environments/import-environment/collection-env-import.spec.ts:10:7 › Collection Environment Import Tests › should import collection environment from file
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Close' }) resolved to 2 elements:
1) <button type="submit" class="submit btn btn-md btn-secondary">Close</button> aka getByRole('button', { name: 'Close', exact: true })
2) <button tabindex="-1" title="Close console" data-tabindex="inline" class="control-button close-button">…</button> aka getByRole('button', { name: 'Close console' })
Call log:
- waiting for getByRole('button', { name: 'Close' })
95 | await page.locator('.dropdown-item').filter({ hasText: 'Close' }).click();
96 | await page.locator('.dropdown-item').filter({ hasText: 'Close' }).waitFor({ state: 'detached' });
> 97 | await page.getByRole('button', { name: 'Close' }).click();
| ^
98 | });
99 | });
100 |
at /home/runner/work/bruno/bruno/tests/environments/import-environment/collection-env-import.spec.ts:97:55
|
|
[default] › tests/request/settings/timeout.spec.ts:5:7 › Timeout Settings Tests › should configure and test timeout settings:
tests/request/settings/timeout.spec.ts#L28
1) [default] › tests/request/settings/timeout.spec.ts:5:7 › Timeout Settings Tests › should configure and test timeout settings
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.response-pane')
Expected string: "timeout of 5ms exceeded"
Received string: "ResponseHeaders7TimelineTests302 Found96ms174BWebRaw"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('.response-pane')
- locator resolved to <section class="response-pane flex-grow overflow-x-auto">…</section>
- unexpected value "Loading...Cancel Request"
8 × locator resolved to <section class="response-pane flex-grow overflow-x-auto">…</section>
- unexpected value "ResponseHeaders7TimelineTests302 Found96ms174BWebRaw"
26 |
27 | const responsePane = page.locator('.response-pane');
> 28 | await expect(responsePane).toContainText('timeout of 5ms exceeded');
| ^
29 |
30 | // Now test inherit functionality
31 | // Click the X button to reset to inherit
at /home/runner/work/bruno/bruno/tests/request/settings/timeout.spec.ts:28:32
|
|
[default] › tests/request/settings/timeout.spec.ts:5:7 › Timeout Settings Tests › should configure and test timeout settings:
tests/request/settings/timeout.spec.ts#L28
1) [default] › tests/request/settings/timeout.spec.ts:5:7 › Timeout Settings Tests › should configure and test timeout settings
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.response-pane')
Expected string: "timeout of 5ms exceeded"
Received string: "ResponseHeaders7TimelineTests302 Found106ms174BWebRaw"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('.response-pane')
- locator resolved to <section class="response-pane flex-grow overflow-x-auto">…</section>
- unexpected value "Loading...Cancel Request"
7 × locator resolved to <section class="response-pane flex-grow overflow-x-auto">…</section>
- unexpected value "ResponseHeaders7TimelineTests302 Found106ms174BWebRaw"
26 |
27 | const responsePane = page.locator('.response-pane');
> 28 | await expect(responsePane).toContainText('timeout of 5ms exceeded');
| ^
29 |
30 | // Now test inherit functionality
31 | // Click the X button to reset to inherit
at /home/runner/work/bruno/bruno/tests/request/settings/timeout.spec.ts:28:32
|
|
[default] › tests/request/settings/timeout.spec.ts:5:7 › Timeout Settings Tests › should configure and test timeout settings:
tests/request/settings/timeout.spec.ts#L28
1) [default] › tests/request/settings/timeout.spec.ts:5:7 › Timeout Settings Tests › should configure and test timeout settings
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.response-pane')
Expected string: "timeout of 5ms exceeded"
Received string: "ResponseHeaders7TimelineTests302 Found101ms174BWebRaw"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('.response-pane')
2 × locator resolved to <section class="response-pane flex-grow overflow-x-auto">…</section>
- unexpected value "Loading...Cancel Request"
7 × locator resolved to <section class="response-pane flex-grow overflow-x-auto">…</section>
- unexpected value "ResponseHeaders7TimelineTests302 Found101ms174BWebRaw"
26 |
27 | const responsePane = page.locator('.response-pane');
> 28 | await expect(responsePane).toContainText('timeout of 5ms exceeded');
| ^
29 |
30 | // Now test inherit functionality
31 | // Click the X button to reset to inherit
at /home/runner/work/bruno/bruno/tests/request/settings/timeout.spec.ts:28:32
|
|
🎭 Playwright Run Summary
1 failed
[default] › tests/request/settings/timeout.spec.ts:5:7 › Timeout Settings Tests › should configure and test timeout settings
1 flaky
[default] › tests/environments/import-environment/collection-env-import.spec.ts:10:7 › Collection Environment Import Tests › should import collection environment from file
146 passed (8.2m)
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
playwright-report
|
2.77 MB |
sha256:b0fe44bcb8793b2f2fe17deaccf731ad8fb55f76e5d109ebc0093d2c53531649
|
|