[Test failure] Task filter: 'Con Med Review' heading matches the new 'group tasks' heading too (2 tests)
The test is wrong confidence medium · low priority · e2e-tests-production, last seen in build 860
The verdict
- Fix is in
- the automation suite (e2e): the test is wrong (already merged)
- Issue
- ENG-8913 · Completed
- Owner
- [email protected] (last changed visitExecStudy.page.js (8785991e2))
- Filed in
- Backlog, Test Agent Automation
- History when filed
- regression, this error since build 858
- Already fixed by
- fe5efbd12 [E2E] fixes study feed and documents test (#16685)
- On screen
- The task list shows a 'Con Med Review group tasks' row while the filter dialog lists a 'Con Med Review' option, so two headings match.
- Branches
- fails on production only: the same tests pass on master (e2e-tests-master build 881). A fix that is on master has not reached production.
The filter helper clicks getByRole('heading', { name: 'Con Med Review' }) at visitExecStudy.page.js:1237. That name matches by substring, so it resolves to two headings. One is the filter option in the dialog. The other is the task list's group row 'Con Med Review group tasks (0/2)'. Both retries failed the same way, so it is deterministic.
Master already has the fix. Its filterTask uses `{ name: option, exact: true }`, added by fe5efbd12 (#16685, 'fixes study feed and documents test'). Production lacks it, and the same tests pass on master build 881.
The remedy is to bring fe5efbd12 to production. I did not check which product change added the group row. The first failure with this error was build 858.
medHistoryTasks TC-03 fails the same way since build 858. It uses the same helper, so it is the same cause.
History of this root cause
- filed ENG-8913 · build 860 6d ago
The test is wrong, confidence medium; 2 tests; to [email protected] in Backlog
Tests 2
Oldest to newest, up to 30 runs. Green passed, red failed with this error, amber failed with another error. Skipped and collapsed runs are left out. Newest build: 860.
| Test | History | Newest run | Reading |
|---|---|---|---|
| Exe - ConMeds Task › TC-03: Verify sign off con-med record (visit execution) via task conMedsTasks |
did not run | ||
| Exe - Medical History Task › TC-03: Verify editing and PI sign off medical history record via task medHistoryTasks |
did not run |
How the agent decided
- Models
- claude-sonnet-5-5 ($0.53, 13 lookups)
- Settled by
- the investigating model
- Cost
- $0.53
What it looked up (13, in order)
1. commits repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, branch=master, since=2026-11-08T00:00:00Z · 183 chars back
11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
2. commits repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, branch=production, since=2026-11-08T00:00:00Z · 321 chars back
ee3a2cbd4 2026-11-16T08:29 tilda-gitbot[bot]: [E2E]: Training logs verifications (#16845)
14f72f1a1 2026-11-16T02:03 taylorfutral: [Cherry-pick] Org and Study Trainings split, license gating and log fixes to production (ENG-8591) (#16825)
27b092ab4 2026-11-13T17:37 tilda-gitbot[bot]: [E2E]: Training test fixes (#16807)
3. commit_diff repo=cleopatra, sha=6c24790b0, path=e2e/pages/studies/visitExecStudy.page.js · 5951 chars back
6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
101 files changed: e2e/AGENTS.md, e2e/cleanup.js, e2e/knowledge/ai-review.md, e2e/knowledge/documents.md, e2e/knowledge/events.md, e2e/knowledge/license-visibility.md, e2e/knowledge/organizations.md, e2e/knowledge/studies.md, e2e/knowledge/studio.md, e2e/knowledge/testing-patterns.md, e2e/knowledge/training.md, e2e/knowledge/visit-execution.md, e2e/knowledge/work-orders-audit-log.md, e2e/knowledge/work-orders-language.md, e2e/knowledge/work-orders-wizard.md, e2e/knowledge/work-plans.md, e2e/pages/aiTeammates/aiTeammates.page.js, e2e/pages/aiTeammates/workOrderPage.js, e2e/pages/aiTeammates/workPlanPage.js, e2e/pages/base.page.js, e2e/pages/documents/documentData.js, e2e/pages/documents/documents.page.js, e2e/pages/documents/documentsCRO.page.js, e2e/pages/finance/budget.page.js, e2e/pages/patients/patients.page.js …
--- e2e/pages/studies/visitExecStudy.page.js
@@ -61,7 +61,7 @@ export default class VisitStudiesPage extends BasePage {
this.visitStudyTeamsTab = page.getByTestId('app-header-study-team-tab');
this.studySubjectsTab = page.getByTestId('app-header-study-subjects-tab');
this.subjectStatusSelect = page.getByTestId('visit-status-badge');
- this.scheduleButton = page.getByTestId('icon-schedule-add');
+ this.scheduleButton = page.getByTestId('icon-schedule.plus');
this.inviteMemberButton = page.getByRole('button', {
name: 'Invite member'
});
@@ -113,6 +113,
… (4451 more characters not kept)
4. commit_diff repo=cleopatra, sha=11c6b32b4, path=e2e/pages/studies/visitExecStudy.page.js · 5726 chars back
11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
243 files changed: .cursor/rules/e2e-automation-rules.mdc, e2e/.gitignore, e2e/AGENTS.md, e2e/data.json, e2e/eslint.config.js, e2e/helpers/authHelper.js, e2e/helpers/functionHelper.js, e2e/helpers/studioDataHelper.js, e2e/helpers/workOrderSetupHelper.js, e2e/helpers/workPlanSetupHelper.js, e2e/jenkins-readme.md, e2e/knowledge/README.md, e2e/knowledge/ai-inbox.md, e2e/knowledge/ai-review.md, e2e/knowledge/calendar.md, e2e/knowledge/doa-log.md, e2e/knowledge/documents.md, e2e/knowledge/events.md, e2e/knowledge/feasibility.md, e2e/knowledge/license-visibility.md, e2e/knowledge/login.md, e2e/knowledge/organizations.md, e2e/knowledge/patients.md, e2e/knowledge/sites.md, e2e/knowledge/studio.md …
--- .cursor/rules/e2e-automation-rules.mdc
@@ -1,6 +1,6 @@
---
description: Automation test rules for AI Teammates tests and related page objects
-globs: e2e/tests/aiTeammates/**,e2e/pages/aiTeammates/**,e2e/pages/studies/eventPage.js
+globs: e2e/tests/workplan/**,e2e/tests/workorder/**,e2e/tests/edl/**,e2e/pages/workplan/**,e2e/pages/workorder/**,e2e/pages/edl/**,e2e/pages/common/aiTeammates.page.js
alwaysApply: true
---
--- e2e/.gitignore
@@ -15,11 +15,12 @@ cleanup_log.txt
../logs
data.json
.allure
-/pages/export/actual/
+/pages/visitExecution/export/actual/
*.lock
!utils/testDocuments/**/*.json
api-tests-sa
api-tests-sa.json
.yarn/*
!.yarn/releases
+!scripts/mod
… (4226 more characters not kept)
5. search_code repo=cleopatra, text=async filterTask(, path_prefix=e2e/pages · 94 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
1251: async filterTask(filterName, option) {
6. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=1248, end_line=1272 · 97 chars back
no file e2e/pages/visitExecution/visitExecStudy.page.js in tildabio/cleopatra at the run's commit
7. blame repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=1251, end_line=1262 · 914 chars back
lines 1251-1251: 3536298d0 2025-08-08T13:07 sbadiger: [E2E]: Visit task updates (#9021)
lines 1252-1252: 44b11a25f 2026-10-28T17:46 sbadiger: [E2E]: Filter changes (#16257)
lines 1253-1253: 3536298d0 2025-08-08T13:07 sbadiger: [E2E]: Visit task updates (#9021)
lines 1254-1255: 44b11a25f 2026-10-28T17:46 sbadiger: [E2E]: Filter changes (#16257)
lines 1256-1256: cc0b3161f 2026-07-27T08:04 pranitmahajan: [E2E]Fix freeze lock tests (#14136)
lines 1257-1257: 44b11a25f 2026-10-28T17:46 sbadiger: [E2E]: Filter changes (#16257)
lines 1258-1258: fe5efbd12 2026-11-11T14:30 Harsh-Tilda: [E2E] fixes study feed and documents test (#16685)
lines 1259-1259: 3536298d0 2025-08-08T13:07 sbadiger: [E2E]: Visit task updates (#9021)
lines 1260-1260: fe5efbd12 2026-11-11T14:30 Harsh-Tilda: [E2E] fixes study feed and documents test (#16685)
lines 1261-1262: 44b11a25f 2026-10-28T17:46 sbadiger: [E2E]: Filter changes (#16257)
8. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=1248, end_line=1275 · 97 chars back
no file e2e/pages/visitExecution/visitExecStudy.page.js in tildabio/cleopatra at the run's commit
9. commit_diff repo=cleopatra, sha=fe5efbd12, path=e2e/pages/visitExecution/visitExecStudy.page.js · 515 chars back
fe5efbd12 2026-11-11T14:30 Harsh-Tilda: [E2E] fixes study feed and documents test (#16685)
10 files changed: e2e/knowledge/documents.md, e2e/knowledge/studies.md, e2e/knowledge/training.md, e2e/knowledge/visit-execution.md, e2e/pages/study/studyFeedData.js, e2e/pages/study/studyFeedPage.js, e2e/pages/tmf/documents.page.js, e2e/pages/visitExecution/visitExecStudy.page.js, e2e/tests/study/studyFeed.spec.js, e2e/utils/apiUtility/feedApiUtility.js
--- e2e/pages/visitExecution/visitExecStudy.page.js
(no text diff)
10. search_code repo=cleopatra, text=filterName, path_prefix=e2e/pages/visitExecution · 251 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
1251: async filterTask(filterName, option) {
1258: await this.page.getByRole('heading', { name: filterName }).click();
1263: this.page.getByRole('row', { name: `${filterName}: ${option}` }).first()
11. commit_diff repo=cleopatra, sha=44b11a25f, path=e2e/pages/studies/visitExecStudy.page.js · 3703 chars back
44b11a25f 2026-10-28T17:46 sbadiger: [E2E]: Filter changes (#16257)
1 files changed: e2e/pages/studies/visitExecStudy.page.js
--- e2e/pages/studies/visitExecStudy.page.js
@@ -80,9 +80,9 @@ export default class VisitStudiesPage extends BasePage {
name: 'Edit'
})
.last();
- this.clearButtonInviteDialog = page
- .getByRole('button', { name: 'Clear' })
- .last();
+ this.clearButtonInviteDialog = page.getByTestId(
+ 'tasks-table-filters-clear'
+ );
this.doneButtonInviteDialog = page
.getByRole('button', { name: 'Done' })
.last();
@@ -424,7 +424,7 @@ export default class VisitStudiesPage extends BasePage {
);
this.openDocButton = page.getByRole('button', { name: 'Open Document' });
this.piOversightButton = page.getByRole('link', { name: 'PI Oversight' });
- this.filterButton = page.getByRole('button', { name: 'Filter' });
+ this.filterButton = page.getByTestId('tasks-table-filters');
this.docCloseIcon = page
.locator('[data-testid="document-modal"] [class*=title] button')
.first();
@@ -861,7 +861,11 @@ export default class VisitStudiesPage extends BasePage {
.first()
).toBeVisible();
await this.page.waitForTimeout(5000);
- await this.page.locator('[class*=list]').getByText(taskTitle).click();
+ await this.page
+ .locator('[class*=list]')
+ .getByText(taskTitle)
+ .last()
+ .click();
if (category !== 'Delegate Data entry') {
… (2203 more characters not kept)
12. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=1250, end_line=1266 · 97 chars back
no file e2e/pages/visitExecution/visitExecStudy.page.js in tildabio/cleopatra at the run's commit
13. search_code repo=cleopatra, text=name: option, path_prefix=e2e/pages/visitExecution · 132 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
1260: await this.page.getByRole('heading', { name: option, exact: true }).click();
What it was shown (build 860, 34.7 KB)
The run
{
"job": "e2e-tests-production",
"build": 860,
"kind": "ui-tests",
"result": "UNSTABLE",
"started": "2026-11-16T20:36:09Z",
"tests": 600,
"failed": 18,
"test_commit": "ee3a2cbd4",
"branch": "production",
"cluster_prepared": {
"mode": "verify",
"result": "ready",
"product_commit": "a654678"
}
}
services
[
"docsvc",
"execsvc",
"patientsvc",
"schedsvc",
"enrollsvc",
"studiosvc",
"finsvc",
"notifsvc",
"dslsvc",
"authz",
"dashQL",
"dashRsvc",
"regsvc",
"advpsvc",
"workplansvc",
"datasvc",
"payoutsvc",
"tusker",
"authsvc",
"eventsvc",
"ehrsvc",
"docproc",
"studioai",
"sense"
]
The cluster during the run
{
"cluster": "automation",
"findings_opened_around_the_run": [
{
"kind": "error.novel",
"severity": "critical",
"subject": "exportsvc",
"title": "exportsvc: a new error shape, 157\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)",
"opened_minutes_after_run_start": 81
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "exportsvc",
"title": "exportsvc: a new error shape, 14\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)",
"opened_minutes_after_run_start": 97
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "exportsvc",
"title": "exportsvc: a new error shape, 7\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)",
"opened_minutes_after_run_start": 133
}
],
"long_standing_findings_left_out": 16,
"pods_in_trouble_during_the_run": [],
"deploys_during_the_run": []
}
The group
{
"tests": 2,
"suite": "conMedsTasks",
"members": [
{
"test": "conMedsTasks::TC-03: Verify sign off con-med record (visit execution) via task",
"pattern": "regression",
"meaning": "failed the last 3 runs in a row after passing 13 of the 23 before: something changed, so it is not flaky",
"newest_first": "F F F P P F F F F P F F F F F F P P P P P P P P P P",
"failing_in_a_row": 3,
"this_error_in_a_row": 3,
"this_error_since_build": 858,
"build_before_this_error": 857,
"failing_since_build": 858,
"last_passed_build": 857
},
{
"test": "medHistoryTasks::TC-03: Verify editing and PI sign off medical history record via task",
"pattern": "regression",
"meaning": "failed the last 8 runs in a row after passing 10 of the 17 before: something changed, so it is not flaky",
"newest_first": "F F F F F F F F P F F F F F F F P P P P P P P P P",
"failing_in_a_row": 8,
"this_error_in_a_row": 3,
"this_error_since_build": 858,
"note": "the red streak is 8 runs long but only the last 3 failed with this error: the earlier ones were other failures, so date the cause from this error's first build",
"build_before_this_error": 857,
"failing_since_build": 853,
"last_passed_build": 852
}
]
}
The failure
{
"test": "conMedsTasks::TC-03: Verify sign off con-med record (visit execution) via task",
"status": "error",
"message": "locator.click: Error: strict mode violation: getByRole('heading', { name: 'Con Med Review' }) resolved to 2 elements:",
"traceback_tail": " attachment #2: video (video/webm) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n reports/conMeds-conMedsTasks-Exe---39f50-rd-visit-execution-via-task-singlePage/video.webm\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n Error Context: reports/conMeds-conMedsTasks-Exe---39f50-rd-visit-execution-via-task-singlePage/error-context.md\n\n Retry #1 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n Error: locator.click: Error: strict mode violation: getByRole('heading', { name: 'Con Med Review' }) resolved to 2 elements:\n 1) <h5 class=\"_heading_eix6n_16 _title_154hi_15\">Con Med Review group tasks</h5> aka getByRole('heading', { name: 'Con Med Review group tasks' })\n 2) <h5 class=\"_heading_eix6n_16 _title_154hi_15\">Con Med Review</h5> aka getByTestId('ConMedReview').getByRole('heading', { name: 'Con Med Review' })\n\n Call log:\n - waiting for getByRole('heading', { name: 'Con Med Review' })\n\n\n at pages/studies/visitExecStudy.page.js:1237\n\n 1235 | await this.page.getByRole('heading', { name: filterName }).click();\n 1236 | await this.waitForTime(2000);\n > 1237 | await this.page.getByRole('heading', { name: option }).click();\n | ^\n 1238 | await this.waitForTime(2000);\n 1239 | await expect(\n 1240 | this.page.getByRole('row', { name: `${filterName}: ${option}` }).first()\n at VisitStudiesPage.filterTask (/home/jenkins/agent/workspace/ui-tests-production/e2e/pages/studies/visitExecStudy.page.js:1237:60)\n at /home/jenkins/agent/workspace/ui-tests-production/e2e/tests/singlePage/conMeds/conMedsTasks.spec.js:68:5\n\n attachment #1: screenshot (image/png) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n reports/conMeds-conMedsTasks-Exe---39f50-rd-visit-execution-via-task-singlePage-retry1/test-failed-1.png\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n attachment #2: video (video/webm) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n reports/conMeds-conMedsTasks-Exe---39f50-rd-visit-execution-via-task-singlePage-retry1/video.webm\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n Error Context: reports/conMeds-conMedsTasks-Exe---39f50-rd-visit-execution-via-task-singlePage-retry1/error-context.md\n\n attachment #5: trace (application/zip) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n reports/conMeds-conMedsTasks-Exe---39f50-rd-visit-execution-via-task-singlePage-retry1/trace.zip\n Usage:\n\n npx playwright show-trace reports/conMeds-conMedsTasks-Exe---39f50-rd-visit-execution-via-task-singlePage-retry1/trace.zip\n\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
"requests": [
{
"trace_id": "e2e7e573b27ea454f6dd4bbb8757343a",
"method": "GET",
"path": "/api/myprofile/v2",
"status": "None",
"error": "net::ERR_ABORTED"
},
{
"trace_id": "e2e7e573b27ea454f6dd4bb616adf0fe",
"method": "GET",
"path": "/api/tasks/",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea454f6dd4bbc01bb2eb2",
"method": "GET",
"path": "/api/taskfilters/",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea454f6dd4bb59eeb9606",
"method": "GET",
"path": "/api/taskfilters/",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea454f6dd4bbf4939cfa9",
"method": "POST",
"path": "/api/journey",
"status": "204",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea454f6dd4bb8ffa3267c",
"method": "POST",
"path": "/api/journey",
"status": "204",
"error": "None"
}
],
"errors_the_services_logged_for_these_requests": "none: no service logged an error under these requests' trace ids",
"raised_at": "e2e/pages/studies/visitExecStudy.page.js:1237",
"code_frame": " at pages/studies/visitExecStudy.page.js:1237\n\n 1235 | await this.page.getByRole('heading', { name: filterName }).click();\n 1236 | await this.waitForTime(2000);\n> 1237 | await this.page.getByRole('heading', { name: option }).click();\n | ^\n 1238 | await this.waitForTime(2000);\n 1239 | await expect(\n 1240 | this.page.getByRole('row', { name: `${filterName}: ${option}` }).first()",
"playwright_call_log": [
"- waiting for getByRole('heading', { name: 'Con Med Review' })"
],
"attempts": {
"errors": [
"Error: locator.click: Error: strict mode violation: getByRole('heading', { name: 'Con Med Review' }) resolved to 2 elements:",
"Error: locator.click: Error: strict mode violation: getByRole('heading', { name: 'Con Med Review' }) resolved to 2 elements:"
],
"note": "every attempt failed the same way: deterministic, not a race"
}
}
The test's history
{
"pattern": "regression",
"meaning": "failed the last 3 runs in a row after passing 13 of the 23 before: something changed, so it is not flaky",
"newest_first": "F F F P P F F F F P F F F F F F P P P P P P P P P P",
"failing_in_a_row": 3,
"this_error_in_a_row": 3,
"this_error_since_build": 858,
"build_before_this_error": 857
}
other_branch
{
"branch": "master",
"job": "e2e-tests-master",
"build": 881,
"these_tests_there": {
"passing": 2
},
"reading": "fails on production only: the same tests pass on master (`e2e-tests-master` build 881). A fix that is on master has not reached production.",
"only_on_master": {
"path": "e2e/tests/singlePage/conMeds/conMedsTasks.spec.js",
"commits": [
{
"sha": "11c6b32b4",
"subject": "[E2E] changes folder structure and run to run module wise (#16639)",
"login": "Harsh-Tilda",
"date": "2026-11-10T11:42"
}
]
}
}
The test's source
{
"repo": "tildabio/cleopatra",
"at": "ee3a2cbd4",
"path": "e2e/tests/singlePage/conMeds/conMedsTasks.spec.js",
"from_line": 59,
"failing_line": 59,
"code": "59> test('TC-03: Verify sign off con-med record (visit execution) via task', async ({\n60 qa\n61 }) => {\n62 const medicationName = conmed1Details.answers[cm.fields.medicationName];\n63 const taskName = `Review Concomitant Medication(${medicationName})`;\n64 \n65 await qa.searchStudy(studyName);\n66 await qa.goToVisitsPage(conmedsPatientName);\n67 await qa.subjectTaskTab.click();\n68 await qa.filterTask('Category', 'Con Med Review');\n69 await qa.selectTask(taskName);\n70 await expect(qa.taskDialogHeading).toContainText(taskName);\n71 await qa.verifyTaskDialogCategory('Con Med Review');\n72 \n73 logger.info(`Signing off con-med record from task: ${medicationName}`);\n74 await qa.reviewTableRow(medicationName);\n75 await qa.verifyTableRowStatus(medicationName, 'Reviewed');\n76 await qa.closeTaskDialogue.click();\n77 });\n78 \n79 test('TC-04: Verify editing and reviewing con-med record (Con-Meds tab) via task', async ({\n80 pi\n81 }) => {\n82 const medicationName = conmed2Details.answers[cm.fields.medicationName];\n83 const taskName = `Review Concomitant Medication(${medicationName})`;\n84 \n85 await pi.searchStudy(studyName);\n86 await pi.goToVisitsPage(conmedsPatientName);\n87 await pi.subjectTaskTab.click();\n88 await pi.filterTask('Category', 'Con Med Review');\n89 await pi.selectTask(taskName);\n90 await expect(pi.taskDialogHeading).toContainText(taskName);\n91 await pi.verifyTaskDialogCategory('Con Med Review');\n92 \n93 logger.info(`Editing con-med record from task: ${medicationName}`);\n94 await pi.editTableRow(medicationName, {\n95 tableColumn: cm.fields.medicationName\n96 });\n97 const tableDetails = pi.resolveGlobalTableDetails(\n98 cm.activityTitle,\n99 cm.ocular.tableName\n100 );\n101 const startDateQuestion = tableDetails.question.find(\n102 (q) => q.title === cm.fields.startDate\n103 );\n104 const startDateLocator = await pi.getTableLocator(cm.fields.startDate);\n105 const startDateValue = await pi.fillGlobalTableCell(\n106 startDateLocator,\n107 startDateQuestion\n108 );\n109 await pi.saveTableRow(medicationName, {\n110 tableColumn: cm.fields.medicationName\n111 });\n112 await expect(\n113 pi.globalTableCellValue(startDateValue.year.toString())\n114 ).toBeVisible();\n115 \n116 logger.info(`Review con-med record from task: ${medicationName}`);\n117 await pi.confirmSignoffButton.click();\n118 await pi.sign(piUser.userName);\n119 \n120 await pi.waitForTime(2000);\n121 await pi.selectTask(taskName);\n122 await expect(pi.taskDialogHeading).toContainText(taskName);\n123 await pi.verifyTableRowStatus(medicationName, 'Pending');\n124 });\n125 });"
}
The page when it failed
{
"what": "Playwright's accessibility snapshot of the page at the moment the test gave up (error-context.md): what was really on screen",
"snapshot": "# Instructions\n\n- Following Playwright test failed.\n- Explain why, be concise, respect Playwright best practices.\n- Provide a snippet of code with the fix, if possible.\n\n# Test info\n\n- Name: tests/singlePage/conMeds/conMedsTasks.spec.js >> Exe - ConMeds Task >> TC-03: Verify sign off con-med record (visit execution) via task\n- Location: tests/singlePage/conMeds/conMedsTasks.spec.js:59:3\n\n# Error details\n\n```\nError: locator.click: Error: strict mode violation: getByRole('heading', { name: 'Con Med Review' }) resolved to 2 elements:\n 1) <h5 class=\"_heading_eix6n_16 _title_154hi_15\">Con Med Review group tasks</h5> aka getByRole('heading', { name: 'Con Med Review group tasks' })\n 2) <h5 class=\"_heading_eix6n_16 _title_154hi_15\">Con Med Review</h5> aka getByTestId('ConMedReview').getByRole('heading', { name: 'Con Med Review' })\n\nCall log:\n - waiting for getByRole('heading', { name: 'Con Med Review' })\n\n```\n\n# Page snapshot\n\n```yaml\n- generic [ref=f3e1]:\n - generic [ref=f3e2]:\n - main [ref=f3e3]:\n - generic \"Main navigation sidebar\" [ref=f3e4]:\n - generic [ref=f3e5]:\n - link \"Home\" [ref=f3e6] [cursor=pointer]:\n - /url: /\n - button \"Collapse navigation\" [ref=f3e7] [cursor=pointer]\n - generic [ref=f3e12]:\n - button \"TI Tilda QA Test Analyst\" [ref=f3e14] [cursor=pointer]:\n - generic [ref=f3e15]: TI\n - generic [ref=f3e16]:\n - generic [ref=f3e17]: Tilda QA\n - generic [ref=f3e18]: Test Analyst\n \u2026\n - /url: /tildaQa/studies/3a8e29a3-efdf-4714-8cff-e74088db5982/subjects/189a6d02-759b-4115-8fe3-e6bebeae023b/medical-history\n - link \"Documents\" [ref=f3e266] [cursor=pointer]:\n - /url: /tildaQa/studies/3a8e29a3-efdf-4714-8cff-e74088db5982/subjects/189a6d02-759b-4115-8fe3-e6bebeae023b/documents\n - generic [ref=f3e276]:\n - heading \"Tasks\" [level=3] [ref=f3e280]\n - generic [ref=f3e281]:\n - generic [ref=f3e282]:\n - generic [ref=f3e283]:\n - group [ref=f3e287]:\n \u2026\n - columnheader \"Status\" [ref=f3e339] [cursor=pointer]\n \u2026\n - cell [ref=f3e371]:\n - generic [ref=f3e373]:\n - checkbox [ref=f3e375]\n - complementary [ref=f3e377]\n - cell \"Con Med Review group tasks (0/2) 2\" [ref=f3e380]:\n - generic [ref=f3e382]:\n - complementary [ref=f3e383]\n - heading \"Con Med Review group tasks\" [level=5] [ref=f3e389]\n - generic [ref=f3e390]:\n - generic [ref=f3e391]: (0/2)\n - generic [ref=f3e392]: \"2\"\n - cell [ref=f3e396]\n \u2026\n - complementary [ref=f3e421]\n - cell [ref=f3e424]:\n - generic [ref=f3e426]:\n - complementary [ref=f3e427]\n - heading \"Review Concomitant Medication(Text-1794866314139)\" [level=5] [ref=f3e429]\n - cell [ref=f3e430]:\n - generic [ref=f3e432]:\n - button \"low\" [ref=f3e433]\n - combobox [ref=f3e438]\n - cell [ref=f3e439]:\n - generic [ref=f3e441]:\n - button \"Open\" [ref=f3e442]\n - combobox [ref=f3e452]\n - cell \"Con Med Review\" [ref=f3e453]\n - cell \"-\" [ref=f3e455]\n - cell \"-\" [ref=f3e457]\n - cell \"Xpwt1cdzi39z3m Bocn1cdzi39z3m\" [ref=f3e459]\n - cell \"Today\" [ref=f3e461]\n \u2026\n - complementary [ref=f3e490]\n - cell [ref=f3e493]:\n - generic [ref=f3e495]:\n - complementary [ref=f3e496]\n - heading \"Review Concomitant Medication(Text-1794866473503)\" [level=5] [ref=f3e498]\n - cell [ref=f3e499]:\n - generic [ref=f3e501]:\n - button \"low\" [ref=f3e502]\n - combobox [ref=f3e507]\n - cell [ref=f3e508]:\n - generic [ref=f3e510]:\n - button \"Open\" [ref=f3e511]\n - combobox [ref=f3e521]\n - cell \"Con Med Review\" [ref=f3e522]\n - cell \"-\" [ref=f3e524]\n - cell \"-\" [ref=f3e526]\n - cell \"Xpwt1cdzi39z3m Bocn1cdzi39z3m\" [ref=f3e528]\n - cell \"Today\" [ref=f3e530]\n \u2026\n - complementary [ref=f3e559]\n - cell [ref=f3e562]:\n - generic [ref=f3e564]:\n - complementary\n - 'heading \"Review V1 data: Xpwt1cdzi39z3m Bocn1cdzi39z3m\" [level=5] [ref=f3e566]'\n - cell [ref=f3e567]:\n - generic [ref=f3e569]:\n - button \"low\" [ref=f3e570]\n - combobox [ref=f3e575]\n \u2026\n - complementary [ref=f3e619]\n - cell [ref=f3e622]:\n - generic [ref=f3e624]:\n - complementary\n - 'heading \"Review V1 data: Xpwt1cdzi39z3m Bocn1cdzi39z3m\" [level=5] [ref=f3e626]'\n - cell [ref=f3e627]:\n - generic [ref=f3e629]:\n - button \"low\" [ref=f3e630]\n - combobox [ref=f3e635]\n \u2026\n - complementary [ref=f3e679]\n - cell [ref=f3e682]:\n - generic [ref=f3e684]:\n - complementary\n - heading \"Schedule visit for Xpwt1cdzi39z3m Bocn1cdzi39z3m\" [level=5] [ref=f3e686]\n - cell [ref=f3e687]:\n - generic [ref=f3e689]:\n - button \"low\" [ref=f3e690]\n - combobox [ref=f3e695]\n \u2026\n - dialog [ref=f3e734]:\n \u2026\n - group [ref=f3e738]:\n - menuitemradio [ref=f3e739] [cursor=pointer]:\n - generic [ref=f3e740]:\n - complementary [ref=f3e741]\n - heading \"Con Med Review\" [level=5] [ref=f3e745]\n - menuitemradio [ref=f3e746] [cursor=pointer]:\n - generic [ref=f3e747]:\n - complementary [ref=f3e748]\n - heading \"Data Signoff Visit\" [level=5] [ref=f3e752]\n - menuitemradio [ref=f3e753] [cursor=pointer]:\n - generic [ref=f3e754]:\n - complementary [ref=f3e755]\n - heading \"DOA Investigator Signoff\" [level=5] [ref=f3e759]\n - menuitemradio [ref=f3e760] [cursor=pointer]:\n - generic [ref=f3e761]:\n - complementary [ref=f3e762]\n - heading \"DOA Staff Signoff\" [level=5] [ref=f3e766]\n - menuitemradio [ref=f3e767] [cursor=pointer]:\n \u2026 (cut)"
}
The code where it failed
{
"path": "e2e/pages/studies/visitExecStudy.page.js",
"failing_line": 1237,
"code": "1212 await this.completeTaskButton.click();\n1213 await this.page.waitForLoadState('networkidle');\n1214 }\n1215 await this.waitForTime(5000);\n1216 if (await this.closeTaskDialogue.isVisible()) {\n1217 await this.waitForTime(2000);\n1218 await this.closeTaskDialogue.click();\n1219 }\n1220 await this.waitForTime(2000);\n1221 if (category !== 'Delegate Data entry') {\n1222 await this.checkCompletedTask(taskName);\n1223 }\n1224 logger.info(`Task - ${taskName} verified`);\n1225 return activitAnswerDetails;\n1226 }\n1227 \n1228 async filterTask(filterName, option) {\n1229 await this.filterButton.waitFor();\n1230 await this.waitForTime(2000);\n1231 if (await this.clearButtonInviteDialog.isVisible()) {\n1232 await this.clearButtonInviteDialog.click();\n1233 }\n1234 await this.filterButton.click();\n1235 await this.page.getByRole('heading', { name: filterName }).click();\n1236 await this.waitForTime(2000);\n1237> await this.page.getByRole('heading', { name: option }).click();\n1238 await this.waitForTime(2000);\n1239 await expect(\n1240 this.page.getByRole('row', { name: `${filterName}: ${option}` }).first()\n1241 ).toBeVisible();\n1242 }\n1243 \n1244 async resetFilter() {\n1245 await this.waitForTime(5000);\n1246 await this.filterButton.waitFor();\n1247 if (await this.clearButtonInviteDialog.isVisible()) {\n1248 await this.clearButtonInviteDialog.click();\n1249 }"
}
Commits in the window
{
"between": "build 852 (last pass, started 2026-11-07T20:50:46Z) and build 853 (first failure of the streak, started 2026-11-08T20:54:43Z)",
"test_repo": {
"repo": "tildabio/cleopatra",
"range": "2026-11-07T20:50 to 2026-11-08T20:54 UTC",
"note": "by date: the runs did not record their commits, so these are the commits to the files involved between the last passing run and the first failing one",
"commits": [
{
"sha": "6c24790b0",
"subject": "[E2E] Nightly 861 e2e fixes (#16601)",
"login": "Harsh-Tilda",
"name": "Harsh Agarwal",
"date": "2026-11-08T18:16",
"touches": [
"e2e/pages/studies/visitExecStudy.page.js"
]
}
]
}
}
The issue as the agent wrote it
**Fix is in:** the automation suite (e2e): the test is wrong (already merged, see below).
**What failed:** `locator.click: Error: strict mode violation: getByRole('heading', { name: 'Con Med Review' }) resolved to 2 elements:`
**On screen when it failed:** The task list shows a 'Con Med Review group tasks' row while the filter dialog lists a 'Con Med Review' option, so two headings match.

**The test is wrong**, confidence medium. Found in `e2e-tests-production` build 860: [run in X-ray](https://xray.tilda.pizza/tests/run/e2e-tests-production/860).
**Root cause in X-ray:** [the verdict, each test's history and the evidence the agent read](https://xray.tilda.pizza/test-triage/b134a40435f48c)
**Branches:** fails on production only: the same tests pass on master (`e2e-tests-master` build 881). A fix that is on master has not reached production.
The filter helper clicks getByRole('heading', { name: 'Con Med Review' }) at visitExecStudy.page.js:1237. That name matches by substring, so it resolves to two headings. One is the filter option in the dialog. The other is the task list's group row 'Con Med Review group tasks (0/2)'. Both retries failed the same way, so it is deterministic.
Master already has the fix. Its filterTask uses `{ name: option, exact: true }`, added by fe5efbd12 (#16685, 'fixes study feed and documents test'). Production lacks it, and the same tests pass on master build 881.
The remedy is to bring fe5efbd12 to production. I did not check which product change added the group row. The first failure with this error was build 858.
medHistoryTasks TC-03 fails the same way since build 858. It uses the same helper, so it is the same cause.
**Missing on production:** [fe5efbd12](https://github.com/tildabio/cleopatra/commit/fe5efbd1232f2a31201183e12a921eeeff7335e2) [E2E] fixes study feed and documents test (#16685) (Harsh-Tilda, 2026-11-11T14:30). It is on master and not on production: bring it over, or wait for the next release.
**Assigned to:** [email protected] (last changed visitExecStudy.page.js (8785991e2)).
**Failing tests (2):**
- [conMedsTasks::TC-03: Verify sign off con-med record (visit execution) via task](https://xray.tilda.pizza/tests/case/16fd5ac6912225bc) (failing since build 858)
- [medHistoryTasks::TC-03: Verify editing and PI sign off medical history record via task](https://xray.tilda.pizza/tests/case/a541f79a18270049) (failing since build 853)
**Error:**
```
locator.click: Error: strict mode violation: getByRole('heading', { name: 'Con Med Review' }) resolved to 2 elements:
```
+++ Agent notes
Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 13 lookups in the code and its history.
Group `triage:b134a40435f48c` (one issue per root cause).
A wrong verdict can be corrected on the run page in X-ray.
+++