aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/Rest/Module
diff options
context:
space:
mode:
authorDaimona Eaytoy <daimona.wiki@gmail.com>2024-04-24 03:03:22 +0200
committerDaimona Eaytoy <daimona.wiki@gmail.com>2024-12-08 21:16:56 +0000
commitd3f9726809f4416a0b8e6adb0788a55bc948fd2b (patch)
treebd609557bd579c1be1b84dcf56aa42cb15a69795 /tests/phpunit/unit/includes/Rest/Module
parentfc8ed3ce5f50bb413aed86ad61981766db5a3d5f (diff)
downloadmediawikicore-d3f9726809f4416a0b8e6adb0788a55bc948fd2b.tar.gz
mediawikicore-d3f9726809f4416a0b8e6adb0788a55bc948fd2b.zip
selenium: wait for form submission in LoginPage.login
Have the function wait until the form has been submitted successfully, by checking the wgUserName variable. This is more robust than e.g. checking the content of the userpage link (via the otherwise unused `userPage` getter), as it avoids any possible skin inconsistencies. This change should hopefully make tests more robusts by guaranteeing that the login request has finished and it was successful, and prevent potential deadlocks if a subsequent login requests is sent while the form is still being processed. Bug: T363284 Change-Id: I818e4d6d4536ba94aa1e5a2ce92f2fe2f541bab7
Diffstat (limited to 'tests/phpunit/unit/includes/Rest/Module')
0 files changed, 0 insertions, 0 deletions