Skip to content

Add Playwright coverage for critical UI/API regressions #1083

Description

@SoftFx

Goal

Add a focused Playwright coverage pack for high-value regressions around sensor data visibility, users management, access keys, and auth/navigation.

Suggested scenarios

  1. Enum sensor visible in history

    • Create/send enum sensor value through API/collector path.
    • Open history/table UI.
    • Verify the enum value is visible.
    • Regression target: enum data can be saved but disappear from history serialization/UI.
  2. Users edit flow

    • Create a test user.
    • Edit role/password in the current Users modal.
    • Reload Users page.
    • Verify changes persisted.
    • Clean up the user.
  3. Access key sends sensor value

    • Create/select product from UI.
    • Open Access Keys, obtain default/new key.
    • Send a simple sensor value through public API.
    • Verify it appears in UI/history.
  4. Basic auth/session guard

    • Login persists across reload/navigation.
    • Logout works.
    • Protected page redirects unauthenticated user to login.

Notes

Keep this as a small, stable e2e pack. Prefer reusable helpers similar to src/tests/Autotests/users.ts, deterministic test data, and cleanup so tests can be rerun locally without manual reset.

Acceptance criteria

  • New Playwright specs run locally against the test container.
  • Tests are repeatable and clean up created users/products where possible.
  • Existing Playwright suite remains green.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions