[random test failure] FilterEntityReferenceTest (again)

Created on 14 April 2025, 5 days ago

Problem/Motivation

🐛 [random test failure] FilterEntityReferenceTest Active resolved some random test fails in FilterEntityReferenceTest, but there are still more.

Specifically we get a stale element reference exception for the click() below:

// Test the exposed filter options show up correctly.
$assert->waitForField('options[expose_button][checkbox][checkbox]');
$page->findField('options[expose_button][checkbox][checkbox]')->click();

Steps to reproduce

https://git.drupalcode.org/issue/drupal-3510582/-/jobs/4955317#L368

Proposed resolution

Possibly need to wait for an ajax request after the previous line:
$page->find('xpath', "//*[contains(text(), 'Apply and continue')]")->press();

We should also update existing assertWaitOnAjaxRequest calls to assertExpectedAjaxRequest.

Remaining tasks

  • MR with repeated test 100x (or 1000x if needed)
  • As above, with fix

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

views_ui.module

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024