Skip to content

test: add login journey, dashboard row data, and error message tests#12

Draft
kashish2508 wants to merge 1 commit into
mainfrom
scout/add-tests-1779099692166
Draft

test: add login journey, dashboard row data, and error message tests#12
kashish2508 wants to merge 1 commit into
mainfrom
scout/add-tests-1779099692166

Conversation

@kashish2508

Copy link
Copy Markdown
Member

Adds 3 new Playwright E2E tests covering login-to-dashboard journey, dashboard data integrity, and login error message verification.

Test Coverage Additions

1. Login-to-Dashboard E2E Journey

  • Gap identified — Existing login tests verified the redirect URL but never checked that dashboard content actually rendered after arrival.
  • User behavior — User fills login form with valid credentials, sees welcome message, gets redirected to dashboard, and sees stat cards with data.

2. Dashboard Activity Table Row Data

  • Gap identified — Existing test only asserted that table rows exist (count > 0) without verifying actual row content.
  • User behavior — User views the dashboard and sees correct activity data: Alice/Created account, Bob/Placed order, Charlie/Updated profile with dates.

3. Login Error Message Text

  • Gap identified — Existing empty-form test checked the .error CSS class but never asserted the specific error message text.
  • User behavior — User submits an empty login form and sees the message "Username and password required".

Test files

  • tests/login.spec.ts (modified — 1 new test, 1 enhanced test)
  • tests/dashboard.spec.ts (modified — 1 new test)
  • tests/specs/test-plan.md (updated with 3 new test entries)

Generated by App Testing Agent Scout

- Add login-to-dashboard E2E journey test verifying complete user outcome
- Add activity table row data verification test for all 3 rows
- Enhance empty form error test to assert specific error message text
- Update test plan with 3 new test entries

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants