[Test failure] Freeze dialog: Visits picker left open, so the Forms (Activities) button is inert
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-8916 · Completed
- Owner
- [email protected] (last changed visitExecStudy.page.js (8785991e2))
- Filed in
- Backlog, Test Agent Automation
- History when filed
- regression, this error since build 851
- Already fixed by
- 6c24790b0 [E2E] Nightly 861 e2e fixes (#16601)
- On screen
- The Freeze data dialog is open, with a second dialog on top of it that has a Dismiss button and a "Search..." box, which is the picker that was never closed.
- Branches
- fails on production only: the same test passes on master (e2e-tests-master build 881). A fix that is on master has not reached production.
TC-16 fails in `_freezeLockStep1` at `e2e/pages/studies/visitExecStudy.page.js:2956`. Click on the 'Forms (Activities)' button times out with "element is inert".
The page snapshot shows a second dialog (Dismiss button and 'Search...' box) over the Freeze data dialog. The Select Visits picker is still open, so the dialog beneath it is inert.
The helper closes the picker with `keyboard.press('Escape')` (line 2948). The suite's `e2e/knowledge/visit-execution.md:221` says Escape does not close these pickers and that `closeMultiSelect` (click outside) must be used instead.
Master already has this. The freeze helper lines now call `closeMultiSelect`, last changed by 6c24790b0 and fe5efbd12. Master build 881 passes. Production lacks it, and production's `visitExecStudy.page.js` was last changed by a3aebd0e4, which still uses Escape.
The failure is deterministic: it fails 10 runs in a row, and the retry failed the same way. I did not confirm why it began at build 851. The production build 851 started 17 minutes after a3aebd0e4, and the filters-toolbar cherry-pick 6f39f60a8 reached production earlier.
Bring 6c24790b0 to production, or its `closeMultiSelect` change to the freeze helper. If you cherry-pick it, take fe5efbd12 too, because that commit also changed the `closeMultiSelect` helper and the freeze helper lines.
History of this root cause
- filed ENG-8916 · build 860 6d ago
The test is wrong, confidence medium; 1 test; to [email protected] in Backlog
Tests 1
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 |
|---|---|---|---|
| EDC - Freeze, Pi Sign Off and Lock › TC-16: Freeze Manually Selected Visits and Activities (Prerequisite for Lock) edcFreezeLockPiSignOff |
did not run |
How the agent decided
- Models
- claude-sonnet-5-5 ($0.53, 19 lookups)
- Settled by
- the investigating model
- Cost
- $0.53
What it looked up (19, in order)
1. commits repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, since=2026-11-02T00:00:00Z, branch=master · 384 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)
77e47b6b4 2026-11-07T12:56 pranitmahajan: [E2E] e2e sync with production branch (#16593)
4f2467f3d 2026-11-03T07:45 arzatskis: Turn on the new filters toolbar everywhere and update e2e for it (#16330)
2. commits repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, since=2026-11-02T00:00:00Z, branch=production · 674 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)
a3aebd0e4 2026-11-07T10:48 pranitmahajan: [E2E] fixes edc and work plan tests (#16592)
566e142b5 2026-11-06T18:10 pranitmahajan: [E2E] fix for edc test (#16584)
cd5b62155 2026-11-04T16:18 Harsh-Tilda: [E2E] updates tests as per recent cherrypicks (#16496)
6f39f60a8 2026-11-04T08:33 arzatskis: Cherry-pick the new filters toolbar to production (#16454)
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=77e47b6b4, path=e2e/pages/studies/visitExecStudy.page.js · 5887 chars back
77e47b6b4 2026-11-07T12:56 pranitmahajan: [E2E] e2e sync with production branch (#16593)
78 files changed: e2e/.babelrc, e2e/.gitignore, e2e/.lintstagedrc.json, e2e/AGENTS.md, e2e/clusterUtils/listOrgsWithActivities.js, e2e/clusterUtils/listOrgsWithProtocols.js, e2e/clusterUtils/migrateProtocols.js, e2e/eslint.config.js, e2e/knowledge/ai-review.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/studies.md, e2e/knowledge/studio.md, e2e/knowledge/testing-patterns.md, e2e/knowledge/training.md, e2e/knowledge/visit-execution.md, e2e/knowledge/work-orders-api.md, e2e/knowledge/work-orders-audit-log.md, e2e/knowledge/work-orders-language.md …
--- 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.plus');
+ this.scheduleButton = page.getByTestId('icon-schedule-add');
this.inviteMemberButton = page.getByRole('button', {
name: 'Invite member'
});
@@ -299,7 +299,7 @@ export default class VisitStudiesPage extends BasePage {
… (4387 more characters not kept)
5. search_code repo=cleopatra, text=Forms (Activities), path_prefix=e2e/pages · 104 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
3060: .locator('label:has-text("Forms (Activities)")')
6. page_snapshot text=dialog · 3282 chars back
14: ```
15: TimeoutError: locator.click: Timeout 50000ms exceeded.
16: Call log:
17: - waiting for getByRole('dialog').locator('label:has-text("Forms (Activities)")').locator('..').locator('..').getByRole('button').first()
18: - locator resolved to <button data-rac="" tabindex="0" type="button" data-size="normal" data-layout="block" data-theme="regular" aria-expanded="false" class="_button_ay2sv_1" aria-haspopup="listbox" data-variant="secondary" data-journey-kind="open" data-journey-auto="true" id="react-aria23336912
19: - attempting click action
20: 2 × waiting for element to be visible, enabled and stable
21: - element is inert
…
188: - cell [ref=f5e425]:
189: - button "0" [ref=f5e427]
190: - region "Notifications (F8)":
191: - list
192: - dialog [ref=f5e432]:
193: - generic [ref=f5e433]:
194: - banner [ref=f5e434]:
195: - generic [ref=f5e437]:
196: - heading "Freeze data" [level=3] [ref=f5e439]
…
271: - generic [ref=f5e595]: Ongoing logs like AEs, ConMeds, and Medical History.
272: - contentinfo [ref=f5e596]:
273: - button "Cancel" [ref=f5e597] [cursor=pointer]
274: - button "Continue" [ref=f5e599] [cursor=pointer]
275: - dialog [ref=f5e603]:
276: - button "Dismiss" [ref=f5e605] [cursor=pointer]
277: - generic [ref=f5e606]:
278: - group [ref=f5e610]:
279: - searchbox "Search..." [active] [ref=f5e617]
…
314: 2
… (1782 more characters not kept)
7. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=3020, end_line=3085 · 97 chars back
no file e2e/pages/visitExecution/visitExecStudy.page.js in tildabio/cleopatra at the run's commit
8. read_file repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, start_line=2876, end_line=2900 · 847 chars back
e2e/pages/studies/visitExecStudy.page.js (5093 lines), lines 2876-2900:
2876 sites = [],
2877 subjects = [],
2878 visits = [],
2879 activities = [],
2880 visitOption = 'All visits',
2881 openFromRow = false
2882 } = options;
2883 const dialog = this.page.getByRole('dialog');
2884
2885 if (sites.length > 0) {
2886 await dialog
2887 .locator('label:has-text("Sites")')
2888 .locator('..')
2889 .locator('..')
2890 .getByRole('button')
2891 .first()
2892 .click();
2893 for (const site of sites) {
2894 await this.page.getByRole('option', { name: site }).click();
2895 }
2896 await this.page.keyboard.press('Escape');
2897 }
2898
2899 if (subjects.length > 0) {
2900 await this.page.waitForTimeout(2000);
9. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=3030, end_line=3080 · 97 chars back
no file e2e/pages/visitExecution/visitExecStudy.page.js in tildabio/cleopatra at the run's commit
10. search_code repo=cleopatra, text=popoverUnderlay · 30 chars back
no match on the default branch
11. search_code repo=cleopatra, text=inert, path_prefix=e2e/knowledge · 1140 chars back
e2e/knowledge/studio.md
203: - **Publishing from the row menu opens the protocol overlay** on the new published version (`routes/protocol.tsx:274-276`, every update action does). The overlay makes the list inert, so close it (`Es
e2e/knowledge/sites.md
109: - **Absent is only proved by an open menu.** The menu closes itself after opening (see *Staff*), so a `toHaveCount(0)` on a closed menu passes for the wrong reason. The spec wraps open + `View Profile
e2e/knowledge/events.md
96: - `address` on a site config is consumed **only** by `createSite` → `createCroSite`. Every other consumer (`withSiteIds`, `addSitesToStudy`, `ensureLanguageSiteContactStrategy`) reads named properties
e2e/knowledge/visit-execution.md
5: > **Last updated:** 2026-11-16 | The four longest serial files start first (`startFirst` in `modules.js`, TA-237), picked from `ui-tests-master` #879 per-file times; read from config and `--list`. |
221: **Close those pickers by clicking outside, never with Escape** (`closeMultiSelect`). react-aria's listbox defaults `escapeKeyBehavior` to `clearSelection`, and `packages/ui/select/select.tsx` does not
12. read_file repo=cleopatra, path=e2e/knowledge/visit-execution.md, start_line=215, end_line=230 · 2008 chars back
e2e/knowledge/visit-execution.md (254 lines), lines 215-230:
215
216 Every SDV control is a `ui` `Switch` (`TableSdvControl control="switch"`), so it is a react-aria-components `<label>` (`label[class*="switch"]`, matched in the page object) wrapping a visually-hidden `input[role="switch"
217
218 **Read its state off the label's `data-selected`, not `aria-checked`.** `useSwitch` returns `{role: 'switch', checked: isSelected}` for the input — `checked` is a DOM *property*, and no `aria-checked` attribute is ever w
219
220 The state is **server-owned** — `SdvCheckbox` renders from `participantQuestion.sdvVerified`, there is no optimistic flip — so the attribute assertion needs the full mutation round trip: `SDV_SWITCH_STATE_TIMEOUT_MS` (60
221
222 The "N / M questions verified" banner is a **sibling above** the form, not inside it. It must be read with `toHaveText` rather than `innerText()`: `innerText` is layout-dependent and comes back empty under `PrintPreviewL
223
224 Its denominator is `ObjectSDV`'s `available` list (`modules/execution/components/object/object-sdv.tsx`): the questionnaire's direct `QuestionV2` children flagged `sdvEnabled` whose participant status is not `NotAvailabl
225
226 Three things make a "toggle every switch, then expect N/N" test report a stable partial ratio such as `1/5`:
227
228 - **The switch count is a snapshot.** Counting `sdvSwitchLabels` as soon as the *first* switch becomes visible is not safe: the long Informed Consent form paints
… (508 more characters not kept)
13. search_code repo=cleopatra, text=closeMultiSelect · 877 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
1472: async closeMultiSelect() {
3007: await this.closeMultiSelect();
3022: await this.closeMultiSelect();
3057: await this.closeMultiSelect();
e2e/knowledge/sites.md
112: - **Assign to site: the site list stays open over Submit after a pick** (TagInput, multiple selection). Tab commits the focused option, which unpicks it, and Escape clears the picks; on blur the TagIn
e2e/knowledge/visit-execution.md
5: > **Last updated:** 2026-11-16 | The four longest serial files start first (`startFirst` in `modules.js`, TA-237), picked from `ui-tests-master` #879 per-file times; read from config and `--list`. |
221: **Close those pickers by clicking outside, never with Escape** (`closeMultiSelect`). react-aria's listbox defaults `escapeKeyBehavior` to `clearSelection`, and `packages/ui/select/select.tsx` does not
14. commits repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, since=2026-11-07T00:00:00Z, branch=master · 1199 chars back
de78c7210 2026-11-16T07:51 sbadiger: [E2E]: Training logs verifications (#16842)
450fde1f8 2026-11-14T15:03 Harsh-Tilda: [E2E] TA 232 own sets (#16823)
4901909b7 2026-11-13T13:41 sbadiger: [E2E]: Training test fixes (#16803)
a4e9aea2b 2026-11-12T17:57 Harsh-Tilda: [E2E] TA 230 shared state (#16769)
77149f3c1 2026-11-12T15:46 tilda-gitbot[bot]: ENG-8704: Fix progress note TC-02 after dropping the page reload (#16734)
f5332f92c 2026-11-11T16:15 sbadiger: [E2E]: AE fixes (#16683)
fe5efbd12 2026-11-11T14:30 Harsh-Tilda: [E2E] fixes study feed and documents test (#16685)
6fa3ebc48 2026-11-11T10:44 sbadiger: [E2E]: Simplify execution (#16679)
7c21eca8d 2026-11-11T02:47 tilda-gitbot[bot]: [E2E] Subject page: open from Subjects, Tasks tab and Documents tab (ENG-8561) (#16640)
9595e30aa 2026-11-11T02:36 asatish: e2e: find toasts by the react-aria markup, not role="status" (#16634)
e96aa3746 2026-11-10T16:10 poojalodhi: Remove the Studio Workflow, Controls, Triggers and Pre-screeners pages (ENG-8575) (#16629)
22bac70a0 2026-11-10T14:13 sbadiger: [E2E]: AE test and heloper fix (#16647)
11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
15. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=1465, end_line=1490 · 97 chars back
no file e2e/pages/visitExecution/visitExecStudy.page.js in tildabio/cleopatra at the run's commit
16. blame repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=1472, end_line=1485 · 815 chars back
lines 1472-1472: 6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
lines 1473-1475: fe5efbd12 2026-11-11T14:30 Harsh-Tilda: [E2E] fixes study feed and documents test (#16685)
lines 1476-1478: 6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
lines 1479-1479: fe5efbd12 2026-11-11T14:30 Harsh-Tilda: [E2E] fixes study feed and documents test (#16685)
lines 1480-1480: 6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
lines 1481-1481: fe5efbd12 2026-11-11T14:30 Harsh-Tilda: [E2E] fixes study feed and documents test (#16685)
lines 1482-1484: 6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
lines 1485-1485: 8669347f3 2026-05-05T15:06 pranitmahajan: [E2E] verify lock and freeze as per subject row (#12732)
17. blame repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=3050, end_line=3060 · 568 chars back
lines 3050-3051: fe5efbd12 2026-11-11T14:30 Harsh-Tilda: [E2E] fixes study feed and documents test (#16685)
lines 3052-3054: 6d7b34642 2026-05-28T15:37 sbadiger: [E2E]: Global table changes (#13106)
lines 3055-3055: 6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
lines 3056-3056: 6d7b34642 2026-05-28T15:37 sbadiger: [E2E]: Global table changes (#13106)
lines 3057-3057: 6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
lines 3058-3060: 6d7b34642 2026-05-28T15:37 sbadiger: [E2E]: Global table changes (#13106)
18. commit_diff repo=cleopatra, sha=a3aebd0e4, path=e2e/pages/studies/visitExecStudy.page.js · 2431 chars back
a3aebd0e4 2026-11-07T10:48 pranitmahajan: [E2E] fixes edc and work plan tests (#16592)
11 files changed: e2e/helpers/workPlanSetupHelper.js, e2e/knowledge/feasibility.md, e2e/pages/aiTeammates/workPlanData.js, e2e/pages/aiTeammates/workPlanPage.js, e2e/pages/export/baseline/baseline-annotated-specific-crf-print.pdf, e2e/pages/export/baseline/baseline-blank-1-visit-crf-print.pdf, e2e/pages/export/baseline/baseline-blank-crf-print.pdf, e2e/pages/studies/visitExecStudy.page.js, e2e/tests/aiTeammates/feasibilityWorkPlan.spec.js, e2e/tests/singlePage/edc/crfPrinting.spec.js, e2e/utils/apiUtility/workPlanApiUtility.js
--- e2e/pages/studies/visitExecStudy.page.js
@@ -2705,6 +2705,7 @@ export default class VisitStudiesPage extends BasePage {
if (subjects.length > 0) {
await this.page.waitForTimeout(2000);
+ await this.page.keyboard.press('Escape');
await dialog
.locator('label:has-text("Subjects")')
.locator('..')
@@ -2713,13 +2714,14 @@ export default class VisitStudiesPage extends BasePage {
.first()
.click();
for (const subject of subjects) {
- await this.page.getByRole('heading', { name: subject }).first().click();
+ await this.page.getByRole('option', { name: subject }).first().click();
}
- await this.page.keyboard.press('Escape');
+ await this.page.locator('body').click({ position: { x: 0, y: 0 } });
}
const includeVisitsField = this.page.getByTestId('field-includeVi
… (931 more characters not kept)
19. commit_diff repo=cleopatra, sha=6f39f60a8, path=e2e/pages/studies/visitExecStudy.page.js · 2756 chars back
6f39f60a8 2026-11-04T08:33 arzatskis: Cherry-pick the new filters toolbar to production (#16454)
110 files changed: AGENTS.md, apps/sense/src/components/audit-log/audit-log-controls.tsx, apps/sense/src/components/audit-log/audit-log-timestamp.ts, apps/sense/src/components/audit-log/index.ts, apps/sense/src/components/audit-log/use-audit-log-filters.ts, apps/sense/src/components/tasks-table/inbox-dropdown-button.tsx, apps/sense/src/components/tmf-audit-log-modal/tmf-audit-log-modal.tsx, apps/sense/src/components/tmf-audit-log-modal/useTmfAuditLogFilters.ts, apps/sense/src/hooks/index.ts, apps/sense/src/hooks/useMultiSelectFilter.ts, apps/sense/src/modules/ai-chat/components/memory-filter-bar/memory-filter-bar.tsx, apps/sense/src/modules/ai-teammates/ai-inbox/inbox-filter-chips.tsx, apps/sense/src/modules/ai-teammates/ai-inbox/inbox-filters.test.tsx, apps/sense/src/modules/ai-teammates/ai-inbox/inbox-toolbar.tsx, apps/sense/src/modules/ai-teammates/ai-inbox/tmf-uploads/tmf-upload-filters.tsx, apps/sense/src/modules/ai-teammates/ai-inbox/work-order-emails/work-order-email-filters.tsx, apps/sense/src/modules/ai-teammates/ai-workorders/work-order-config/work-order-config-audit-log-modal.tsx, apps/sense/src/modules/ai-teammates/ai-workorders/work-order-details/work-order-audit-log-modal.tsx, apps/sense/src/modules/ai-teammates/ai-workplans/work-plan-instance-detail/work-plan-audit-log-modal.tsx, apps/sense/src/modules/calendar/components/filters.tsx, apps/sense/src/modules/document
… (1256 more characters not kept)
What it was shown (build 860, 37.5 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": 1,
"suite": "edcFreezeLockPiSignOff",
"members": [
{
"test": "edcFreezeLockPiSignOff::TC-16: Freeze Manually Selected Visits and Activities (Prerequisite for Lock)",
"pattern": "regression",
"meaning": "failed the last 10 runs in a row after passing 9 of the 9 before: something changed, so it is not flaky",
"newest_first": "F F F F F F F F F F P P P P P P P P P",
"failing_in_a_row": 10,
"this_error_in_a_row": 10,
"this_error_since_build": 851,
"build_before_this_error": 829,
"failing_since_build": 851,
"last_passed_build": 829
}
]
}
The failure
{
"test": "edcFreezeLockPiSignOff::TC-16: Freeze Manually Selected Visits and Activities (Prerequisite for Lock)",
"status": "error",
"message": "locator.click: Timeout 50000ms exceeded.",
"traceback_tail": " - attempting click action\n 2 \u00d7 waiting for element to be visible, enabled and stable\n - element is inert\n - retrying click action\n - waiting 20ms\n 2 \u00d7 waiting for element to be visible, enabled and stable\n - element is inert\n - retrying click action\n - waiting 100ms\n 95 \u00d7 waiting for element to be visible, enabled and stable\n - element is inert\n - retrying click action\n - waiting 500ms\n\n\n at pages/studies/visitExecStudy.page.js:2956\n\n 2954 | .getByRole('button')\n 2955 | .first()\n > 2956 | .click();\n | ^\n 2957 | for (const activity of activities) {\n 2958 | await this.page.getByRole('option', { name: activity }).click();\n 2959 | }\n at VisitStudiesPage._freezeLockStep1 (/home/jenkins/agent/workspace/ui-tests-production/e2e/pages/studies/visitExecStudy.page.js:2956:12)\n at VisitStudiesPage.freezeVisits (/home/jenkins/agent/workspace/ui-tests-production/e2e/pages/studies/visitExecStudy.page.js:2977:5)\n at /home/jenkins/agent/workspace/ui-tests-production/e2e/tests/singlePage/edc/edcFreezeLockPiSignOff.spec.js:233: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/edc-edcFreezeLockPiSignOff-872fd-ties-Prerequisite-for-Lock--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/edc-edcFreezeLockPiSignOff-872fd-ties-Prerequisite-for-Lock--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/edc-edcFreezeLockPiSignOff-872fd-ties-Prerequisite-for-Lock--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/edc-edcFreezeLockPiSignOff-872fd-ties-Prerequisite-for-Lock--singlePage-retry1/trace.zip\n Usage:\n\n npx playwright show-trace reports/edc-edcFreezeLockPiSignOff-872fd-ties-Prerequisite-for-Lock--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": "e2e7e573b27ea455236f82f34fd6943d",
"method": "GET",
"path": "/api/myprofile/v2",
"status": "None",
"error": "net::ERR_ABORTED"
},
{
"trace_id": "e2e7e573b27ea455236f82f7642de23f",
"method": "GET",
"path": "/api/studies",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea455236f82fb981b2606",
"method": "GET",
"path": "/api/trialexec/study/7a26d64c-6dc4-4173-8e54-355774e59d52/subject/details",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea455236f82fa77eb1ade",
"method": "POST",
"path": "/api/journey",
"status": "204",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea455236f82f83779bb89",
"method": "POST",
"path": "/api/journey",
"status": "204",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea455236f82fd03d8fd7f",
"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:2956",
"code_frame": " at pages/studies/visitExecStudy.page.js:2956\n\n 2954 | .getByRole('button')\n 2955 | .first()\n> 2956 | .click();\n | ^\n 2957 | for (const activity of activities) {\n 2958 | await this.page.getByRole('option', { name: activity }).click();\n 2959 | }",
"playwright_call_log": [
"- waiting for getByRole('dialog').locator('label:has-text(\"Forms (Activities)\")').locator('..').locator('..').getByRole('button').first()",
"- locator resolved to <button data-rac=\"\" tabindex=\"0\" type=\"button\" data-size=\"normal\" data-layout=\"block\" data-theme=\"regular\" aria-expanded=\"false\" class=\"_button_ay2sv_1\" aria-haspopup=\"listbox\" d",
"- attempting click action",
"- element is inert",
"- retrying click action",
"- waiting 20ms",
"- element is inert",
"- retrying click action",
"- waiting 100ms",
"- element is inert",
"- retrying click action",
"- waiting 500ms"
],
"attempts": {
"errors": [
"TimeoutError: locator.click: Timeout 50000ms exceeded.",
"TimeoutError: locator.click: Timeout 50000ms exceeded."
],
"note": "every attempt failed the same way: deterministic, not a race"
}
}
The test's history
{
"pattern": "regression",
"meaning": "failed the last 10 runs in a row after passing 9 of the 9 before: something changed, so it is not flaky",
"newest_first": "F F F F F F F F F F P P P P P P P P P",
"failing_in_a_row": 10,
"this_error_in_a_row": 10,
"this_error_since_build": 851,
"build_before_this_error": 829
}
other_branch
{
"branch": "master",
"job": "e2e-tests-master",
"build": 881,
"these_tests_there": {
"passing": 1
},
"reading": "fails on production only: the same test passes on master (`e2e-tests-master` build 881). A fix that is on master has not reached production.",
"only_on_master": {
"path": "e2e/tests/singlePage/edc/edcFreezeLockPiSignOff.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"
},
{
"sha": "6c24790b0",
"subject": "[E2E] Nightly 861 e2e fixes (#16601)",
"login": "Harsh-Tilda",
"date": "2026-11-08T18:16"
}
]
}
}
The test's source
{
"repo": "tildabio/cleopatra",
"at": "ee3a2cbd4",
"path": "e2e/tests/singlePage/edc/edcFreezeLockPiSignOff.spec.js",
"from_line": 224,
"failing_line": 224,
"code": "224> test('TC-16: Freeze Manually Selected Visits and Activities (Prerequisite for Lock)', async ({\n225 dmCro\n226 }) => {\n227 await dmCro.selectOrgAndModule('studies', croOrg);\n228 await dmCro.searchStudy(studyName);\n229 \n230 await dmCro.studySubjectsTab.click();\n231 await dmCro.page.waitForLoadState('networkidle');\n232 \n233 await dmCro.freezeVisits({\n234 visits: [visitName],\n235 activities: ['Demographics'],\n236 visitOption: 'Manually select visits and forms'\n237 });\n238 });\n239 \n240 test('TC-17: Verify Freeze by Manually select visits and activities', async ({\n241 pi\n242 }) => {\n243 await pi.selectOrgAndModule('studies', 'Tilda QA');\n244 await pi.searchStudy(studyName);\n245 \n246 await pi.studySubjectsTab.click();\n247 await expect(pi.getSubjectRowFreezeIcon(croExePatient)).toHaveCount(0);\n248 await pi.selectSubjectGridIcon(croExePatient);\n249 await pi.visitSummaryOption.click();\n250 await pi.page.waitForLoadState('networkidle');\n251 await pi.page.getByText('Demographics').nth(0).click();\n252 await expect(pi.editIcon).toHaveCount(0);\n253 await pi.page.getByText('Informed Consent/Assent').nth(0).click();\n254 await expect(pi.editIcon).not.toHaveCount(0);\n255 });\n256 \n257 test('TC-18: Lock by Manually select visits and activities', async ({\n258 dmCro\n259 }) => {\n260 await dmCro.selectOrgAndModule('studies', croOrg);\n261 await dmCro.searchStudy(studyName);\n262 \n263 await dmCro.studySubjectsTab.click();\n264 await dmCro.page.waitForLoadState('networkidle');\n265 \n266 await dmCro.lockVisits({\n267 visits: [visitName],\n268 activities: ['Demographics'],\n269 visitOption: 'Manually select visits and activities'\n270 });\n271 });\n272 \n273 test('TC-19: Verify Lock by Manually select visits and activities', async ({\n274 pi\n275 }) => {\n276 await pi.selectOrgAndModule('studies', 'Tilda QA');\n277 await pi.searchStudy(studyName);\n278 \n279 await pi.studySubjectsTab.click();\n280 await expect(pi.getSubjectRowLockIcon(croExePatient)).toHaveCount(0);\n281 await pi.selectSubjectGridIcon(croExePatient);\n282 await pi.visitSummaryOption.click();\n283 await pi.page.waitForLoadState('networkidle');\n284 await pi.page.getByText('Demographics').nth(0).click();\n285 await expect(pi.editIcon).toHaveCount(0);\n286 await pi.page.getByText('Informed Consent/Assent').nth(0).click();\n287 await expect(pi.editIcon).not.toHaveCount(0);\n288 });\n289 \n290 test('TC-20: Unlock from inside specific visit and activity', async ({\n291 dmCro\n292 }) => {\n293 await dmCro.selectOrgAndModule('studies', croOrg);\n294 await dmCro.searchStudy(studyName);"
}
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/edc/edcFreezeLockPiSignOff.spec.js >> EDC - Freeze, Pi Sign Off and Lock >> TC-16: Freeze Manually Selected Visits and Activities (Prerequisite for Lock)\n- Location: tests/singlePage/edc/edcFreezeLockPiSignOff.spec.js:224:3\n\n# Error details\n\n```\nTimeoutError: locator.click: Timeout 50000ms exceeded.\nCall log:\n - waiting for getByRole('dialog').locator('label:has-text(\"Forms (Activities)\")').locator('..').locator('..').getByRole('button').first()\n - locator resolved to <button data-rac=\"\" tabindex=\"0\" type=\"button\" data-size=\"normal\" data-layout=\"block\" data-theme=\"regular\" aria-expanded=\"false\" class=\"_button_ay2sv_1\" aria-haspopup=\"listbox\" data-variant=\"sec\n - attempting click action\n 2 \u00d7 waiting for element to be visible, enabled and stable\n - element is inert\n - retrying click action\n - waiting 20ms\n 2 \u00d7 waiting for element to be visible, enabled and stable\n - element is inert\n - retrying click action\n - waiting 100ms\n 95 \u00d7 waiting for element to be visible, enabled and stable\n - element is inert\n - retrying click action\n - waiting 500ms\n\n```\n\n# Page snapshot\n\n```yaml\n- generic [ref=f5e1]:\n - generic [ref=f5e2]:\n - main [ref=f5e3]:\n \u2026\n - columnheader \"Status\" [ref=f5e365]\n \u2026\n - dialog [ref=f5e432]:\n \u2026\n - heading \"Freeze data\" [level=3] [ref=f5e439]\n \u2026\n - heading \"Visits\" [level=5] [ref=f5e504]\n \u2026\n - heading \"Exclude partially completed visits\" [level=5] [ref=f5e537]\n \u2026\n - heading \"Common forms\" [level=5] [ref=f5e594]\n \u2026\n - dialog [ref=f5e603]:\n \u2026\n 2883 | const dialog = this.page.getByRole('dialog');\n \u2026\n 2886 | await dialog\n \u2026\n 2902 | await dialog\n \u2026\n 2938 | await dialog\n \u2026\n 2950 | await dialog\n \u2026\n | ^ TimeoutError: locator.click: Timeout 50000ms exceeded.\n \u2026\n 2993 | 'li[role=\"status\"]:has-text(\"Data frozen successfully.\")'\n \u2026\n 3026 | 'li[role=\"status\"]:has-text(\"Data unfrozen successfully.\")'"
}
The code where it failed
{
"path": "e2e/pages/studies/visitExecStudy.page.js",
"failing_line": 2956,
"code": "2931 await dateGroup.locator('span[data-type=\"day\"]').fill(day);\n2932 await dateGroup\n2933 .locator('span[data-type=\"month\"]')\n2934 .fill(parseInt(month, 10).toString());\n2935 await dateGroup.locator('span[data-type=\"year\"]').fill(year);\n2936 } else if (visitOption === 'Manually select visits and forms') {\n2937 if (!openFromRow) {\n2938 await dialog\n2939 .locator('label:has-text(\"Select Visits\")')\n2940 .locator('..')\n2941 .locator('..')\n2942 .getByRole('button')\n2943 .first()\n2944 .click();\n2945 for (const visit of visits) {\n2946 await this.page.getByRole('option', { name: visit }).click();\n2947 }\n2948 await this.page.keyboard.press('Escape');\n2949 \n2950 await dialog\n2951 .locator('label:has-text(\"Forms (Activities)\")')\n2952 .locator('..')\n2953 .locator('..')\n2954 .getByRole('button')\n2955 .first()\n2956> .click();\n2957 for (const activity of activities) {\n2958 await this.page.getByRole('option', { name: activity }).click();\n2959 }\n2960 await this.page.keyboard.press('Escape');\n2961 }\n2962 }\n2963 }\n2964 \n2965 async freezeVisits(options = {}) {\n2966 const {\n2967 sites = [],\n2968 subjects = [],"
}
Commits in the window
{
"between": "build 829 (last pass, started 2026-11-02T20:31:48Z) and build 851 (first failure of the streak, started 2026-11-07T11:05:22Z)",
"test_repo": {
"repo": "tildabio/cleopatra",
"range": "2026-11-02T20:31 to 2026-11-07T11:05 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": "4f2467f3d",
"subject": "Turn on the new filters toolbar everywhere and update e2e for it (#16330)",
"login": "arzatskis",
"name": "Edvinas Ar\u017eatskis",
"date": "2026-11-03T07:45",
"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: Timeout 50000ms exceeded.`
**On screen when it failed:** The Freeze data dialog is open, with a second dialog on top of it that has a Dismiss button and a "Search..." box, which is the picker that was never closed.

**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/d0bafb13f336df)
**Branches:** fails on production only: the same test passes on master (`e2e-tests-master` build 881). A fix that is on master has not reached production.
TC-16 fails in `_freezeLockStep1` at `e2e/pages/studies/visitExecStudy.page.js:2956`. Click on the 'Forms (Activities)' button times out with "element is inert".
The page snapshot shows a second dialog (Dismiss button and 'Search...' box) over the Freeze data dialog. The Select Visits picker is still open, so the dialog beneath it is inert.
The helper closes the picker with `keyboard.press('Escape')` (line 2948). The suite's `e2e/knowledge/visit-execution.md:221` says Escape does not close these pickers and that `closeMultiSelect` (click outside) must be used instead.
Master already has this. The freeze helper lines now call `closeMultiSelect`, last changed by 6c24790b0 and fe5efbd12. Master build 881 passes. Production lacks it, and production's `visitExecStudy.page.js` was last changed by a3aebd0e4, which still uses Escape.
The failure is deterministic: it fails 10 runs in a row, and the retry failed the same way. I did not confirm why it began at build 851. The production build 851 started 17 minutes after a3aebd0e4, and the filters-toolbar cherry-pick 6f39f60a8 reached production earlier.
Bring 6c24790b0 to production, or its `closeMultiSelect` change to the freeze helper. If you cherry-pick it, take fe5efbd12 too, because that commit also changed the `closeMultiSelect` helper and the freeze helper lines.
**Missing on production:** [6c24790b0](https://github.com/tildabio/cleopatra/commit/6c24790b017ed2fb9343031f5596fd5ba84a39b5) [E2E] Nightly 861 e2e fixes (#16601) (Harsh-Tilda, 2026-11-08T18:16). 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 (1):**
- [edcFreezeLockPiSignOff::TC-16: Freeze Manually Selected Visits and Activities (Prerequisite for Lock)](https://xray.tilda.pizza/tests/case/056529cdd069892d) (failing since build 851)
**Error:**
```
locator.click: Timeout 50000ms exceeded.
```
+++ Agent notes
Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 19 lookups in the code and its history.
Group `triage:d0bafb13f336df` (one issue per root cause).
A wrong verdict can be corrected on the run page in X-ray.
+++