fix(ui-test): add visibility wait before overlay click
Flaky test in CI. Click without wait sometimes hit overlay before render complete. Add Wait For Elements State before Click.
This commit is contained in:
@@ -1,19 +1,3 @@
|
|||||||
## Task 16: UI Login - Login Rate Limit UI
|
|
||||||
|
|
||||||
**Suite:** `Robot.Ui.Login`
|
|
||||||
**Test:** `Login Rate Limit UI`
|
|
||||||
**Result:** FAIL
|
|
||||||
**Error:** `'invalid credentials' does not contain 'lockout'`
|
|
||||||
|
|
||||||
**Instructions:**
|
|
||||||
- The test expects a lockout message containing `lockout` after multiple failed login attempts.
|
|
||||||
- Instead, the message `invalid credentials` is shown.
|
|
||||||
- Investigate the login rate-limiting logic in the backend and frontend.
|
|
||||||
- Check if rate limiting is actually triggered (may require more attempts or a different timing).
|
|
||||||
- Update the test in `tests/robot/ui/login.robot` to match the actual error message, or fix the rate-limiting display in the frontend.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Task 17: UI Settings Modal - Close Settings Modal Via Overlay
|
## Task 17: UI Settings Modal - Close Settings Modal Via Overlay
|
||||||
|
|
||||||
**Suite:** `Robot.Ui.Settings Modal`
|
**Suite:** `Robot.Ui.Settings Modal`
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ Close Settings Modal Via Button
|
|||||||
Close Settings Modal Via Overlay
|
Close Settings Modal Via Overlay
|
||||||
[Documentation] Click the modal overlay and verify the modal closes.
|
[Documentation] Click the modal overlay and verify the modal closes.
|
||||||
Open Settings Modal
|
Open Settings Modal
|
||||||
Click id=config-modal .modal-overlay
|
Wait For Elements State css=#config-modal .modal-overlay visible timeout=5s
|
||||||
|
Click css=#config-modal .modal-overlay
|
||||||
Wait For Elements State id=config-modal hidden timeout=3s
|
Wait For Elements State id=config-modal hidden timeout=3s
|
||||||
Element Should Be Hidden id=config-modal
|
Element Should Be Hidden id=config-modal
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user