add-resume (#12)
* add functionality to --resume flag. latest test will resume by running failed tests again * fix nextcloud setup -> all tests passing * fix expect timeout by moving it to its own fixture Reviewed-on: local-it-infrastructure/e2e_tests#12 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
0b4e0a0c16
commit
41a042f07d
6 changed files with 33 additions and 6 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import re
|
||||
|
||||
from playwright.sync_api import Page, expect
|
||||
|
||||
from pytest_abra.dir_manager import DirManager
|
||||
|
|
@ -16,6 +18,9 @@ def setup_nextcloud_admin_session(authentik_admin_page: Page, DIR: DirManager, U
|
|||
page_nextcloud = event_context.value
|
||||
context = page_nextcloud.context
|
||||
|
||||
# expect quota stats on files page to confirm successful login
|
||||
page_nextcloud.goto(URL.get("/apps/files"))
|
||||
expect(page_nextcloud.get_by_role("link", name="Name")).to_be_visible()
|
||||
quota_pattern = re.compile(r"\d*,\d .* (\d*,\d).")
|
||||
expect(page_nextcloud.get_by_text(quota_pattern)).to_be_visible()
|
||||
|
||||
context.storage_state(path=DIR.STATES / "nextcloud_admin_state.json")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue