Skip to content

fix: show every snippet on sites with more than a hundred - #560

Open
TallblokeUK wants to merge 4 commits into
core-betafrom
fix/snippets-list-truncation/core
Open

TallblokeUK wants to merge 4 commits into
core-betafrom
fix/snippets-list-truncation/core

Conversation

@TallblokeUK

Copy link
Copy Markdown
Contributor

Fixes the snippets list showing only the first 100 snippets on sites with larger libraries.

Reported at https://wordpress.org/support/topic/hiding-some-snipptes/

The problem

The manage screen embeds a list capped at min( $snippets_per_page, 100 ) snippets so the table paints immediately, then replaces it with the complete list from the REST API. That request carried every snippet's code, which is by far the largest thing the screen transfers and grows without bound with the library.

When the request does not land, the screen keeps the capped list, reports its length as the total, and gives no indication that anything is wrong. The type counts are derived from whichever list is loaded, so they agree with the truncation and look plausible. The admin bar counts come from a separate server-side query, which is how the reporter noticed the discrepancy.

This is why the report is hard to reproduce: it does not need more than 100 snippets, it needs the list request to fail. On a healthy site the screen corrects itself within a moment.

Changes

  • The list is requested without snippet code, via _fields. On a 135-snippet library the response drops from 294 KB to 45 KB. No server change is required.
  • The type counts use the values localised with the page until the complete list has actually arrived. The previous check treated the embedded list as though it were loaded, so the authoritative counts were never used.
  • A failed list request shows a notice rather than only reaching the console.
  • Searching snippet contents still needs the code, so it is fetched once, on the first search that could match it.
  • Cloning and previewing from the list resolve the snippet's body first, since the list no longer carries it. The preview editor now follows its code prop, having previously read the value only when it was created.

Verification

  • PHPUnit: 335 tests green. Includes a new test asserting the requested field list still matches the snippets schema minus code, so a property added to the schema cannot quietly stop reaching the browser. Confirmed it fails both when a field is dropped from the list and when code is added back.
  • Playwright: 68 tests green across the default and file-based projects, including five new scenarios. Confirmed the counts scenario fails against the previous logic.
  • Measured on a 144-snippet site: 45 KB list request; counts correct while the request is in flight; counts correct and accompanied by a notice when it fails.
  • ESLint, PHPCS and Stylelint clean.

Note

Why the reporter's request fails has not been established; their site is on shared LiteSpeed. A much smaller response makes it considerably more likely to succeed, but if the cause is the response being cached or filtered rather than its size, this will not resolve their site on its own. It will at least show them an error instead of a silently partial list.

The manage screen embeds a list capped at a hundred snippets so the table
paints immediately, then replaces it with the complete list from the REST
API. That request carried every snippet's code, which grows without bound
with the library and is by far the largest thing the screen transfers, so
it can fail on a constrained host. When it did, the screen kept the capped
list, reported its length as the total, and said nothing.

The list is now requested without code, taking a 135-snippet library from
294 KB to 45 KB. The type counts keep using the authoritative values sent
with the page until the complete list has arrived, rather than counting
whichever list happens to be present. A failed request now shows a notice
instead of only reaching the console.

Searching snippet contents still needs the code, so it is fetched once, on
the first search that could match it.
The list no longer carries snippet code, so cloning from it produced an
empty snippet and the preview opened on an empty editor. Both now resolve
the snippet's body first.

The preview editor also follows its code prop. It read the value only when
it was created, so a body arriving afterwards was ignored.
Checks that the whole library is shown rather than the embedded subset,
that the list request never asks for snippet code, that a snippet
previewed from the list still shows its code, and that a failed list
request leaves the counts telling the truth and says so on screen.

Also checks the requested field list still matches the snippets schema, so
a property added to the schema cannot quietly stop reaching the browser.
@TallblokeUK TallblokeUK added bug Something isn't working run-tests Trigger automated tests labels Sep 16, 2026
Resolved against the incoming pro-beta sync:

