Skip to content

Conversation

@JanJakes
Copy link
Member

@JanJakes JanJakes commented Dec 3, 2025

Motivation for the change, related issues

The phpMyAdmin E2E test seems to be flaky in Firefox:

  ✘  32 [firefox] › packages/playground/website/playwright/e2e/website-ui.spec.ts:433:6 › Database panel › should load and open phpMyAdmin (retry #3) (42.0s)


  1) [firefox] › packages/playground/website/playwright/e2e/website-ui.spec.ts:433:6 › Database panel › should load and open phpMyAdmin 

    Error: expect(locator).toBeVisible() failed

    Locator:  locator('form#insertForm, form[name="insertForm"]')
    Expected: visible
    Received: <element(s) not found>
    Timeout:  10000ms

    Call log:
      - Expect "toBeVisible" with timeout 10000ms
      - waiting for locator('form#insertForm, form[name="insertForm"]')


      472 | 			'form#insertForm, form[name="insertForm"]'
      473 | 		);
    > 474 | 		await expect(pmaForm).toBeVisible({ timeout: 10000 });
          | 		                      ^
      475 | 		await expect(pmaForm).toContainText('Welcome to WordPress.');
      476 |
      477 | 		// Update the post content
        at /home/runner/work/wordpress-playground/wordpress-playground/packages/playground/website/playwright/e2e/website-ui.spec.ts:474:25

    Error Context: packages/playground/website/test-results/website-ui-Database-panel-should-load-and-open-phpMyAdmin-firefox/error-context.md

Implementation details

The issue appears to be that phpMyAdmin handles screen navigation using custom AJAX handlers, which may ignore link clicks when another AJAX request is still in progress. This is implemented in their AJAX module that is exposed globally on window.AJAX.

I tried other approaches like waiting for a loader to disappear, but no luck. This approach seems to be the only reliable one.

Testing Instructions (or ideally a Blueprint)

See the CI passing.

@JanJakes JanJakes force-pushed the ff-flaky-phpmyadmin-test branch 7 times, most recently from 5539b7e to c2dd1ff Compare December 4, 2025 10:02
@JanJakes JanJakes changed the title Debug flaky test [Website] Fix flaky phpMyAdmin test Dec 4, 2025
@JanJakes JanJakes force-pushed the ff-flaky-phpmyadmin-test branch from 67f8923 to 2a9b267 Compare December 4, 2025 16:57
@JanJakes JanJakes force-pushed the ff-flaky-phpmyadmin-test branch from cfa6fd0 to a854ffd Compare December 5, 2025 09:00
@JanJakes JanJakes marked this pull request as ready for review December 5, 2025 11:36
@JanJakes JanJakes requested a review from a team December 5, 2025 11:36
@adamziel adamziel merged commit 44a2064 into trunk Dec 5, 2025
48 of 63 checks passed
@adamziel adamziel deleted the ff-flaky-phpmyadmin-test branch December 5, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants