bug: flaky e2e "montre un message d'erreur" — ambiguous main p selector races the BigbDashboard widget #60
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
argus/backend#60
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Intermittent failure in
e2e/accueil.spec.ts, seen on run #193:Root cause:
ProjectListView.vue's homepage now embeds<BigbDashboard>(argus/backend#17) inside<main>. That component has its own independentloading/errorstate and renders its own<p>(inBigbDashboard.vue:<p v-if="loading">/<p v-else-if="error" class="bigb-error">), nested under<section class="overview">. The test's$("main p")selector predates this widget and assumed exactly one<p>under<main>; depending on which of the two independent fetches (/api/projects/and/bigb/dashboards/argus-overview/) has settled by the time the assertion samples the DOM, it now matches 1 or 2 paragraphs — flaky, not a real regression inProjectListView's own behavior.Fix: scope the selector to the error paragraph that is actually a direct child of
<main>(ProjectListView's own), excludingBigbDashboard's nested one — no timing dependency, no frontend change needed.Not linked to a Thierryade spec: this is a test-infrastructure fix, not a product-behavior change, and no existing spec covers e2e selector mechanics.
🤖 Found and analyzed with Claude Code