Skip to content

fix: handle prettifying json data with bruno variables #6801

fix: handle prettifying json data with bruno variables

fix: handle prettifying json data with bruno variables #6801

Triggered via pull request November 7, 2025 15:22
Status Failure
Total duration 11m 58s
Artifacts 1

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 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
3) [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') - locator resolved to <svg width="22" height="22" fill="none" stroke="#515151" stroke-width="1.5" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" data-testid="send-arrow-icon" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-right">…</svg> - attempting click action - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying 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
3) [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/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/environments/import-environment/bruno-env-import/collection-env-import/collection-env-import.spec.ts:62:7 › Collection Environment Import Tests › should import multiple collection environments: tests/environments/import-environment/bruno-env-import/collection-env-import/collection-env-import.spec.ts#L108
1) [default] › tests/environments/import-environment/bruno-env-import/collection-env-import/collection-env-import.spec.ts:62:7 › Collection Environment Import Tests › should import multiple collection environments › Verify both environments are available in selector Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('.dropdown-item').filter({ hasText: /^prod$/ }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('.dropdown-item').filter({ hasText: /^prod$/ }) 106 | // Verify both environments are in the dropdown 107 | await expect(page.locator('.dropdown-item').filter({ hasText: /^local$/ })).toBeVisible(); > 108 | await expect(page.locator('.dropdown-item').filter({ hasText: /^prod$/ })).toBeVisible(); | ^ 109 | }); 110 | 111 | await test.step('Test switching to prod environment and verify variables', async () => { at /home/runner/work/bruno/bruno/tests/environments/import-environment/bruno-env-import/collection-env-import/collection-env-import.spec.ts:108:82 at /home/runner/work/bruno/bruno/tests/environments/import-environment/bruno-env-import/collection-env-import/collection-env-import.spec.ts:101:5
🎭 Playwright Run Summary
3 flaky [default] › tests/environments/import-environment/bruno-env-import/collection-env-import/collection-env-import.spec.ts:62:7 › Collection Environment Import Tests › should import multiple collection environments [default] › tests/environments/import-environment/collection-env-import.spec.ts:10:7 › Collection Environment Import Tests › should import collection environment from file [default] › tests/response-examples/create-example.spec.ts:62:7 › Create and Delete Response Examples › should close modal when cancelled 145 passed (8.0m)

Artifacts

Produced during runtime
Name Size Digest
playwright-report
16.9 MB
sha256:fd6506673cf368360c92389c5fdd0524920b975626921ef1c329ff270fcd2a23