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.
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\n
bash\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 settingstimed out waiting foragent-enrolment-install-command. The screenshot showed the create dialog still in theCreating...pending state after the assertion timeout.\n2.admin cannot create an auto-approved token without super admin privilegestimed 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 containsCT_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.