test: CrowdSec console enrollment E2E cases are intermittently flaky
Maintainers usually reply within 1 day
@Wikid82 is already working on this.
Since Dec 1, 2026.
Assessment
This issue has not been assessed yet.
Description
What
Several cases in tests/security/crowdsec-console-enrollment.spec.ts fail intermittently when the whole file runs under the security-tests project, then pass on an isolated re-run.
Where
tests/security/crowdsec-console-enrollment.spec.ts, cases:
- "should send a forced request without asking for the acknowledgement" (toast not found)
- "should require a token before retrying" (text not visible)
- "should clear the state once confirmed..." (status label stays "Status: enrolled" for 5s)
- "should show an error toast and keep the state when clearing fails" (toast not found)
Evidence
One full-file run had 4 failures. A copy of the spec from development had 1 failure on the same "clear the state" assertion. A second full-file run passed (35 passed, 2 skipped). The success handler of useClearConsoleEnrollment invalidates crowdsec-console-status, so the code path looks correct; the cause looks like timing between the stubbed status response and the refetch.
Severity
Low (test stability only).
Suggested approach
Wait on the status request that follows the clear action before asserting the label, and wait for the toast with an explicit response wait rather than a fixed timeout.
Found while working on the encrypted-secrets branch (not yet a PR).
- Dominant language
- Go
- Stars
- 17
- Forks
- 2
- Avg merge
- 1h 42m
- Merged PRs (30d)
- 173
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Wikid82/Charon
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Docs promise signed SLSA provenance that the image build does not producePossibly taken @Wikid82 claimed this today. Openarchitecture documentation security ui
Wikid82/Charon#2152 · 1 assignee ·
Maintainers usually reply within 1 day
-
Orthrus agent images are not signed or SBOM-attestedPossibly taken @Wikid82 claimed this today. Opensecurity ssl testing
Wikid82/Charon#2151 · 1 assignee ·
Maintainers usually reply within 1 day
-
Registry prune deletes release image signatures and SBOM attestations on GHCR after 7 daysPossibly taken @Wikid82 claimed this today. Opencritical testing
Wikid82/Charon#2150 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Minor follow-ups from the country-allow-list local-network reviewPossibly taken @Wikid82 claimed this today. Openarchitecture backend documentation frontend low
Wikid82/Charon#2149 · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
agent:ready
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
turbot/flowpipe#1162 · 1 comment ·
Maintainers usually reply within 1 day
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costsPossibly taken @weirong-ui claimed this today. Openkind/bug needs-priority needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kubernetes-sigs/karpenter#3728 · 1 comment ·
Maintainers usually reply within 1 day
-
compaction: redundant exclusion checks after inRangePossibly taken @moodbased claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
docker/mcp-registry#8199 ·
Maintainers usually reply within 2 days