mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
sharing: tests: functional: Fix a flaky test by waiting
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
b140a8104f
commit
d96a0a0a38
@ -146,7 +146,7 @@ def _verify_invalid_share(browser, name):
|
|||||||
def _verify_nonexistant_share(browser, name):
|
def _verify_nonexistant_share(browser, name):
|
||||||
"""Verify that given URL for a given share name is a 404."""
|
"""Verify that given URL for a given share name is a 404."""
|
||||||
functional.visit(browser, f'/share/{name}')
|
functional.visit(browser, f'/share/{name}')
|
||||||
assert '404' in browser.title
|
functional.eventually(lambda: '404' in browser.title)
|
||||||
|
|
||||||
|
|
||||||
def _verify_inaccessible_share(browser, name):
|
def _verify_inaccessible_share(browser, name):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user