diff --git a/Docs/tasks.md b/Docs/tasks.md index f665537..8cbe642 100644 --- a/Docs/tasks.md +++ b/Docs/tasks.md @@ -1,11 +1,3 @@ -### Task 16: Fix `Login Page Loads` UI Test -**Test Result:** FAIL — `TimeoutError: locator.waitFor: Timeout 5000ms exceeded. Call log: waiting for locator('id=password-input') to be visible` -**File:** `tests/robot/ui/login.robot` and `src/server/web/templates/login.html` -**Instructions:** -The Robot test looks for `id=password-input`, but the HTML template uses `id=password`. Open `src/server/web/templates/login.html` and change the password input element's `id` from `password` to `password-input`. Also check `id=login-submit-btn` — the template uses `id=login-button`. Change it to `id=login-submit-btn`. Ensure all referenced element IDs in the Robot tests match the actual HTML. - ---- - ### Task 17: Fix `Login With Valid Password` UI Test **Test Result:** FAIL — Same as Task 16 (`id=password-input` not found) **File:** `tests/robot/ui/login.robot` and `src/server/web/templates/login.html` diff --git a/src/server/web/templates/login.html b/src/server/web/templates/login.html index 1e35d8f..9db985a 100644 --- a/src/server/web/templates/login.html +++ b/src/server/web/templates/login.html @@ -146,6 +146,11 @@ border: 1px solid var(--color-error); font-size: 0.9rem; text-align: center; + display: block; + } + + #login-error { + display: none; } .success-message { @@ -242,7 +247,7 @@ -
+