- SnippetPreviewModal keeps both the new extraActions prop and the code
  resolution this branch adds, since a snippet opened from the list no
  longer arrives with its body.
- SnippetsTable keeps this branch's comment explaining why the counts wait
  for the list to load before switching away from the localized values.
- readme.txt follows core-beta in dropping the 4.0.0 section; the entry for
  this fix lives in CHANGELOG.md alongside the rest.

The sync also added created_by and updated_by to the snippets schema, so the
list now requests them. The schema test added on this branch is what caught
their absence.
@github-actions

Copy link
Copy Markdown

Playwright Test Failure

One or more Playwright targets failed in this workflow run.

See all Playwright errors (click to expand)

Affected Playwright test: all

FAILURE: code-snippets-evaluation.spec.ts:215:6 HTML snippet works with shortcode in editor
[chromium-db-snippets] › code-snippets-evaluation.spec.ts:215:6 › Code Snippets Evaluation › HTML snippet works with shortcode in editor 

    Error: expect(locator).toBeVisible() failed

    Locator: locator('.custom-snippet-content')
    Expected: visible
    Timeout: 30000ms
    Error: element(s) not found

    Call log:
      - Expect "toBeVisible" with timeout 30000ms
      - waiting for locator('.custom-snippet-content')


      33 | 	await page.goto(pageUrl)
      34 |
    > 35 | 	await expect(page.locator('.custom-snippet-content')).toBeVisible()
         | 	                                                      ^
      36 | 	await expect(page.locator('.custom-snippet-content h3')).toContainText('Custom HTML Content')
      37 | 	await expect(page.locator('.custom-snippet-content p')).toContainText('This content was inserted via shortcode!')
      38 |
        at verifyShortcodeRendersCorrectly (/home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:35:56)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:219:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Error: expect(locator).toBeVisible() failed

    Locator: locator('.custom-snippet-content')
    Expected: visible
    Timeout: 30000ms
    Error: element(s) not found

    Call log:
      - Expect "toBeVisible" with timeout 30000ms
      - waiting for locator('.custom-snippet-content')


      33 | 	await page.goto(pageUrl)
      34 |
    > 35 | 	await expect(page.locator('.custom-snippet-content')).toBeVisible()
         | 	                                                      ^
      36 | 	await expect(page.locator('.custom-snippet-content h3')).toContainText('Custom HTML Content')
      37 | 	await expect(page.locator('.custom-snippet-content p')).toContainText('This content was inserted via shortcode!')
      38 |
        at verifyShortcodeRendersCorrectly (/home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:35:56)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:219:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry1/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry1/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry1/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry1/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #2 ───────────────────────────────────────────────────────────────────────────────────────

    Error: expect(locator).toBeVisible() failed

    Locator: locator('.custom-snippet-content')
    Expected: visible
    Timeout: 30000ms
    Error: element(s) not found

    Call log:
      - Expect "toBeVisible" with timeout 30000ms
      - waiting for locator('.custom-snippet-content')


      33 | 	await page.goto(pageUrl)
      34 |
    > 35 | 	await expect(page.locator('.custom-snippet-content')).toBeVisible()
         | 	                                                      ^
      36 | 	await expect(page.locator('.custom-snippet-content h3')).toContainText('Custom HTML Content')
      37 | 	await expect(page.locator('.custom-snippet-content p')).toContainText('This content was inserted via shortcode!')
      38 |
        at verifyShortcodeRendersCorrectly (/home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:35:56)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:219:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry2/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry2/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry2/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry2/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-8f64e-ks-with-shortcode-in-editor-chromium-db-snippets-retry2/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

Affected Playwright test: all

