Xray
all clusters 1h 6h 24h 48h 3d 5d 7d 14d 30d ‹
Last 1 hour▾
Ends now. Anything up to this cluster's 30-day retention.
Start and end times
Cancel
Interpreted in UTC (change it at the right of this bar). Earliest available: 2026-10-24 10:00:26.
› →|
updated 5d ago
Sample data. This database was generated by scripts/seed_dev_db.py — every service, deploy, person and figure on this page is synthetic. Names are sample.*@seed.invalid and image tags are prefixed SEED-. Nothing here happened.

‹ Test triage

[Test failure] Complete Form button stays disabled: new draft-row gate (ENG-6995) vs. test's saved rows

The test is wrong confidence low · medium priority · e2e-tests-production, last seen in build 860

The verdict

Fix is in
the automation suite (e2e): the test is wrong
Issue
ENG-8915 · Completed
Owner
[email protected] (last changed visitExecStudy.page.js (8785991e2))
Filed in
Backlog, Test Agent Automation
Service
sense
History when filed
regression, this error since build 844
Suspect commit
854a0707c feat(sense): disable Complete while a global table has draft rows (ENG-6995) (#16553) (tilda-gitbot[bot])
On screen
The Concomitant Medications form is open with 'Yes' checked and its table of medications, and the 'Complete Form' button is greyed out.
Branches
fails on production; on master the same test fails with a different error (e2e-tests-master build 881).
The click at visitExecStudy.page.js:2425 (completeAdverseEvents) fails because 'Complete Form' is `disabled` for the whole 50s. Both attempts failed identically, and the test has failed 13 runs in a row since build 844. No e2e commit touched this file between build 841 and 844. A product commit did: 854a0707c (sense, 2026-11-06 05:11, ENG-6995) 'disable Complete while a global table has draft rows'. It rests on execsvc 618e0d73d, which adds `draftRowCount` to the status API. That commit counts rows whose status is still Draft, per careplan. A row leaves Draft only when its mandatory fields are all filled (`ShouldPromoteRowToPendingReview`, `incompleteCount` must be 0, `questionV2.go:2254`). completeGlobalTableRecord fills cells but skips questions with a `who` role, so a saved row can stay Draft and now blocks Complete. This is my reading of the code; I did not confirm which row stays Draft. The snapshot is odd: the main panel heading reads 'Concomitant Medications' with Yes checked and a con-med table, although the test is on the Adverse Event step. That is probably the Con Meds activity, which likely still has a Draft row. Next: open the trace to see which table row is Draft. Then fill its remaining mandatory columns in completeGlobalTableRecord, or wait for 'Complete Form' to be enabled before clicking. If a row with every mandatory field filled still stays Draft, treat it as a product bug in the promotion step. The exportsvc 'Cache not found' errors are unrelated to the disabled button. The master run failed with a different error, which I did not look at.

Proposed fix

In completeGlobalTableRecord (e2e/pages/studies/visitExecStudy.page.js, around line 4145), make sure every mandatory column of the saved row is filled so it leaves Draft. Do this for the Con Meds and AE tables, including questions currently skipped because of `who`, or fill them as the right role. Before the Complete click at lines 2323, 2372 and 2425, wait with expect(completeActivityButton).toBeEnabled() instead of the fixed waitForTime. Also assert the table shows no Draft status.

History of this root cause

  • filed ENG-8915 · build 860 6d ago
    The test is wrong, confidence low; 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.

TestHistoryNewest runReading
EDC - CRF Exports › TC-01: Verify completing crc signoff
edcExports
did not run

How the agent decided

Models
claude-sonnet-5-5 ($1.05, 27 lookups)
Settled by
the investigating model
Cost
$1.05

What it looked up (27, in order)

1. commits repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, since=2026-11-01T00: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)
2. page_snapshot text=Complete Form · 941 chars back
14: ``` 15: TimeoutError: locator.click: Timeout 50000ms exceeded. 16: Call log: 17: - waiting for getByRole('button', { name: 'Complete Form' }) 18: - locator resolved to <button disabled data-rac="" type="submit" data-size="normal" data-state="closed" data-layout="inline" data-theme="regular" data-disabled="true" data-variant="primary" class="_button_ay2sv_1" form="single-page-activity-form" data-react-aria-pressable="true" id="react-aria18 19: - attempting click action 20: 2 × waiting for element to be visible, enabled and stable 21: - element is not enabled … 378: - button [active] [ref=f3e874] [cursor=pointer] 379: - button [ref=f3e879] [cursor=pointer] 380: - generic [ref=f3e884]: 381: - button [ref=f3e886] [cursor=pointer] 382: - button "Complete Form" [disabled] [ref=f3e892] 383: ``` 385: # Test source
3. read_file repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, start_line=3340, end_line=3410 · 2563 chars back
e2e/pages/studies/visitExecStudy.page.js (5093 lines), lines 3340-3410: 3340 logger.info( 3341 `[sdv] Monitor opened visit "${sdvVisitName}" for "${subjectIdOrPatientName}"` 3342 ); 3343 } 3344 3345 async openSdvEdcFromSource() { 3346 logger.info('[sdv] Navigating from Source to EDC'); 3347 await this.edcViewButton.click(); 3348 } 3349 3350 async openSdvInformedConsentActivity() { 3351 logger.info(`[sdv] Opening activity "${sdvActivities.informedConsent}"`); 3352 await this.informedConsentActivityButton.click(); 3353 } 3354 3355 async openSdvGenotypingActivity() { 3356 logger.info(`[sdv] Opening activity "${sdvActivities.genotyping}"`); 3357 await this.genotypingActivityButton.click(); 3358 } 3359 3360 /** 3361 * @param {import('@playwright/test').Locator} historyIcon 3362 */ 3363 async openSdvAuditFromHistoryIcon(historyIcon) { 3364 await historyIcon.scrollIntoViewIfNeeded(); 3365 await historyIcon.click(); 3366 } 3367 3368 async closeSdvAuditWithEscape() { 3369 await this.page.keyboard.press('Escape'); 3370 } 3371 3372 //Execution 3373 async selectVisitActivity(activityTitle) { 3374 await this.page 3375 .getByRole('button', { name: activityTitle, exact: true }) 3376 .click(); 3377 await this.verifyHeading(activityTitle); 3378 } 3379 3380 async completeFirstVisit(options = {}) { 3381 const { 3382 conMedsFlag = false, 3383 medHistoryFlag = false, … (1063 more characters not kept)
4. page_snapshot text=dialog · 382 chars back
235: - listitem [ref=f3e451]: 236: - heading "Brief physical exam" [level=5] [ref=f3e455] 237: - region "Notifications (F8)": 238: - list 239: - dialog "dialog" [ref=f3e459]: 240: - generic [ref=f3e460]: 241: - generic [ref=f3e461]: 242: - button [ref=f3e462] [cursor=pointer] 243: - separator [ref=f3e467]
5. commit_diff repo=cleopatra, sha=a3aebd0e4 · 10355 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/helpers/workPlanSetupHelper.js @@ -33,8 +33,13 @@ export async function setupFeasibilityWorkPlanDocuments( ) { const data = readDataFile(); const existingDocs = data[WP_FEASIBILITY_DOCS_KEY] || []; + const { baseDir, docs } = workPlanData.feasibility.documentSetup; + const expectedMilestones = docs.map((doc) => doc.milestone).sort(); + const isCurrent = + JSON.stringify(existingDocs.map((doc) => doc.milestone).sort()) === + JSON.stringify(expectedMilestones); - if (existingDocs.length) { + if (isCurrent) { logger.info( `Reusing feasibility work plan documents: ${existingDocs .map((doc) => doc.fileName) @@ -44,7 +49,6 @@ export async function setupFeasibilityWorkPlanDocuments( } const documentApiUtil = new DocumentApiUtility(workerRequest); - const { baseDir, docs } = workPlanData.feasibility.documentSetup; … (8855 more characters not kept)
6. commit_diff repo=cleopatra, sha=566e142b5 · 880 chars back
566e142b5 2026-11-06T18:10 pranitmahajan: [E2E] fix for edc test (#16584) 2 files changed: e2e/package.json, e2e/pages/studies/visitExecStudy.page.js --- e2e/package.json @@ -32,7 +32,8 @@ "@babel/runtime": "^8.0.0", "@google-cloud/storage": "^7.21.0", "@playwright/test": "^1.62.0", - "allure-playwright": "^3.10.2", + "allure": "^3.33.0", + "allure-playwright": "^3.14.0", "axios": "1.20.0", "body-parser": "2.4.0", "config": "^4.4.2", --- e2e/pages/studies/visitExecStudy.page.js @@ -2698,7 +2698,7 @@ export default class VisitStudiesPage extends BasePage { .first() .click(); for (const site of sites) { - await this.page.getByRole('heading', { name: site }).click(); + await this.page.getByRole('option', { name: site }).click(); } await this.page.keyboard.press('Escape'); }
7. page_snapshot text=Yes · 38 chars back
no line of the page contains that text
8. page_snapshot text=Adverse Event · 4444 chars back
142: - link "Queries" [ref=f3e221] [cursor=pointer]: 143: - /url: /tildaQa/studies/3a8e29a3-efdf-4714-8cff-e74088db5982/subjects/911b71ce-db93-4ee0-bd6f-ee20f4ab384e/queries 144: - link "Signoffs" [ref=f3e230] [cursor=pointer]: 145: - /url: /tildaQa/studies/3a8e29a3-efdf-4714-8cff-e74088db5982/subjects/911b71ce-db93-4ee0-bd6f-ee20f4ab384e/signoffs 146: - link "Adverse Events" [ref=f3e239] [cursor=pointer]: 147: - /url: /tildaQa/studies/3a8e29a3-efdf-4714-8cff-e74088db5982/subjects/911b71ce-db93-4ee0-bd6f-ee20f4ab384e/adverse-events 148: - link "Protocol Deviations" [ref=f3e248] [cursor=pointer]: 149: - /url: /tildaQa/studies/3a8e29a3-efdf-4714-8cff-e74088db5982/subjects/911b71ce-db93-4ee0-bd6f-ee20f4ab384e/protocol-deviations 150: - link "Con-meds" [ref=f3e257] [cursor=pointer]: … 198: - heading "Concomitant Medications" [level=5] [ref=f3e369] 199: - listitem [ref=f3e370]: 200: - heading "Medical History" [level=5] [ref=f3e374] 201: - listitem [ref=f3e375]: 202: - heading "Adverse Event" [level=5] [ref=f3e379] 203: - listitem [ref=f3e380]: 204: - generic [ref=f3e381]: Current Progress 205: - generic [ref=f3e387] [cursor=pointer]: 206: - generic [ref=f3e388]: Treatment … 219: … (2944 more characters not kept)
9. search_code repo=cleopatra, text=completeActivityButton =, path_prefix=e2e/pages · 111 chars back
e2e/pages/visitExecution/visitExecStudy.page.js 174: this.completeActivityButton = page.getByRole('button', {
10. page_snapshot text=Concomitant Medications · 2754 chars back
194: - heading "Demographics" [level=5] [ref=f3e359] 195: - listitem [ref=f3e360]: 196: - heading "Genotyping" [level=5] [ref=f3e364] 197: - listitem [ref=f3e365]: 198: - heading "Concomitant Medications" [level=5] [ref=f3e369] 199: - listitem [ref=f3e370]: 200: - heading "Medical History" [level=5] [ref=f3e374] 201: - listitem [ref=f3e375]: 202: - heading "Adverse Event" [level=5] [ref=f3e379] … 217: - heading "Vital signs" [level=5] [ref=f3e411] 218: - listitem [ref=f3e412]: 219: - heading "Lab assessments" [level=5] [ref=f3e416] 220: - listitem [ref=f3e417]: 221: - heading "Concomitant Medications" [level=5] [ref=f3e421] 222: - listitem [ref=f3e422]: 223: - heading "Adverse Event" [level=5] [ref=f3e426] 224: - listitem [ref=f3e427]: 225: - heading "Serum Pregnancy Test" [level=5] [ref=f3e431] … 269: - button "Visit Details" [ref=f3e532] [cursor=pointer] 270: - button "Informed Consent/Assent" [ref=f3e539] [cursor=pointer] 271: - button "Demographics" [ref=f3e546] [cursor=pointer] 272: - button "Genotyping" [ref=f3e553] [cursor=pointer] 273: - button " … (1254 more characters not kept)
11. page_snapshot text=heading · 1765 chars back
157: - generic [ref=f3e287]: 158: - complementary [ref=f3e288]: 159: - img [ref=f3e291]: 160: - generic [ref=f3e292]: "?" 161: - heading "Edbws4dfzfz6tf Iczbs4dfzfz6tf In Screening" [level=2] [ref=f3e294]: 162: - generic [ref=f3e295]: 163: - text: Edbws4dfzfz6tf Iczbs4dfzfz6tf 164: - generic [ref=f3e296]: In Screening 165: - generic [ref=f3e299]: … 186: - generic [ref=f3e340]: "-2" 187: - generic [ref=f3e342]: Nov 24 188: - list [ref=f3e344]: 189: - listitem [ref=f3e345]: 190: - heading "Visit Details" [level=5] [ref=f3e349] 191: - listitem [ref=f3e350]: 192: - heading "Informed Consent/Assent" [level=5] [ref=f3e354] 193: - listitem [ref=f3e355]: 194: - heading "Demographics" [level=5] [ref=f3e359] 195: - listitem [ref=f3e360]: 196: - heading "Genotyping" [level=5] [ref=f3e364] 197: - listitem [ref=f3e365]: 198: - heading "Concomitant Medications" [level=5] [ref=f3e369] 199: - listitem [ref=f3e370]: 200: - heading "Medical History" [level=5] [ref=f3e374] 201: - listitem [ref=f3e375]: 202: - he … (265 more characters not kept)
12. read_file repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, start_line=2290, end_line=2400 · 4463 chars back
e2e/pages/studies/visitExecStudy.page.js (5093 lines), lines 2290-2400: 2290 await this.page.getByRole('button', { name: fileValue }) 2291 ).toBeVisible(); 2292 return fileValue; 2293 } 2294 2295 async completeConMed(conMedsFlag, options = {}) { 2296 await this.waitForTime(2000); 2297 const { offlineEntry = false } = options; 2298 const activity = studioDataHelper.getActivityDetails( 2299 'Concomitant Medications', 2300 'V1' 2301 ); 2302 const activityTitle = activity.title; 2303 await this.selectVisitActivity(activityTitle); 2304 if (offlineEntry) { 2305 await this.offlineEnterDataButton.click(); 2306 } 2307 await this.waitForTime(5000); 2308 const question = activity.questionnaires[0].question; 2309 let conMedDetails; 2310 if (conMedsFlag) { 2311 await this.selectAnswer(question[0].title, 'Yes'); 2312 conMedDetails = await this.completeGlobalTableRecord( 2313 activityTitle, 2314 'Non-Ocular Concomitant Medication' 2315 ); 2316 } else { 2317 await this.selectAnswer(question[0].title, 'No'); 2318 conMedDetails = { 2319 [question[0].title]: 'No' 2320 }; 2321 } 2322 await this.waitForTime(4000); 2323 await this.completeActivityButton.click(); 2324 await this.waitForTime(2000); 2325 if ((await this.fieldMissing.isVisible()) && conMedsFlag) { 2326 await this.selectAnswer(question[0].title, 'Yes'); 2327 … (2963 more characters not kept)
13. search_code repo=cleopatra, text=async completeGlobalTableRecord, path_prefix=e2e/pages · 131 chars back
e2e/pages/visitExecution/visitExecStudy.page.js 4215: async completeGlobalTableRecord(activityTitle, activtyType, options = {}) {
14. page_snapshot text=level=5] [ref=f3e6 · 874 chars back
298: - generic [ref=f3e640]: 299: - radio "Yes" [checked] [ref=f3e642] 300: - generic [ref=f3e643] [cursor=pointer]: 301: - complementary [ref=f3e644] 302: - heading "Yes" [level=5] [ref=f3e648] 303: - generic [ref=f3e649]: 304: - radio "No" [ref=f3e651] 305: - generic [ref=f3e652] [cursor=pointer]: 306: - complementary [ref=f3e653] 307: - heading "No" [level=5] [ref=f3e657] 308: - button "Clear answer" [ref=f3e659] [cursor=pointer] 309: - generic [ref=f3e664]: 310: - generic [ref=f3e665]: EDC 311: - button "1" [ref=f3e667] [cursor=pointer]
15. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=4215, end_line=4300 · 97 chars back
no file e2e/pages/visitExecution/visitExecStudy.page.js in tildabio/cleopatra at the run's commit
16. commits repo=cleopatra, path=., since=2026-11-05T15:00:00Z, until=2026-11-06T10:00:00Z, branch=production · 907 chars back
854a0707c 2026-11-06T05:11 tilda-gitbot[bot]: feat(sense): disable Complete while a global table has draft rows (ENG-6995) (#16553) 4119d6d81 2026-11-06T03:35 aaburaed: [Cherry-pick] Details tab says when Minor QC findings are hidden (ENG-8490) (#16543) 9d2ac8b2d 2026-11-06T03:32 aaburaed: [Cherry-pick] QC policy: every severity box shows the built-in severity; per-finding rows (#16513) (#16545) c392ebff4 2026-11-05T18:24 tilda-gitbot[bot]: Slideover follows live training status; Resume polls assignments (#16524) c70c00369 2026-11-05T15:45 tilda-gitbot[bot]: Reload the current attempt's quiz state after a training retry (#16525) 8ea1239e0 2026-11-05T15:27 poojalodhi: Cherry-pick: Keep work plan template and plan type sorting separate (ENG-7754) to production (#16540) 844487088 2026-11-05T15:04 tilda-gitbot[bot]: Studio edit-mode Disable option + hide disabled objects in visit execution (#16502)
17. commits repo=main, path=., since=2026-11-05T15:00:00Z, until=2026-11-06T10:00:00Z, branch=production · 1925 chars back
664ac14a6 2026-11-06T09:12 tilda-gitbot[bot]: Block CBR auto-promote when Site scope has no resolved siteId (#17266) (#17267) 3f5b7aea8 2026-11-06T08:12 tilda-gitbot[bot]: fix(execlib): record Not Done reason when a blank autosave lands first in edit mode (ENG-8505) (#17242) (#17261) d44e6a5a1 2026-11-06T06:43 tilda-gitbot[bot]: ci(automation): write the automation image into the ui-tests jobs too; wait between push retries (#17254) (#17257) 9dd2fe3d0 2026-11-06T01:47 aaburaed: docproc: a guard's tag replaces the model's rulebook tag so its QC policy severity reaches the model's copy (#17206) (#17234) 6fc75ce13 2026-11-06T01:45 aaburaed: tilda-ocr: keep rotated pages upright when shrinking oversized page boxes (ENG-8491) (#17231) 3df8ee012 2026-11-06T00:59 mvelamatt: fix(edl): chat agent reads EDL progress from docsvc completion; plan-first event creation (ENG-8474) (#17250) 618e0d73d 2026-11-05T18:36 mmukkama: fix(execsvc): report global-table draft rows across all pages (ENG-6995) (#17216) (#17238) 30cf610bb 2026-11-05T18:20 tilda-gitbot[bot]: feat(execsvc): re-evaluate cross-form auto-queries when the read form completes (ENG-8464) (#17239) 5bab8cbac 2026-11-05T18:13 taylorfutral: Backport Not Ready training copies to production (#17240) 3892e3355 2026-11-05T16:06 tilda-gitbot[bot]: Retire study actor on removal from last site (#17226) 217e831c7 2026-11-05T16:01 krishnaatluru-cpu: [Cherry-pick] tmfsync Veeva and CTMS sync to production (#16780, #16851, #16910, #17048, #169 … (425 more characters not kept)
18. service_errors text=Cache not found · 7799 chars back
+64m exportsvc handlers/activity_update_handler_wrapper.py:86: Cache not found for activity update: Cache not found for study 3a8e29a3-efdf-4714-8cff-e74088db5982. Expected locally: /tmp/exports/responses_3a8e29a3-efdf-4714-8cff-e74088db5982.parquet. Expected in GCS: automation/cache/responses_3a8e29a3-efdf-4714-8cff-e74088db5982.parquet. Run full export first to generate parquet cache. +64m exportsvc handlers/activity_update_handler_wrapper.py:86: Cache not found for activity update: Cache not found for study 3a8e29a3-efdf-4714-8cff-e74088db5982. Expected locally: /tmp/exports/responses_3a8e29a3-efdf-4714-8cff-e74088db5982.parquet. Expected in GCS: automation/cache/responses_3a8e29a3-efdf-4714-8cff-e74088db5982.parquet. Run full export first to generate parquet cache. +64m exportsvc handlers/activity_update_handler_wrapper.py:86: Cache not found for activity update: Cache not found for study 3a8e29a3-efdf-4714-8cff-e74088db5982. Expected locally: /tmp/exports/responses_3a8e29a3-efdf-4714-8cff-e74088db5982.parquet. Expected in GCS: automation/cache/responses_3a8e29a3-efdf-4714-8cff-e74088db5982.parquet. Run full export first to generate parquet cache. +65m exportsvc handlers/activity_update_handler_wrapper.py:86: Cache not found for activity update: Cache not found for study 3a8e29a3-efdf-4714-8cff-e74088db5982. Expected locally: /tmp/exports/responses_3a8e29a3-efdf-4714-8cff-e74088db5982.parquet. Expected in GCS: automation/cache/responses_3a8e29a3-efdf-4714-8cff-e74088db598 … (6299 more characters not kept)
19. commit_diff repo=cleopatra, sha=854a0707c · 3620 chars back
854a0707c 2026-11-06T05:11 tilda-gitbot[bot]: feat(sense): disable Complete while a global table has draft rows (ENG-6995) (#16553) 8 files changed: apps/sense/src/modules/execution/components/merged-global-table/global-table-total-rows.test.ts, apps/sense/src/modules/execution/components/merged-global-table/global-table-total-rows.ts, apps/sense/src/modules/execution/components/questionnaire/questionnaire.tsx, apps/sense/src/modules/execution/components/questionnaire/submit-button.test.tsx, apps/sense/src/modules/execution/components/questionnaire/submit-button.tsx, apps/sense/src/modules/execution/hooks/useGlobalTablePagination.ts, apps/sense/src/modules/execution/hooks/useObject.ts, apps/sense/src/modules/execution/hooks/useSaveActivity.ts --- apps/sense/src/modules/execution/components/merged-global-table/global-table-total-rows.test.ts @@ -1,5 +1,8 @@ import { describe, expect, it } from 'vitest'; -import { getGlobalTableTotalRowCount } from './global-table-total-rows'; +import { + getGlobalTableTotalRowCount, + hasGlobalTableDraftRows +} from './global-table-total-rows'; describe('getGlobalTableTotalRowCount', () => { it('returns undefined when the response carries no counts', () => { @@ -24,3 +27,31 @@ describe('getGlobalTableTotalRowCount', () => { expect(getGlobalTableTotalRowCount(state)).toBe(93); }); }); + +describe('hasGlobalTableDraftRows', () => { + it('is false when no table reports drafts', () => { + expect(hasGlobalTableDraftRows(undef … (2120 more characters not kept)
20. search_code repo=cleopatra, text=async completeGlobalTableRecord · 131 chars back
e2e/pages/visitExecution/visitExecStudy.page.js 4215: async completeGlobalTableRecord(activityTitle, activtyType, options = {}) {
21. search_code repo=cleopatra, text=completeGlobalTableRecord(, path_prefix=e2e/pages/studies · 30 chars back
no match on the default branch
22. read_file repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, start_line=1960, end_line=2180 · 8703 chars back
e2e/pages/studies/visitExecStudy.page.js (5093 lines), lines 1960-2179: 1960 }) 1961 .first() 1962 ).not.toBeVisible(); 1963 await expect(this.taskDialogHeading.getByText(taskName)).not.toBeVisible(); 1964 } 1965 1966 async verifyPiSignOff(options = {}) { 1967 const { aeFlag = true, userName = 'Test Pi' } = options; 1968 await this.verifyHeading('Principal Investigator'); 1969 await expect( 1970 this.page 1971 .locator("h4:has-Text('Principal Investigator') + span") 1972 .getByText(userName) 1973 ).toBeVisible(); 1974 await expect( 1975 this.page 1976 .locator("h4:has-Text('Principal Investigator') + span + div strong") 1977 .getByText(userName) 1978 ).toBeVisible(); 1979 await expect(this.page.locator('[class*=sign]')).toBeVisible(); 1980 if (aeFlag) { 1981 await expect( 1982 this.page 1983 .locator("h4:has-Text('Principal Investigator') + span") 1984 .getByText('Adverse Event') 1985 ).toBeVisible(); 1986 logger.info('Verify PI sign-off for the adverse event'); 1987 } else { 1988 await expect( 1989 this.page 1990 .locator("h4:has-Text('Principal Investigator') + span") 1991 .getByText('Protocol Deviation') 1992 ).toBeVisible(); 1993 logger.info('Verify PI sign-off for the protocol deviation'); 1994 } 1995 } 1996 1997 async completeFirstUnscheduledVisit(activityDetails) … (7203 more characters not kept)
23. read_file repo=cleopatra, path=e2e/pages/studies/visitExecStudy.page.js, start_line=4130, end_line=4320 · 7106 chars back
e2e/pages/studies/visitExecStudy.page.js (5093 lines), lines 4130-4320: 4130 } 4131 logger.info( 4132 `\n Table title: ${tableTitle} \n TableName: ${tableName} \n MenuTestId: ${menuTestId}` 4133 ); 4134 const tableDetails = this.resolveGlobalTableDetails( 4135 activityTitle, 4136 tableName 4137 ); 4138 await this.openNewGlobalTableRow(tableTitle, { hasTableTabs }); 4139 const answerData = { 4140 activityTitle: activityTitle, 4141 tableName: tableName, 4142 activityType: tableTitle, 4143 answers: {} 4144 }; 4145 for (let qIndex = 0; qIndex < tableDetails.question.length; qIndex++) { 4146 const question = tableDetails.question[qIndex]; 4147 logger.info( 4148 `Processing question: ${question.title} of type ${question.type}` 4149 ); 4150 4151 if (question.who.length > 0) { 4152 logger.info( 4153 `Skipping question ${question.title} as it is for ${question.who}` 4154 ); 4155 continue; 4156 } 4157 4158 const tableLocator = await this.getTableLocator(question.title); 4159 if (!tableLocator) { 4160 logger.warn( 4161 `No table cell for column "${question.title}" under "${tableTitle}"` 4162 ); 4163 continue; 4164 } 4165 4166 const answer = await this.fillGlobalTableCell(tableLocator, question); 4167 if (answer !== undefined) { 4168 answerData.answers[question.title … (5606 more characters not kept)
24. commit_diff repo=main, sha=618e0d73d · 6328 chars back
618e0d73d 2026-11-05T18:36 mmukkama: fix(execsvc): report global-table draft rows across all pages (ENG-6995) (#17216) (#17238) 5 files changed: common/execlib/hdm_row_review.go, common/execlib/hdm_row_review_test.go, common/execlib/modelV2.go, execsvc/pkg/execution/activity_details_v2.go, execsvc/pkg/execution/paginated_row_selection_integration_test.go --- common/execlib/hdm_row_review.go @@ -2,29 +2,56 @@ package execlib import ( "context" + "strings" "github.com/tildabio/main/common/authlib" careplan "github.com/tildabio/main/common/careplanlib" "github.com/tildabio/main/tildadb" "github.com/tildabio/main/tildaobj" ) +// hdmRowReview is every common-form HDM class with a draft/review lifecycle: +// its draft status, its pending-review status and the property that carries +// them. The order is fixed so Cypher built from it is one statement text. +var hdmRowReview = []struct{ class, draft, pending, field string }{ + {tildaobj.DBTypeAdverseEvent, tildaobj.AE_STATUS_DRAFT, tildaobj.AE_STATUS_PENDING, "status"}, + {tildaobj.DBTypeProtocolDeviationV2, tildaobj.PD_DEV_DRAFT, tildaobj.PD_DEV_PENDING, "status"}, + {tildaobj.DBTypeMedication, tildaobj.REVIEW_STATUS_DRAFT, tildaobj.REVIEW_STATUS_PENDING, "reviewStatus"}, + {tildaobj.DBTypeAllergy, tildaobj.REVIEW_STATUS_DRAFT, tildaobj.REVIEW_STATUS_PENDING, "reviewStatus"}, + {tildaobj.DBTypeMedicalCondition, tildaobj.REVIEW_STATUS_DRAFT, tildaobj.REVIEW_STATUS_PENDING, "reviewStatus"}, + {tildaobj.DBTypeProcedu … (4828 more characters not kept)
25. commits repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, since=2026-11-06T00: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)
26. commit_diff repo=main, sha=618e0d73d, path=execsvc/pkg/execution/activity_details_v2.go · 4321 chars back
618e0d73d 2026-11-05T18:36 mmukkama: fix(execsvc): report global-table draft rows across all pages (ENG-6995) (#17216) (#17238) 5 files changed: common/execlib/hdm_row_review.go, common/execlib/hdm_row_review_test.go, common/execlib/modelV2.go, execsvc/pkg/execution/activity_details_v2.go, execsvc/pkg/execution/paginated_row_selection_integration_test.go --- execsvc/pkg/execution/activity_details_v2.go @@ -1275,6 +1275,7 @@ func mergeTableStatus(ctx context.Context, dst, src *execlib.TableStatus) { // per-entry partial count, so summing across merges would multiply it. Take it once. if dst.TotalRowCount == 0 { dst.TotalRowCount = src.TotalRowCount + dst.DraftRowCount = src.DraftRowCount } } @@ -2503,6 +2504,7 @@ func getActivityObjectStatusWithTx( if sel, ok := rowSelections[tableTitle]; ok { tableStatus.RowOrderList = sel.PageRowIds tableStatus.TotalRowCount = sel.Total + tableStatus.DraftRowCount = sel.DraftCount } } @@ -3780,6 +3782,7 @@ type TableRowCollector struct { type paginatedTableSelection struct { PageRowIds []string Total int + DraftCount int // rows of Total whose HDM row is still Draft, across every page } // fetchPaginatedRowSelection runs a lightweight cypher that, for each table reachable from the @@ -3821,6 +3824,17 @@ func fetchPaginatedRowSelection(ctx context.Context, tx tildadb.DBTrans, p parti rowSelParams["prsSubSubObjectId"] = p.SubSubObjectID } matchPatt … (2821 more characters not kept)
27. search_code repo=main, text=ShouldPromoteRowToPendingReview · 1444 chars back
common/execlib/hdm_row_review.go 55: // ShouldPromoteRowToPendingReview reports whether a common-form row that was 71: func ShouldPromoteRowToPendingReview(caller *tildaobj.User, hdmClass, currentStatus string, incompleteCount int) bool { 80: // ShouldPromoteRowToPendingReview, for the careplan-level save (saveRow -> common/execlib/questionV2.go 2254: if ShouldPromoteRowToPendingReview(caller, rowEntry.HdmClass, currentStatus, len(rowEntry.InCompleteIds)) { // if the row is in draft status and all the mandatory fields are completed, set the status docs/superpowers/plans/2026-09-18-data-monitoring-00-series.md 19: - **Authentication is a service account; attribution is the agent.** The engine authenticates as the shared `[email protected]` account (password grant, `tilda_auth.get_bot_token`, `TILDASENSE_PASS data-science/data_monitor/src/review/executor.py 706: than on a flag: `execlib.ShouldPromoteRowToPendingReview` common/execlib/hdm_row_review_test.go 78: func TestShouldPromoteRowToPendingReview_DataMonitorNeverPromotes(t *testing.T) { 81: if ShouldPromoteRowToPendingReview(dataMonitorCaller(), hdmClass, draft, 0) { 84: if ShouldPromoteRowToPendingReview(dataMonitorCaller(), hdmClass, draft, 3) { 93: func TestShouldPromoteRowToPendingReview_NonBotCallersPromoteAsBefore(t *testing.T) { common/execlib/hdm_obj_review_test.go 297: row := ShouldPromoteRowToPendingReview(caller, hdmClass, draft, 0)

What it was shown (build 860, 51.2 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": "edcExports", "members": [ { "test": "edcExports::TC-01: Verify completing crc signoff", "pattern": "regression", "meaning": "failed the last 13 runs in a row after passing 13 of the 13 before: something changed, so it is not flaky", "newest_first": "F F F F F F F F F F F F F P P P P P P P P P P P P P", "failing_in_a_row": 13, "this_error_in_a_row": 13, "this_error_since_build": 844, "build_before_this_error": 841, "failing_since_build": 844, "last_passed_build": 841 } ] }
The failure
{ "test": "edcExports::TC-01: Verify completing crc signoff", "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 not enabled\n - retrying click action\n - waiting 20ms\n 2 \u00d7 waiting for element to be visible, enabled and stable\n - element is not enabled\n - retrying click action\n - waiting 100ms\n 93 \u00d7 waiting for element to be visible, enabled and stable\n - element is not enabled\n - retrying click action\n - waiting 500ms\n\n\n at pages/studies/visitExecStudy.page.js:2425\n\n 2423 | }\n 2424 | await this.waitForTime(5000);\n > 2425 | await this.completeActivityButton.click();\n | ^\n 2426 | await this.waitForTime(2000);\n 2427 | if ((await this.fieldMissing.isVisible()) && aeFlag) {\n 2428 | await this.selectAnswer(question[0].title, 'Yes');\n at VisitStudiesPage.completeAdverseEvents (/home/jenkins/agent/workspace/ui-tests-production/e2e/pages/studies/visitExecStudy.page.js:2425:39)\n at VisitStudiesPage.completeFirstVisit (/home/jenkins/agent/workspace/ui-tests-production/e2e/pages/studies/visitExecStudy.page.js:3392:23)\n at /home/jenkins/agent/workspace/ui-tests-production/e2e/tests/singlePage/edc/edcExports.spec.js:328:20\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-edcExports-EDC---CRF-E-d2a59-rify-completing-crc-signoff-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-edcExports-EDC---CRF-E-d2a59-rify-completing-crc-signoff-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-edcExports-EDC---CRF-E-d2a59-rify-completing-crc-signoff-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-edcExports-EDC---CRF-E-d2a59-rify-completing-crc-signoff-singlePage-retry1/trace.zip\n Usage:\n\n npx playwright show-trace reports/edc-edcExports-EDC---CRF-E-d2a59-rify-completing-crc-signoff-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": "e2e7e573b27ea45d8071b68cbf608715", "method": "GET", "path": "/api/myprofile/v2", "status": "None", "error": "net::ERR_ABORTED" }, { "trace_id": "e2e7e573b27ea45d8071b68d3d301955", "method": "POST", "path": "/api/journey", "status": "204", "error": "None" }, { "trace_id": "e2e7e573b27ea45d8071b688f7acc4c2", "method": "POST", "path": "/api/trialexec/v2/careplan/3eb1ab18-68c2-4994-a0de-19d23f8dc870/activity/save", "status": "200", "error": "None" }, { "trace_id": "e2e7e573b27ea45d8071b68b980c0573", "method": "POST", "path": "/api/trialexec/v2/study/3a8e29a3-efdf-4714-8cff-e74088db5982/activity/status", "status": "200", "error": "None" }, { "trace_id": "e2e7e573b27ea45d8071b68b87c3d16b", "method": "POST", "path": "/api/journey", "status": "204", "error": "None" }, { "trace_id": "e2e7e573b27ea45d8071b68c3eb4df70", "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:2425", "code_frame": " at pages/studies/visitExecStudy.page.js:2425\n\n 2423 | }\n 2424 | await this.waitForTime(5000);\n> 2425 | await this.completeActivityButton.click();\n | ^\n 2426 | await this.waitForTime(2000);\n 2427 | if ((await this.fieldMissing.isVisible()) && aeFlag) {\n 2428 | await this.selectAnswer(question[0].title, 'Yes');", "playwright_call_log": [ "- waiting for getByRole('button', { name: 'Complete Form' })", "- locator resolved to <button disabled data-rac=\"\" type=\"submit\" data-size=\"normal\" data-state=\"closed\" data-layout=\"inline\" data-theme=\"regular\" data-disabled=\"true\" data-variant=\"primary\" class=\"_bu", "- attempting click action", "- element is not enabled", "- retrying click action", "- waiting 20ms", "- element is not enabled", "- retrying click action", "- waiting 100ms", "- element is not enabled", "- 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 13 runs in a row after passing 13 of the 13 before: something changed, so it is not flaky", "newest_first": "F F F F F F F F F F F F F P P P P P P P P P P P P P", "failing_in_a_row": 13, "this_error_in_a_row": 13, "this_error_since_build": 844, "build_before_this_error": 841 }
other_branch
{ "branch": "master", "job": "e2e-tests-master", "build": 881, "these_tests_there": { "other": 1 }, "reading": "fails on production; on master the same test fails with a different error (`e2e-tests-master` build 881)." }
The test's source
{ "repo": "tildabio/cleopatra", "at": "ee3a2cbd4", "path": "e2e/tests/singlePage/edc/edcExports.spec.js", "from_line": 322, "failing_line": 322, "code": "322> test('TC-01: Verify completing crc signoff', async ({ crc }) => {\n323 await crc.searchStudy(studyName);\n324 await crc.goToVisitExecutionPage(croExePatient, {\n325 visitName\n326 });\n327 await crc.startVisitForPatient(croExePatient);\n328 visitDetails = await crc.completeFirstVisit({\n329 medHistoryFlag: true,\n330 conMedsFlag: true,\n331 aeFlag: true\n332 });\n333 subjectId = visitDetails[1].subjectId;\n334 \n335 await crc.completeSignOffReview('CRC', crcUser.userName);\n336 await crc.checkAuditLog('Completed', 'CRCSignOff', {\n337 logName: ' signed off',\n338 visitLevel: true\n339 });\n340 \n341 logger.info('Subject Id: ' + subjectId);\n342 });\n343 \n344 test('TC-02: Verify PI updating mandatory field and sign off for AE record', async ({\n345 pi\n346 }) => {\n347 const aeDetails = visitDetails[6];\n348 const diagnosis = aeDetails.answers[ae.fields.diagnosis];\n349 const severityQuestion = pi\n350 .resolveGlobalTableDetails(ae.activityTitle, ae.table.tableName)\n351 .question.find((q) => q.title === ae.fields.severity);\n352 \n353 await pi.searchStudy(studyName);\n354 await pi.goToVisitsPage(croExePatient);\n355 await pi.subjectAETab.click();\n356 await pi.verifyGlobalTable(aeDetails);\n357 await pi.editTableRow(diagnosis, { tableColumn: ae.fields.diagnosis });\n358 await pi.scrollToTableColumn(severityQuestion.title);\n359 await pi.fillGlobalTableCell(\n360 await pi.getTableLocator(severityQuestion.title, { allLocators: true }),\n361 severityQuestion\n362 );\n363 await pi.saveTableRow(diagnosis, { tableColumn: ae.fields.diagnosis });\n364 await pi.verifyTableRowStatus(diagnosis, 'Pending');\n365 await pi.signOffTableRow(diagnosis, piUser.userName);\n366 await pi.verifyTableRowStatus(diagnosis, 'Reviewed');\n367 logger.info(`PI signed off AE record so it is exported: ${diagnosis}`);\n368 await pi.page.waitForTimeout(120000);\n369 });\n370 \n371 test('TC-03: Field Names - All Visits, All Subjects, and All Activities', async ({\n372 settingsPage\n373 }) => {\n374 await settingsPage.selectOrgAndModule('studies', data.croOrg);\n375 \n376 await settingsPage.searchStudy(data.croStudyName);\n377 await settingsPage.selectSettingsTab();\n378 \n379 const protocolRow = await settingsPage.page.locator(\n380 'tr:has-text(\"Automation\")'\n381 );\n382 await protocolRow.getByTestId('icon-more').click();\n383 await settingsPage.exportMenuOption.click();\n384 await settingsPage.exportTypeSelect.click();\n385 await settingsPage.fieldNamesOption.click();\n386 await settingsPage.exportButton.click();\n387 // await settingsPage.page.waitForTimeout(120000);\n388 \n389 await settingsPage.refresh();\n390 await protocolRow.getByTestId('icon-more').click();\n391 await settingsPage.page.waitForTimeout(2000);\n392 await settingsPage.exportMenuOption.click();" }
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/edcExports.spec.js >> EDC - CRF Exports >> TC-01: Verify completing crc signoff\n- Location: tests/singlePage/edc/edcExports.spec.js:322:3\n\n# Error details\n\n```\nTimeoutError: locator.click: Timeout 50000ms exceeded.\nCall log:\n - waiting for getByRole('button', { name: 'Complete Form' })\n - locator resolved to <button disabled data-rac=\"\" type=\"submit\" data-size=\"normal\" data-state=\"closed\" data-layout=\"inline\" data-theme=\"regular\" data-disabled=\"true\" data-variant=\"primary\" class=\"_button_ay2sv_1\" fo\n - attempting click action\n 2 \u00d7 waiting for element to be visible, enabled and stable\n - element is not enabled\n - retrying click action\n - waiting 20ms\n 2 \u00d7 waiting for element to be visible, enabled and stable\n - element is not enabled\n - retrying click action\n - waiting 100ms\n 96 \u00d7 waiting for element to be visible, enabled and stable\n - element is not enabled\n - retrying click action\n - waiting 500ms\n\n```\n\n# Page snapshot\n\n```yaml\n- generic [ref=f3e1]:\n - generic [ref=f3e2]:\n - log\n \u2026\n - heading \"Edbws4dfzfz6tf Iczbs4dfzfz6tf In Screening\" [level=2] [ref=f3e294]:\n \u2026\n - heading \"Visit Details\" [level=5] [ref=f3e349]\n \u2026\n - heading \"Informed Consent/Assent\" [level=5] [ref=f3e354]\n \u2026\n - heading \"Demographics\" [level=5] [ref=f3e359]\n \u2026\n - heading \"Genotyping\" [level=5] [ref=f3e364]\n \u2026\n - heading \"Concomitant Medications\" [level=5] [ref=f3e369]\n \u2026\n - heading \"Medical History\" [level=5] [ref=f3e374]\n \u2026\n - heading \"Adverse Event\" [level=5] [ref=f3e379]\n \u2026\n - heading \"Vital signs\" [level=5] [ref=f3e411]\n \u2026\n - heading \"Lab assessments\" [level=5] [ref=f3e416]\n \u2026\n - heading \"Concomitant Medications\" [level=5] [ref=f3e421]\n \u2026\n - heading \"Adverse Event\" [level=5] [ref=f3e426]\n \u2026\n - heading \"Serum Pregnancy Test\" [level=5] [ref=f3e431]\n \u2026\n - heading \"Informed Consent/Assent\" [level=5] [ref=f3e450]\n \u2026\n - heading \"Brief physical exam\" [level=5] [ref=f3e455]\n \u2026\n - dialog \"dialog\" [ref=f3e459]:\n \u2026\n - heading \"Concomitant Medications\" [level=2] [ref=f3e602]\n \u2026\n - heading \"Yes\" [level=5] [ref=f3e648]\n \u2026\n - heading \"No\" [level=5] [ref=f3e657]\n \u2026\n 2237 | `Failed to cleanup temporary file ${fileName}: ${err.message}`\n \u2026\n 2255 | logger.info(`Uploading document`);\n \u2026\n 2264 | logger.info(`Uploading file ${fileName}`);\n \u2026\n 2274 | .getByText('Upload Failed')\n \u2026\n 2284 | `Failed to cleanup temporary file ${fileName}: ${err.message}`\n \u2026\n | ^ TimeoutError: locator.click: Timeout 50000ms exceeded.\n \u2026\n 2335 | .locator('[data-status=\"Completed\"] +span')\n \u2026\n 2392 | .locator('[data-status=\"Completed\"] +span')" }
The code where it failed
{ "path": "e2e/pages/studies/visitExecStudy.page.js", "failing_line": 2425, "code": "2400 async completeAdverseEvents(aeFlag, options = {}) {\n2401 await this.waitForTime(2000);\n2402 const { offlineEntry = false } = options;\n2403 const activity = studioDataHelper.getActivityDetails('Adverse Event', 'V1');\n2404 const activityTitle = activity.title;\n2405 const question = activity.questionnaires[0].question;\n2406 await this.selectVisitActivity(activityTitle);\n2407 if (offlineEntry) {\n2408 await this.offlineEnterDataButton.click();\n2409 }\n2410 await this.waitForTime(5000);\n2411 let aeDetails;\n2412 if (aeFlag) {\n2413 await this.selectAnswer(question[0].title, 'Yes');\n2414 aeDetails = await this.completeGlobalTableRecord(\n2415 activityTitle,\n2416 'Adverse Event'\n2417 );\n2418 } else {\n2419 await this.selectAnswer(question[0].title, 'No');\n2420 aeDetails = {\n2421 [question[0].title]: 'No'\n2422 };\n2423 }\n2424 await this.waitForTime(5000);\n2425> await this.completeActivityButton.click();\n2426 await this.waitForTime(2000);\n2427 if ((await this.fieldMissing.isVisible()) && aeFlag) {\n2428 await this.selectAnswer(question[0].title, 'Yes');\n2429 await this.completeActivityButton.click();\n2430 } else if ((await this.fieldMissing.isVisible()) && !aeFlag) {\n2431 await this.selectAnswer(question[0].title, 'No');\n2432 await this.completeActivityButton.click();\n2433 }\n2434 await this.waitForTime(2000);\n2435 if ((await this.fieldMissing.isVisible()) && aeFlag) {\n2436 await this.selectAnswer(question[0].title, 'Yes');\n2437 await this.completeActivityButton.click();" }
Commits in the window
{ "between": "build 841 (last pass, started 2026-11-05T15:47:52Z) and build 844 (first failure of the streak, started 2026-11-06T09:22:43Z)", "test_repo": { "repo": "tildabio/cleopatra", "range": "2026-11-05T15:47 to 2026-11-06T09:22 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": [] } }
The issue as the agent wrote it
**Fix is in:** the automation suite (e2e): the test is wrong. **What failed:** `locator.click: Timeout 50000ms exceeded.` **On screen when it failed:** The Concomitant Medications form is open with 'Yes' checked and its table of medications, and the 'Complete Form' button is greyed out. ![The page when the test failed](https://uploads.linear.app/d1b9dc36-3ae8-49c0-8ea8-02f9d1566efc/1a5a2476-1497-4f60-8d9e-848c4b5e4316/d4b9ad67-4b00-4561-837e-dc7a2385d1b9) **The test is wrong**, confidence low. 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/17bb9bef77c8e6) **Branches:** fails on production; on master the same test fails with a different error (`e2e-tests-master` build 881). The click at visitExecStudy.page.js:2425 (completeAdverseEvents) fails because 'Complete Form' is `disabled` for the whole 50s. Both attempts failed identically, and the test has failed 13 runs in a row since build 844. No e2e commit touched this file between build 841 and 844. A product commit did: 854a0707c (sense, 2026-11-06 05:11, ENG-6995) 'disable Complete while a global table has draft rows'. It rests on execsvc 618e0d73d, which adds `draftRowCount` to the status API. That commit counts rows whose status is still Draft, per careplan. A row leaves Draft only when its mandatory fields are all filled (`ShouldPromoteRowToPendingReview`, `incompleteCount` must be 0, `questionV2.go:2254`). completeGlobalTableRecord fills cells but skips questions with a `who` role, so a saved row can stay Draft and now blocks Complete. This is my reading of the code; I did not confirm which row stays Draft. The snapshot is odd: the main panel heading reads 'Concomitant Medications' with Yes checked and a con-med table, although the test is on the Adverse Event step. That is probably the Con Meds activity, which likely still has a Draft row. Next: open the trace to see which table row is Draft. Then fill its remaining mandatory columns in completeGlobalTableRecord, or wait for 'Complete Form' to be enabled before clicking. If a row with every mandatory field filled still stays Draft, treat it as a product bug in the promotion step. The exportsvc 'Cache not found' errors are unrelated to the disabled button. The master run failed with a different error, which I did not look at. **Suspect commit:** [854a0707c](https://github.com/tildabio/cleopatra/commit/854a0707c059e7fb4083995e0a811be4bf32150f) feat(sense): disable Complete while a global table has draft rows (ENG-6995) (#16553) (tilda-gitbot[bot]) **Service:** sense **Assigned to:** [email protected] (last changed visitExecStudy.page.js (8785991e2)). **Proposed fix:** In completeGlobalTableRecord (e2e/pages/studies/visitExecStudy.page.js, around line 4145), make sure every mandatory column of the saved row is filled so it leaves Draft. Do this for the Con Meds and AE tables, including questions currently skipped because of `who`, or fill them as the right role. Before the Complete click at lines 2323, 2372 and 2425, wait with expect(completeActivityButton).toBeEnabled() instead of the fixed waitForTime. Also assert the table shows no Draft status. **Failing tests (1):** - [edcExports::TC-01: Verify completing crc signoff](https://xray.tilda.pizza/tests/case/07041ee3eb1f0c39) (failing since build 844) **Error:** ``` locator.click: Timeout 50000ms exceeded. ``` +++ Agent notes Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 27 lookups in the code and its history. Group `triage:17bb9bef77c8e6` (one issue per root cause). A wrong verdict can be corrected on the run page in X-ray. +++