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:
@@ -1,17 +1,3 @@
|
||||
## Task 25: UI Setup Flow - Password Strength Strong
|
||||
|
||||
**Suite:** `Robot.Ui.Setup Flow`
|
||||
**Test:** `Password Strength Strong`
|
||||
**Result:** FAIL
|
||||
**Error:** `TimeoutError: locator.waitFor: Timeout 5000ms exceeded. waiting for locator('id=setup-form') to be visible`
|
||||
|
||||
**Instructions:**
|
||||
- Same root cause as Task 22: the setup form is not visible.
|
||||
- Fix the suite setup so the app is in an unconfigured state before each setup flow test.
|
||||
- Ensure `#setup-form` is rendered when navigating to the setup page.
|
||||
|
||||
---
|
||||
|
||||
## Task 26: UI Setup Flow - Setup Form Validation Empty Password
|
||||
|
||||
**Suite:** `Robot.Ui.Setup Flow`
|
||||
|
||||
@@ -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