FAILURE: code-snippets-evaluation.spec.ts:222:6 CSS snippet is evaluating correctly on site front-end
[chromium-db-snippets] › code-snippets-evaluation.spec.ts:222:6 › Code Snippets Evaluation › CSS snippet is evaluating correctly on site front-end 

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:223:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:223:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry1/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry1/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry1/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry1/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #2 ───────────────────────────────────────────────────────────────────────────────────────

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:223:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry2/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry2/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry2/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry2/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-e5a48-correctly-on-site-front-end-chromium-db-snippets-retry2/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

Affected Playwright test: all

FAILURE: code-snippets-evaluation.spec.ts:255:6 CSS snippet is evaluating correctly in administration area
[chromium-db-snippets] › code-snippets-evaluation.spec.ts:255:6 › Code Snippets Evaluation › CSS snippet is evaluating correctly in administration area 

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:256:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:256:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry1/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry1/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry1/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry1/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #2 ───────────────────────────────────────────────────────────────────────────────────────

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:256:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry2/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry2/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry2/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry2/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-40479-ctly-in-administration-area-chromium-db-snippets-retry2/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

Affected Playwright test: all

FAILURE: code-snippets-evaluation.spec.ts:290:6 JavaScript snippet is evaluating correctly in site <head> section
[chromium-db-snippets] › code-snippets-evaluation.spec.ts:290:6 › Code Snippets Evaluation › JavaScript snippet is evaluating correctly in site <head> section 

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:291:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:291:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry1/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry1/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry1/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry1/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #2 ───────────────────────────────────────────────────────────────────────────────────────

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:291:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry2/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry2/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry2/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry2/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-f1dab-rectly-in-site-head-section-chromium-db-snippets-retry2/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

Affected Playwright test: all

FAILURE: code-snippets-evaluation.spec.ts:321:6 JavaScript snippet is evaluating correctly in site footer
[chromium-db-snippets] › code-snippets-evaluation.spec.ts:321:6 › Code Snippets Evaluation › JavaScript snippet is evaluating correctly in site footer 

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:322:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:322:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry1/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry1/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry1/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry1/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #2 ───────────────────────────────────────────────────────────────────────────────────────

    Test timeout of 60000ms exceeded.

    Error: locator.click: Test timeout of 60000ms exceeded.
    Call log:
      - waiting for locator('.code-snippets-select-location')
        - locator resolved to <div class="code-snippets-select code-snippets-select-location css-b62m3t-container">…</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="components-modal__screen-overlay">…</div> 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="components-modal__screen-overlay">…</div> intercepts pointer events
        - retrying click action
          - waiting 100ms
        114 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="components-modal__screen-overlay">…</div> intercepts pointer events
          - retrying click action
            - waiting 500ms


       at helpers/SnippetsTestHelper.ts:226

      224 | 		const locationSelect = this.page.locator(SELECTORS.LOCATION_SELECT)
      225 | 		await expect(locationSelect).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
    > 226 | 		await locationSelect.click()
          | 		                     ^
      227 |
      228 | 		const listbox = this.page.getByRole('listbox').first()
      229 | 		await expect(listbox).toBeVisible({ timeout: TIMEOUTS.DEFAULT })
        at SnippetsTestHelper.selectSnippetLocation (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:226:24)
        at SnippetsTestHelper.fillSnippetForm (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:303:4)
        at SnippetsTestHelper.createAndActivateSnippet (/home/runner/_work/code-snippets/code-snippets/tests/e2e/helpers/SnippetsTestHelper.ts:567:3)
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-evaluation.spec.ts:322:3

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry2/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry2/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry2/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry2/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-evaluation-C-5578f-ng-correctly-in-site-footer-chromium-db-snippets-retry2/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

Affected Playwright test: all

