fix(ui-test): ensure app unconfigured before setup flow tests
Add Verify App Is Unconfigured keyword with retry logic. Update Test Setup to reset app state before each setup flow test. Remove stale Task 25 docs from tasks.md. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -96,6 +96,19 @@ Is Auth Configured
|
||||
${configured_val}= Set Variable ${configured}[0]
|
||||
RETURN ${configured_val}
|
||||
|
||||
Verify App Is Unconfigured
|
||||
[Documentation] Verify the app is in unconfigured state, retrying reset if needed.
|
||||
FOR ${i} IN RANGE 3
|
||||
${configured}= Is Auth Configured
|
||||
IF not ${configured}
|
||||
RETURN
|
||||
END
|
||||
# Not configured but Is Auth Configured returned True - reset again
|
||||
Reset Application State
|
||||
Sleep 1s
|
||||
END
|
||||
Fail App still configured after 3 reset attempts
|
||||
|
||||
Setup Master Password
|
||||
[Documentation] Configure the master password via the setup endpoint.
|
||||
${payload}= Create Dictionary
|
||||
|
||||
@@ -20,7 +20,9 @@ Resource ${CURDIR}/../resources/common.resource
|
||||
Resource ${CURDIR}/../resources/ui_keywords.resource
|
||||
|
||||
Test Setup Run Keywords
|
||||
... Open Browser To Page /setup
|
||||
... Reset Application State
|
||||
... AND Verify App Is Unconfigured
|
||||
... AND Open Browser To Page /setup
|
||||
... AND Wait For Elements State id=setup-form visible timeout=5s
|
||||
|
||||
Test Teardown Run Keywords
|
||||
|
||||
Reference in New Issue
Block a user