Needs work
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Aug 2026 at 11:26 UTC
Updated:
1 Sep 2026 at 14:13 UTC
Jump to comment: Most recent
Following #3615596: Reduce http requests in DependencyTest I wonder if it is possible to detect a situation where drupalGet() loads a page that is already loaded, and error when this happens. We could add a reloadPage() method for cases where we explicitly want to reload the same page.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
longwaveComment #3
nicxvan commentedComment #4
catchWith #3615596: Reduce http requests in DependencyTest specifically we were reloading the page after submitting a form that redirects to that page. To catch those automatically we'd need to know which page we're on currently, rather than what the last url passed to drupalGet() was. Not sure how straightforward or not that is to implement.
Comment #5
longwaveMaybe this is enough, although there are probably edge cases.
This MR was written with assistance from Claude Code.
Comment #7
mstrelan commentedDo we want to duplicate this for kernel test as well? It doesn't matter as much there because they are faster. They also don't have submitForm (yet).
Comment #8
catchAs we move more functional tests to kernel tests it would probably come in handy to have it there.
This is quite an encouraging number of test failures, should we split the actual fixes out to a separate issue so this one can concentrate on the code changes (+ stragglers)?
Comment #9
smustgrave commentedDoes appear to have test failures (assuming expected)