Skip to content

test(web): stabilise agent enrolment E2E submit cases #1427

@simonjcarr

Description

@simonjcarr

While validating issue #1426 on branch issue-1426-enrollment-token, the focused existing-token view case passed, but the full focused spec command failed in two neighboring cases:\n\nCommand:\n\nbash\npnpm --dir apps/web test:e2e tests/e2e/settings/agent-enrolment.spec.ts\n\n\nObserved failures:\n\n1. admin can create and revoke an enrolment token from agent settings timed out waiting for agent-enrolment-install-command. The screenshot showed the create dialog still in the Creating... pending state after the assertion timeout.\n2. admin cannot create an auto-approved token without super admin privileges timed out waiting for the expected error text. The screenshot showed the token-created success state instead.\n\nThe issue-specific test, admin can view the install URL for an existing enrolment token, passed and verified the command contains CT_OPS_ENROLMENT_TOKEN= and the stored token while keeping the token out of the URL.\n\nRecommendation: investigate whether these two cases need stronger waits/fixtures, role setup isolation, or frontend mutation-state handling so the full agent enrolment E2E spec is reliable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions