mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
mediawiki: tests: functional: Use newer splinter API for finding links
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
104cbc0b0d
commit
9811ce1b79
@ -232,7 +232,7 @@ def _get_number_of_uploaded_images(browser):
|
||||
def _image_exists(browser, image):
|
||||
"""Check whether the given image exists."""
|
||||
functional.visit(browser, '/mediawiki/Special:ListFiles')
|
||||
elements = browser.find_link_by_partial_href(image)
|
||||
elements = browser.links.find_by_partial_href(image)
|
||||
if not elements: # Necessary but insufficient check.
|
||||
# Special:ListFiles also shows deleted images.
|
||||
return False
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user