FAILURE: code-snippets-list.spec.ts:99:6 Card view surfaces snippet insights in the card corner
[chromium-db-snippets] › code-snippets-list.spec.ts:99:6 › Code Snippets List Page Actions › Card view surfaces snippet insights in the card corner 

    Error: expect(locator).toBeVisible() failed

    Locator: locator('.snippets-card-grid .code-snippets-card').filter({ hasText: 'E2E Snippet Test 1789565021526-b2amw' }).locator('.snippet-card-meta .snippet-secure-status')
    Expected: visible
    Timeout: 30000ms
    Error: element(s) not found

    Call log:
      - Expect "toBeVisible" with timeout 30000ms
      - waiting for locator('.snippets-card-grid .code-snippets-card').filter({ hasText: 'E2E Snippet Test 1789565021526-b2amw' }).locator('.snippet-card-meta .snippet-secure-status')


      105 |
      106 | 			await expect(card).toBeVisible()
    > 107 | 			await expect(secureStatus).toBeVisible()
          | 			                           ^
      108 | 			await expect(secureStatus.locator('.tooltip-trigger')).toHaveAccessibleName('Secure snippet')
      109 |
      110 | 			// A clean PHP snippet exposes security in the metadata row. Performance
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-list.spec.ts:107:31

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Error: expect(locator).toBeVisible() failed

    Locator: locator('.snippets-card-grid .code-snippets-card').filter({ hasText: 'E2E Snippet Test 1789565055360-y0zqu' }).locator('.snippet-card-meta .snippet-secure-status')
    Expected: visible
    Timeout: 30000ms
    Error: element(s) not found

    Call log:
      - Expect "toBeVisible" with timeout 30000ms
      - waiting for locator('.snippets-card-grid .code-snippets-card').filter({ hasText: 'E2E Snippet Test 1789565055360-y0zqu' }).locator('.snippet-card-meta .snippet-secure-status')


      105 |
      106 | 			await expect(card).toBeVisible()
    > 107 | 			await expect(secureStatus).toBeVisible()
          | 			                           ^
      108 | 			await expect(secureStatus.locator('.tooltip-trigger')).toHaveAccessibleName('Secure snippet')
      109 |
      110 | 			// A clean PHP snippet exposes security in the metadata row. Performance
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-list.spec.ts:107:31

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry1/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry1/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry1/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry1/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry1/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #2 ───────────────────────────────────────────────────────────────────────────────────────

    Error: expect(locator).toBeVisible() failed

    Locator: locator('.snippets-card-grid .code-snippets-card').filter({ hasText: 'E2E Snippet Test 1789565089105-vwsr7' }).locator('.snippet-card-meta .snippet-secure-status')
    Expected: visible
    Timeout: 30000ms
    Error: element(s) not found

    Call log:
      - Expect "toBeVisible" with timeout 30000ms
      - waiting for locator('.snippets-card-grid .code-snippets-card').filter({ hasText: 'E2E Snippet Test 1789565089105-vwsr7' }).locator('.snippet-card-meta .snippet-secure-status')


      105 |
      106 | 			await expect(card).toBeVisible()
    > 107 | 			await expect(secureStatus).toBeVisible()
          | 			                           ^
      108 | 			await expect(secureStatus.locator('.tooltip-trigger')).toHaveAccessibleName('Secure snippet')
      109 |
      110 | 			// A clean PHP snippet exposes security in the metadata row. Performance
        at /home/runner/_work/code-snippets/code-snippets/tests/e2e/code-snippets-list.spec.ts:107:31

    attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
    ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry2/test-failed-1.png
    ────────────────────────────────────────────────────────────────────────────────────────────────

    attachment #2: video (video/webm) ──────────────────────────────────────────────────────────────
    ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry2/video.webm
    ────────────────────────────────────────────────────────────────────────────────────────────────

    Error Context: ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry2/error-context.md

    attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
    ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry2/trace.zip
    Usage:

        npx playwright show-trace ../../test-results/code-snippets-list-Code-Sn-c806c-insights-in-the-card-corner-chromium-db-snippets-retry2/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

Please review the failing jobs and fix the issues before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working run-tests Trigger automated tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant