aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiResultTest.php
diff options
context:
space:
mode:
authorAntoine Musso <hashar@free.fr>2015-07-08 18:32:53 +0200
committerHashar <hashar@free.fr>2015-09-17 13:07:30 +0000
commitd737e5762438b72bd2b1ec10937555b32b664788 (patch)
tree12b11e0d41356d959db0a092db5a091accad2e41 /tests/phpunit/includes/api/ApiResultTest.php
parentc1b2187badc784e546ba4e6b5be30f146fb9ac13 (diff)
downloadmediawikicore-d737e5762438b72bd2b1ec10937555b32b664788.tar.gz
mediawikicore-d737e5762438b72bd2b1ec10937555b32b664788.zip
Browser test: avoid loading elements over network
Page object let us search elements for which attributes match a given regex. Unfortunatly it loads the list of elements first, then foreach of them trigger a call to Selenium to retrieve the attribute to match. Attempting to regex match a link href, would cause hundred of roundtrip to the Selenium host. Instead, use a CSS selector to get the element we are interested in which skips the bad page object code. Bug: T92613 Bug: T112291 Change-Id: I12949a4d0ef61d38adbaaf622722c89033949cad
Diffstat (limited to 'tests/phpunit/includes/api/ApiResultTest.php')
0 files changed, 0 insertions, 0 deletions