Skip to content

test: add dashboard row data and login error text tests#14

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

test: add dashboard row data and login error text tests#14
kashish2508 wants to merge 1 commit into
mainfrom
scout/add-tests-1779101517839

Conversation

@kashish2508

Copy link
Copy Markdown
Member

Adds two new Playwright E2E tests that close coverage gaps in the dashboard and login suites.

1. Dashboard activity table row data accuracy (tests/dashboard.spec.ts)

  • Gap identified: The existing "Recent Activity table with data" test only asserts that rows exist (not.toHaveCount(0)) but never verifies the actual content of each row.
  • User behavior: A user navigates to the dashboard and sees the correct activity entries — Alice/Created account, Bob/Placed order, Charlie/Updated profile — with accurate dates.

2. Login error message text content (tests/login.spec.ts)

  • Gap identified: The existing "error when submitting empty form" test checks the .error CSS class but never asserts the actual error message text shown to the user.
  • User behavior: A user submits the login form without credentials and sees the specific error message "Username and password required".

Test files

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

Generated by App Testing Agent Scout

Add two new Playwright tests to improve coverage:
- Dashboard: verify activity table row content (Alice, Bob, Charlie)
- Login: verify error message text on empty form submission

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.

1 participant