[Test failure] Subject audit-log popover keeps re-rendering, so its close (X) icon detaches before the click
Flaky test confidence low · low priority · e2e-tests-master, last seen in build 880
The verdict
- Fix is in
- the automation suite (e2e): the test is flaky
- Issue
- ENG-8857 · Backlog
- Owner
- nobody (nobody could be named from the test's history)
- Filed in
- Backlog, Test Agent Automation
- Service
- sense
- History when filed
- flaky, this error since build 880
- On screen
- The saved snapshot has only the error text and no page tree. The call log shows the audit-log popover was open with its X icon visible, but the icon kept being replaced in the DOM.
unscheduledVisit.spec.js:146 `crc.closeDialog.click()` timed out after 50 s. The locator is `[class*=popover] >> icon-xmark >> first` (visitExecStudy.page.js:537-540).
Playwright found the X, saw it visible, enabled and stable, and then it was 'detached from the DOM', on both attempts. So the popover was opened but kept being re-mounted under the click.
checkCareplanAuditLog (page.js:2761) reloads the page and opens the subject's audit log inside a toPass, so the Subjects table can still be refetching while the test closes the popover.
The suite's notes describe this as a known pattern (testing-patterns.md:114, visit-execution.md:218): DataTable refetches re-mount row menus and popovers.
history.pattern is flaky (4 failures in 21 runs) and it passed in build 879. None of the 9 cleopatra commits touch the subjects page or this page object. c5db9232b only changes the study feed and inbox.
Not verified: the page snapshot holds only the error, not the page tree, so I can't say what kept re-rendering. The six /api/studio/events 404s are a lead I couldn't follow; the route isn't on the default branch.
History of this root cause
- filed ENG-8857 · build 880 7d ago
Flaky test, confidence low; 1 test; to nobody 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: 882.
| Test | History | Newest run | Reading |
|---|---|---|---|
| Exe - Unscheduled Visits › TC-05: Verify starting second unscheduled visit unscheduledVisit |
did not run |
How the agent decided
- Models
- claude-sonnet-5-5 ($0.41, 16 lookups), then claude-opus-5-5 ($0.72, 12 lookups)
- Settled by
- the escalation model, because the first was unsure
- Cost
- $1.13
What it looked up (28, in order)
1. search_code repo=cleopatra, text=get closeDialog, path_prefix=e2e · 30 chars back
no match on the default branch
2. search_code repo=cleopatra, text=checkCareplanAuditLog, path_prefix=e2e/pages · 120 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
2761: async checkCareplanAuditLog(subjectName, fromStatus, toStatus) {
3. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=2750, end_line=2810 · 2366 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 2750-2810:
2750 }
2751 await expect(
2752 locatorValue.locator('[class*=diff]').getByText(toValue).first()
2753 ).toBeVisible();
2754 await this.waitForTime(2000);
2755 await this.page
2756 .locator('[role="dialog"] [data-testid="icon-xmark"]')
2757 .last()
2758 .click();
2759 }
2760
2761 async checkCareplanAuditLog(subjectName, fromStatus, toStatus) {
2762 await this.refresh();
2763 logger.info(`Click on audit log button against subject ${subjectName}`);
2764 await expect(async () => {
2765 if (!(await this.auditLogHeading.isVisible())) {
2766 await this.subjectAuditLogButton(subjectName).click({ timeout: 10000 });
2767 }
2768 await expect(this.auditLogHeading).toBeVisible({ timeout: 10000 });
2769 }).toPass({ timeout: 60000 });
2770 await this.verifyAuditLogDetails(fromStatus, toStatus);
2771 }
2772
2773 async checkAuditLog(fromStatus, toStatus, option = {}) {
2774 const { logName, visitLevel, index } = option;
2775 await this.waitForTime(2000);
2776 await this.refresh();
2777 logger.info('Click on details button to check audit logs');
2778
2779 await this.visitDetailsButtonVisitExe.click();
2780 await expect(
2781 await this.page
2782 .locator('[class*=sidebar] h3')
2783 .filter({ hasText: 'Visit Form' })
2784 ).toBeVisible();
2785 await this.selectVisit
… (866 more characters not kept)
4. search_code repo=cleopatra, text=closeDialog =, path_prefix=e2e · 78 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
537: this.closeDialog = page
5. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=530, end_line=545 · 733 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 530-545:
530 name: 'Mark as Valid'
531 });
532 this.startTrainingButton = page.getByRole('button', {
533 name: 'Start Training',
534 exact: true
535 });
536 this.retryButton = page.getByRole('button', { name: 'Retry' });
537 this.closeDialog = page
538 .locator('[class*=popover]')
539 .getByTestId('icon-xmark')
540 .first();
541 this.trainingBackButton = page.getByTestId('training-task-back-button');
542 this.fillDocButton = page
543 .locator('[data-field-type="marker-field"]')
544 .filter({ hasText: 'Fill' });
545 this.studiesBreadcrumb = page.getByTestId('studies-breadcrumb');
6. page_snapshot text=popover · 417 chars back
14: ```
15: TimeoutError: locator.click: Timeout 50000ms exceeded.
16: Call log:
17: - waiting for locator('[class*=popover]').getByTestId('icon-xmark').first()
18: - locator resolved to <svg viewBox="0 0 24 24" class="w-full h-full" data-testid="icon-xmark">…</svg>
19: - attempting click action
20: - waiting for element to be visible, enabled and stable
21: - element is visible, enabled and stable
7. page_snapshot text=dialog · 357 chars back
42: 58 | visitLevel: true
43: 59 | });
44: 60 |
45: 61 | await crc.page
46: 62 | .locator('[class*=dialog] [class*=toolbar]')
47: 63 | .getByRole('link', { name: studyName })
48: 64 | .click();
49: 65 | await crc.verifyCareplanStatusOnSubjectPage(
50: 66 | unscheduledVisitPatient.trim(),
8. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=2715, end_line=2760 · 1769 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 2715-2760:
2715 await this.verifyHeading('Reason for unlocking');
2716 await this.reasonInput.fill('Test Unblocking');
2717 await this.page
2718 .locator('footer')
2719 .getByRole('button', { name: 'Unlock' })
2720 .click();
2721 await expect(await this.unlockActivityButton).not.toBeVisible();
2722 } else {
2723 logger.info('Activity is already unlocked');
2724 }
2725 }
2726
2727 async checkQuestionAuditLog(question, userName, toValue, fromValue) {
2728 await this.waitForTime(2000);
2729 await this.refresh();
2730 logger.info('Click on audit log button against question');
2731 await this.page
2732 .locator(
2733 `form [class*=grid] :has-text("${question}")+ div [data-testid="icon-history"]`
2734 )
2735 .first()
2736 .click();
2737 await expect(
2738 this.page.locator('[class*=popover] header').getByText('Audit Log')
2739 ).toBeVisible();
2740 const locatorValue = this.page
2741 .locator('[class*=popover] [class*=content] [class*=item]')
2742 .first();
2743 await expect(
2744 locatorValue.locator('header').getByText(userName)
2745 ).toBeVisible();
2746 if (fromValue) {
2747 await expect(
2748 locatorValue.locator('[class*=diff]').getByText(fromValue).first()
2749 ).toBeVisible();
2750 }
2751 await expect(
2752 locato
… (269 more characters not kept)
9. commits repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, since=2026-11-10T00:00:00Z · 1117 chars back
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)
10. search_code repo=cleopatra, text=popover, path_prefix=apps/sense · 697 chars back
apps/sense/src/components/property-changelog-popover/index.ts
1: export * from './property-changelog-popover';
apps/sense/src/modules/ai-teammates/ai-workorders/work-order-config/regenerate-email-popover.tsx
38: testId="work-order-config.regenerate-email-popover.describe-how-you-d-like"
52: testId="work-order-config.regenerate-email-popover.option"
64: testId="work-order-config.regenerate-email-popover.regenerate"
apps/sense/src/components/property-changelog-popover/property-changelog-popover.tsx
apps/sense/src/modules/calendar/components/event.tsx
apps/sense/src/modules/home/hooks/useHomeCalendar.tsx
apps/sense/src/components/site-modal/index.scss
13: z-index: var(--z-popover);
11. search_code repo=cleopatra, text=async verifyAuditLogDetails, path_prefix=e2e/pages · 126 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
574: async verifyAuditLogDetails(fromStatus, toStatus, index = 0, logName) {
12. search_code repo=cleopatra, text=this.auditLogHeading =, path_prefix=e2e/pages · 218 chars back
e2e/pages/workorder/workOrderPage.js
277: this.auditLogHeading = page.getByRole('heading', {
e2e/pages/visitExecution/visitExecStudy.page.js
256: this.auditLogHeading = this.auditLogPopover.getByText('Audit Log', {
13. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=250, end_line=262 · 702 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 250-262:
250 .locator('div:has-text("SDV")')
251 .locator('label[class*="switch"]');
252 this.insideTableSdvCellHistoryIconAncestor = 'xpath=ancestor::td[1]';
253 this.auditLogPopover = page
254 .getByRole('dialog')
255 .filter({ has: page.getByText('Audit Log', { exact: true }) });
256 this.auditLogHeading = this.auditLogPopover.getByText('Audit Log', {
257 exact: true
258 });
259 this.auditLogSdvUnverifiedAction =
260 this.auditLogPopover.getByText(/unverified SDV/i);
261 this.auditLogSdvVerifiedAction =
262 this.auditLogPopover.getByText(/\bverified SDV\b/i);
14. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=570, end_line=620 · 1675 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 570-620:
570 logger.info(`Selecting tab ${tabName} on visit exe page`);
571 await this.page.locator('[role="tab"]').getByText(tabName).click();
572 }
573
574 async verifyAuditLogDetails(fromStatus, toStatus, index = 0, logName) {
575 logger.info('Check audit log status');
576 const firstChangeLog = this.page
577 .locator('[class*=event] [class*=item_]')
578 .nth(index);
579 logger.info(
580 `Check audit log status change from ${fromStatus} to ${toStatus}`
581 );
582 await expect(firstChangeLog.getByText(fromStatus)).toBeVisible();
583 await expect(firstChangeLog.getByText(toStatus)).toBeVisible();
584
585 if (logName) {
586 await expect(firstChangeLog.getByText(logName)).toBeVisible();
587 }
588 logger.info('Verified audit logs');
589 }
590
591 async selectButton(buttonName) {
592 await this.waitForTime(2000);
593 await this.page.getByRole('button', { name: buttonName }).last().click();
594 await this.waitForTime(2000);
595 }
596
597 async selectTeamsTab() {
598 await this.visitStudyTeamsTab.click();
599 }
600
601 async selectSubjectsTab() {
602 logger.info('Select subjects tab');
603 await this.studySubjectsTab.click();
604 }
605
606 async selectTaskTab() {
607 await this.tasksTab.click();
608 }
609
610 async selectComplianceTab() {
611 await this.complianceTab.click();
612 }
6
… (175 more characters not kept)
15. search_code repo=cleopatra, text=/studio/events, path_prefix=packages/api · 190 chars back
packages/api/sse/StudioSSEManager.ts
5: super('/api/studio/events');
packages/api/generated/services/Studio.ts
1367: * @request GET:/api/studio/events
1372: path: `/api/studio/events`,
16. commit_diff repo=cleopatra, sha=c5db9232b · 5677 chars back
c5db9232b 2026-11-15T17:13 akshaysharma-tilda: Study feed: request cards in modals with the inbox thread, and the questions list (ENG-8324) (#16831)
28 files changed: apps/sense/src/modules/ai-teammates/ai-inbox/inbox-detail-header.tsx, apps/sense/src/modules/ai-teammates/ai-inbox/work-order-emails/hooks/useSendWorkOrderDraftMutation.ts, apps/sense/src/modules/ai-teammates/ai-inbox/work-order-emails/work-order-draft-actions.tsx, apps/sense/src/modules/ai-teammates/ai-inbox/work-order-emails/work-order-email-conversation.tsx, apps/sense/src/modules/ai-teammates/ai-workorders/work-order-details/activity-components/sticky-draft-card.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/card-review-modal.test.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/card-review-modal.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/card-review.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/feed-card.test.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/feed-side.module.scss, apps/sense/src/modules/studies/routes/studies/study/feed/feed-side.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/feed.test.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/review/registry.ts, apps/sense/src/modules/studies/routes/studies/study/feed/review/requests/attention-view.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/review/requests/email-view.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/r
… (4177 more characters not kept)
17. search_code repo=cleopatra, text=closeDialog, path_prefix=e2e/pages · 188 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
537: this.closeDialog = page
e2e/pages/common/base.page.js
153: this.closeDialogButton = page.locator('[class*=dialog] button').first();
18. commit_diff repo=cleopatra, sha=c5db9232b · 5677 chars back
c5db9232b 2026-11-15T17:13 akshaysharma-tilda: Study feed: request cards in modals with the inbox thread, and the questions list (ENG-8324) (#16831)
28 files changed: apps/sense/src/modules/ai-teammates/ai-inbox/inbox-detail-header.tsx, apps/sense/src/modules/ai-teammates/ai-inbox/work-order-emails/hooks/useSendWorkOrderDraftMutation.ts, apps/sense/src/modules/ai-teammates/ai-inbox/work-order-emails/work-order-draft-actions.tsx, apps/sense/src/modules/ai-teammates/ai-inbox/work-order-emails/work-order-email-conversation.tsx, apps/sense/src/modules/ai-teammates/ai-workorders/work-order-details/activity-components/sticky-draft-card.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/card-review-modal.test.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/card-review-modal.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/card-review.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/feed-card.test.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/feed-side.module.scss, apps/sense/src/modules/studies/routes/studies/study/feed/feed-side.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/feed.test.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/review/registry.ts, apps/sense/src/modules/studies/routes/studies/study/feed/review/requests/attention-view.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/review/requests/email-view.tsx, apps/sense/src/modules/studies/routes/studies/study/feed/r
… (4177 more characters not kept)
19. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=530, end_line=545 · 733 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 530-545:
530 name: 'Mark as Valid'
531 });
532 this.startTrainingButton = page.getByRole('button', {
533 name: 'Start Training',
534 exact: true
535 });
536 this.retryButton = page.getByRole('button', { name: 'Retry' });
537 this.closeDialog = page
538 .locator('[class*=popover]')
539 .getByTestId('icon-xmark')
540 .first();
541 this.trainingBackButton = page.getByTestId('training-task-back-button');
542 this.fillDocButton = page
543 .locator('[data-field-type="marker-field"]')
544 .filter({ hasText: 'Fill' });
545 this.studiesBreadcrumb = page.getByTestId('studies-breadcrumb');
20. search_code repo=cleopatra, text=async checkCareplanAuditLog · 120 chars back
e2e/pages/visitExecution/visitExecStudy.page.js
2761: async checkCareplanAuditLog(subjectName, fromStatus, toStatus) {
21. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=2761, end_line=2800 · 1762 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 2761-2800:
2761 async checkCareplanAuditLog(subjectName, fromStatus, toStatus) {
2762 await this.refresh();
2763 logger.info(`Click on audit log button against subject ${subjectName}`);
2764 await expect(async () => {
2765 if (!(await this.auditLogHeading.isVisible())) {
2766 await this.subjectAuditLogButton(subjectName).click({ timeout: 10000 });
2767 }
2768 await expect(this.auditLogHeading).toBeVisible({ timeout: 10000 });
2769 }).toPass({ timeout: 60000 });
2770 await this.verifyAuditLogDetails(fromStatus, toStatus);
2771 }
2772
2773 async checkAuditLog(fromStatus, toStatus, option = {}) {
2774 const { logName, visitLevel, index } = option;
2775 await this.waitForTime(2000);
2776 await this.refresh();
2777 logger.info('Click on details button to check audit logs');
2778
2779 await this.visitDetailsButtonVisitExe.click();
2780 await expect(
2781 await this.page
2782 .locator('[class*=sidebar] h3')
2783 .filter({ hasText: 'Visit Form' })
2784 ).toBeVisible();
2785 await this.selectVisitExeTab('Audit log');
2786 if (visitLevel) {
2787 logger.info('Hiding form level logs');
2788 await this.waitForTime(3000);
2789 await this.page
2790 .locator('button')
2791 .filter({ hasText: 'Form Level' })
2792 .click();
2793 }
2794 await this.verifyAuditLogDetails
… (262 more characters not kept)
22. page_snapshot text=popover · 417 chars back
14: ```
15: TimeoutError: locator.click: Timeout 50000ms exceeded.
16: Call log:
17: - waiting for locator('[class*=popover]').getByTestId('icon-xmark').first()
18: - locator resolved to <svg viewBox="0 0 24 24" class="w-full h-full" data-testid="icon-xmark">…</svg>
19: - attempting click action
20: - waiting for element to be visible, enabled and stable
21: - element is visible, enabled and stable
23. page_snapshot text=Audit · 1622 chars back
36: 52 | await crc.goToVisitsPage(unscheduledVisitPatient.trim());
37: 53 | await crc.selectVisitStatusBadge(visitTitle);
38: 54 | await crc.startVisitForPatient(unscheduledVisitPatient.trim());
39: 55 | await crc.completeFirstUnscheduledVisit();
40: 56 | await crc.checkAuditLog('InProgress', 'Completed', {
41: 57 | logName: 'changed state',
42: 58 | visitLevel: true
43: 59 | });
44: 60 |
…
65: 81 | visitName: visitTitle
66: 82 | });
67: 83 |
68: 84 | await pi.completeSignOffReview('PI', piUser.userName);
69: 85 | await pi.checkAuditLog('Completed', 'InvestigatorSignOff', {
70: 86 | logName: 'signed off',
71: 87 | visitLevel: true
72: 88 | });
73: 89 | });
…
105: 121 | )
106: 122 | ).toBeVisible();
107: 123 | logger.info(`Completed CRC editing activity ${demographicsActivity.title}`);
108: 124 | await crc.selectButton(demographicsActivity.title);
109: 125 | await crc.checkQuestionAuditLog(
110: 126 | questionTitle,
111: 127 | crcUser.userName,
112: 128 | question[2].options[0],
113: 129 | question[2].options[1]
…
121: 137 |
122: 138 | test('TC-05: Verify starting second unscheduled visit', async ({ crc }) => {
123: 139 | await crc.searchStudy(studyName);
124: 140 | await crc.studySubjectsTab.click();
125: 141 | await crc.checkCareplanAuditLog(
126: 142 | uns
… (122 more characters not kept)
24. commits repo=cleopatra, path=apps/sense/src/modules/studies/routes/studies/study/subjects, since=2026-11-14T00:00:00Z · 38 chars back
no commits to that path in that window
25. search_code repo=cleopatra, text=detached, path_prefix=e2e/knowledge · 1151 chars back
e2e/knowledge/studies.md
58: `modules/studies/hooks/useMoreMenu.ts`. The items carry `more-menu-edit` and `more-menu-delete`; the trigger is the row's `icon-ellipsis`. Don't open it with `row.locator('svg')`: since #16616 the nam
79: Study Settings → Advanced Settings is a sub-section of the Settings route, selected by `?subSection=advanced-settings` (`nav-section.tsx` → `setModalSubSection`). In `ui-tests-master` #821 and #824, a
e2e/knowledge/sites.md
89: **The staff row menu closes itself right after it opens.** Opening a row's menu saves a user preference (`PUT /api/userprefs`) and the staff table re-renders, so the menu item resolves and is then `de
e2e/knowledge/visit-execution.md
218: **The subject-grid visit menu can re-mount under the click.** `Visit Summary` (`getByTestId('summary')`) was seen `detached from the DOM` while the Subjects table refetched (#858 TC-09). `openSubjectV
e2e/knowledge/testing-patterns.md
114: A `DataTable` refetches after a search, a save or a poll, and re-renders its rows. A row menu opened in that window detaches (`element was detached from the DOM`), or it opens and then closes before t
26. search_code repo=cleopatra, text=studio/events, path_prefix=apps/sense/src · 30 chars back
no match on the default branch
27. read_file repo=cleopatra, path=e2e/knowledge/visit-execution.md, start_line=205, end_line=240 · 3555 chars back
e2e/knowledge/visit-execution.md (285 lines), lines 205-240:
205 | Frozen | gone | still there, still enabled |
206 | Locked | gone | gone |
207
208 Toasts are exact: `Data frozen successfully.`, `Data unfrozen successfully.`, `Data locked successfully.`, `Data unlocked successfully.`, `PI Signoff requested successfully.` Visit-scope options are `All visits`, `All vi
209
210 > **Open bug, do not "fix" the symptom.** `_freezeLockStep1` only recognises the string `'Manually select visits and forms'`, but `edcFreezeLockPiSignOff.spec.js:266-270` and `:300-306` pass `'Manually select visits and
211
212 **The Sites / Subjects / Visits / Forms pickers are `Select multiple`** (2026-11-06). Since #16232 (main only, 2026-10-28) the freeze, lock and PI sign-off dialogs open a popover listbox whose entries are `option`s, not
213
214 **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 override it, so Esc
215
216 **Open the dialogs through the toolbar testids, not icon positions** (2026-11-06, read from `freeze-lock-actions.tsx`). The toolbar buttons are `freeze-lock-actions.snowflake`, `.snowflake-slash`, `.lock-fill`, `.lock-op
217
218 **The subject-grid visit menu can re-mount under the click.** `Visit Summary` (`getByTestId('summary')`) was seen `detached from the DOM` while the Subjects table refetched (#858 TC-09). `openSubjectV
… (2055 more characters not kept)
28. read_file repo=cleopatra, path=e2e/knowledge/testing-patterns.md, start_line=105, end_line=135 · 2360 chars back
e2e/knowledge/testing-patterns.md (423 lines), lines 105-135:
105 });
106 ```
107
108 `ListBoxItem` is used in about 60 files (member pickers, assign dialogs, selects with a description line). Caught on `croAddSite.spec.js` TC-03 (`ui-tests-master` #804).
109
110 ---
111
112 ## Open row menus with `BasePage.clickMenuItem`
113
114 A `DataTable` refetches after a search, a save or a poll, and re-renders its rows. A row menu opened in that window detaches (`element was detached from the DOM`), or it opens and then closes before the item click lands.
115
116 ---
117
118 ## List endpoints take `search`/`skip`/`limit`/`sort`/`desc` and return `totalCount`
119
120 Between 2026-10-20 and 2026-10-22 the backend moved every list endpoint onto one contract (`main` #16459, #16733, #16734, #16735, #16739, #16757, #16758, #16796; all in `production`): the search string is `search` (`sear
121
122 - **Go services that validate keys reject them with a 400** — `parameter "searchstr" is not a valid key` (`tildaobj/obj_crud.go`). That is how `orgApiUtility.findOrgByName` broke three Organizations tests in `ui-tests-ma
123 - **FastAPI (virtual assistant) and studio ignore unknown names silently** and fall back to their defaults — `limit=20`, newest first. `page_size=100` quietly became 20 rows, and a helper that read `total` saw `undefined
124
125 So when an API utility builds a list URL, use the new names, read `totalCount`, and check the handler rather than an old HAR or a sibling util
… (860 more characters not kept)
What it was shown (build 880, 56.3 KB)
The run
{
"job": "e2e-tests-master",
"build": 880,
"kind": "ui-tests",
"result": "UNSTABLE",
"started": "2026-11-16T01:37:29Z",
"tests": 710,
"failed": 84,
"test_commit": "c5db9232b",
"cluster_prepared": {
"mode": "verify",
"result": "not_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, 95\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": 105
},
{
"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": 235
},
{
"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": 235
}
],
"long_standing_findings_left_out": 22,
"pods_in_trouble_during_the_run": [],
"deploys_during_the_run": []
}
The group
{
"tests": 1,
"suite": "unscheduledVisit",
"members": [
{
"test": "unscheduledVisit::TC-05: Verify starting second unscheduled visit",
"pattern": "flaky",
"meaning": "passed and failed in turn: 4 failures and 5 changes in 21 runs",
"newest_first": "F P P P P P P P P F P P P P P P P P F F P",
"failing_in_a_row": 1,
"this_error_in_a_row": 1,
"this_error_since_build": 880,
"build_before_this_error": 879,
"failing_since_build": 880,
"last_passed_build": 879
}
]
}
The failure
{
"test": "unscheduledVisit::TC-05: Verify starting second unscheduled visit",
"status": "error",
"message": "locator.click: Timeout 50000ms exceeded.",
"traceback_tail": " \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\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/unscheduledVisit-Exe---Uns-70d63-ng-second-unscheduled-visit-visitExecution/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/unscheduledVisit-Exe---Uns-70d63-ng-second-unscheduled-visit-visitExecution/error-context.md\n\n Retry #1 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n TimeoutError: locator.click: Timeout 50000ms exceeded.\n Call log:\n - waiting for locator('[class*=popover]').getByTestId('icon-xmark').first()\n - locator resolved to <svg viewBox=\"0 0 24 24\" class=\"w-full h-full\" data-testid=\"icon-xmark\">\u2026</svg>\n - attempting click action\n - waiting for element to be visible, enabled and stable\n - element was detached from the DOM, retrying\n\n\n 144 | 'ScreenScheduled'\n 145 | );\n > 146 | await crc.closeDialog.click();\n | ^\n 147 | await crc.waitForTime(1000);\n 148 | const visitTitle = await crc.scheduleUnscheduledVisit(\n 149 | unscheduledVisitPatient,\n at /home/jenkins/agent/workspace/ui-tests-master/e2e/tests/visitExecution/unscheduledVisit.spec.js:146:27\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/unscheduledVisit-Exe---Uns-70d63-ng-second-unscheduled-visit-visitExecution-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/unscheduledVisit-Exe---Uns-70d63-ng-second-unscheduled-visit-visitExecution-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/unscheduledVisit-Exe---Uns-70d63-ng-second-unscheduled-visit-visitExecution-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/unscheduledVisit-Exe---Uns-70d63-ng-second-unscheduled-visit-visitExecution-retry1/trace.zip\n Usage:\n\n yarn playwright show-trace reports/unscheduledVisit-Exe---Uns-70d63-ng-second-unscheduled-visit-visitExecution-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": "e2e7e57c176f9e88faef8aa5c5283185",
"method": "GET",
"path": "/api/studio/events",
"status": "404",
"error": "None"
},
{
"trace_id": "e2e7e57c176f9e88faef8aa4d02399cc",
"method": "GET",
"path": "/api/studio/events",
"status": "404",
"error": "None"
},
{
"trace_id": "e2e7e57c176f9e88faef8aac3c3a5c44",
"method": "GET",
"path": "/api/studio/events",
"status": "404",
"error": "None"
},
{
"trace_id": "e2e7e57c176f9e88faef8aa631c715b6",
"method": "GET",
"path": "/api/studio/events",
"status": "404",
"error": "None"
},
{
"trace_id": "e2e7e57c176f9e88faef8aabed7de995",
"method": "GET",
"path": "/api/studio/events",
"status": "404",
"error": "None"
},
{
"trace_id": "e2e7e57c176f9e88faef8aa8b86ef588",
"method": "GET",
"path": "/api/studio/events",
"status": "404",
"error": "None"
}
],
"errors_the_services_logged_for_these_requests": "none: no service logged an error under these requests' trace ids",
"raised_at": "e2e/tests/visitExecution/unscheduledVisit.spec.js:146",
"code_frame": " 144 | 'ScreenScheduled'\n 145 | );\n> 146 | await crc.closeDialog.click();\n | ^\n 147 | await crc.waitForTime(1000);\n 148 | const visitTitle = await crc.scheduleUnscheduledVisit(\n 149 | unscheduledVisitPatient,",
"playwright_call_log": [
"- waiting for locator('[class*=popover]').getByTestId('icon-xmark').first()",
"- locator resolved to <svg viewBox=\"0 0 24 24\" class=\"w-full h-full\" data-testid=\"icon-xmark\">\u2026</svg>",
"- attempting click action",
"- waiting for element to be visible, enabled and stable",
"- element was detached from the DOM, retrying"
],
"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"
}
}
Console lines about this test
{
"from": "console.log",
"lines": [
"11299: INFO Current URL: https://automation.master.tilda.pizza/e2EUi880Cro/studio (+1 identical, not shipped)",
"11300: INFO Selected study E2E CRO Study (+1 identical, not shipped)",
"11301: INFO Navigate to study subjects tab (+1 identical, not shipped)",
"11302: INFO \u2718 870 [visitExecution] \u203a tests/visitExecution/unscheduledVisit.spec.js:138:3 \u203a Exe - Unscheduled Visits \u203a TC-05: Verify starting second unscheduled visit (2.4m)",
"11303: INFO Select multiple sites",
"11304: INFO Patient created via api: Relkpbe8mnhjxx",
"11305: INFO Reselect site name Ui Test 1794804963927",
"\u2026",
"12251: INFO Checked duty 1 for Test Pi",
"12252: INFO Checked duty 2 for Test Pi",
"12253: INFO Checked duty 3 for Test Pi",
"12254: INFO \u2718 912 [visitExecution] \u203a tests/visitExecution/unscheduledVisit.spec.js:138:3 \u203a Exe - Unscheduled Visits \u203a TC-05: Verify starting second unscheduled visit (retry #1) (2.3m)",
"12255: INFO Test Pi signed off DOA log for 3 duties",
"12256: INFO \u25c7 injected env (0) from ../env/.env.master // tip: \u2318 multiple files { path: ['.env.local', '.env'] } (+1 identical, not shipped)",
"12257: INFO \u25c7 injected env (0) from ../env/.env.master // tip: \u25c8 encrypted .env [www.dotenvx.com] (+1 identical, not shipped)",
"\u2026",
"14051: INFO reports/sdv-SDV-\u2014-visit-execution--66d07-ggle-\u2014-single-page-activity-visitExecution-retry1/test-failed-1.png",
"14052: INFO Error Context: reports/sdv-SDV-\u2014-visit-execution--66d07-ggle-\u2014-single-page-activity-visitExecution-retry1/error-context.md",
"14053: INFO yarn playwright show-trace reports/sdv-SDV-\u2014-visit-execution--66d07-ggle-\u2014-single-page-activity-visitExecution-retry1/trace.zip",
"14054: INFO 83) [visitExecution] \u203a tests/visitExecution/unscheduledVisit.spec.js:138:3 \u203a Exe - Unscheduled Visits \u203a TC-05: Verify starting second unscheduled visit",
"14055: ERROR TimeoutError: locator.click: Timeout 50000ms exceeded.",
"14056: INFO - waiting for locator('[class*=popover]').getByTestId('icon-xmark').first()",
"14057: INFO - locator resolved to <svg viewBox=\"0 0 24 24\" class=\"w-full h-full\" data-testid=\"icon-xmark\">\u2026</svg>",
"\u2026",
"14272: INFO [visitExecution] \u203a tests/visitExecution/edc/edcExports.spec.js:331:3 \u203a EDC - CRF Exports \u203a TC-01: Verify completing crc signoff",
"14273: INFO [visitExecution] \u203a tests/visitExecution/protocolDeviation/pdCUD.spec.js:452:3 \u203a Exe - Protocol Deviations CUD \u203a TC-15: Verify CRC marking CRO Monitor query as No action needed from PD tab",
"14274: INFO [visitExecution] \u203a tests/visitExecution/sdv.spec.js:83:3 \u203a SDV \u2014 visit execution \u203a TC-02: Verify SDV toggle \u2014 single-page activity",
"14275: INFO [visitExecution] \u203a tests/visitExecution/unscheduledVisit.spec.js:138:3 \u203a Exe - Unscheduled Visits \u203a TC-05: Verify starting second unscheduled visit",
"14276: INFO [visitExecution] \u203a tests/visitExecution/visitOptions.spec.js:80:3 \u203a Exe - Visit options \u203a TC-03: Verify removing patient visit",
"14277: INFO 7 flaky",
"14278: INFO [tmf] \u203a tests/tmf/documentsCRO.spec.js:188:3 \u203a Documents TMF CRO Page \u203a Verify TMF Report Generation at Study Level"
]
}
The test's history
{
"pattern": "flaky",
"meaning": "passed and failed in turn: 4 failures and 5 changes in 21 runs",
"newest_first": "F P P P P P P P P F P P P P P P P P F F P",
"failing_in_a_row": 1,
"this_error_in_a_row": 1,
"this_error_since_build": 880,
"build_before_this_error": 879
}
The test's source
{
"repo": "tildabio/cleopatra",
"at": "c5db9232b",
"path": "e2e/tests/visitExecution/unscheduledVisit.spec.js",
"from_line": 138,
"failing_line": 138,
"code": "138> test('TC-05: Verify starting second unscheduled visit', async ({ crc }) => {\n139 await crc.searchStudy(studyName);\n140 await crc.studySubjectsTab.click();\n141 await crc.checkCareplanAuditLog(\n142 unscheduledVisitPatient,\n143 'ScreenSchedulePending',\n144 'ScreenScheduled'\n145 );\n146 await crc.closeDialog.click();\n147 await crc.waitForTime(1000);\n148 const visitTitle = await crc.scheduleUnscheduledVisit(\n149 unscheduledVisitPatient,\n150 2\n151 );\n152 await expect(\n153 crc.page\n154 .locator('td')\n155 .filter({ hasText: unscheduledVisitPatient })\n156 .locator(`~td[data-column-id=\"unscheduled-visits\"] span`)\n157 .getByText('2')\n158 ).toBeVisible();\n159 await crc.page.keyboard.press('Escape');\n160 await crc.goToVisitsPage(unscheduledVisitPatient);\n161 await expect(\n162 crc.page.locator('[class*=column-header]').getByText(visitTitle)\n163 ).toBeVisible();\n164 await crc.verifyUnscheduledVisitStatus(visitTitle, 'Scheduled');\n165 await crc.selectVisitStatusBadge(visitTitle);\n166 await crc.startVisitForPatient(unscheduledVisitPatient.trim());\n167 await crc.visitManagerBackButton.click();\n168 await crc.verifyUnscheduledVisitStatus(visitTitle, 'Live visit');\n169 });\n170 });"
}
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/visitExecution/unscheduledVisit.spec.js >> Exe - Unscheduled Visits >> TC-05: Verify starting second unscheduled visit\n- Location: tests/visitExecution/unscheduledVisit.spec.js:138:3\n\n# Error details\n\n```\nTimeoutError: locator.click: Timeout 50000ms exceeded.\nCall log:\n - waiting for locator('[class*=popover]').getByTestId('icon-xmark').first()\n - locator resolved to <svg viewBox=\"0 0 24 24\" class=\"w-full h-full\" data-testid=\"icon-xmark\">\u2026</svg>\n - attempting click action\n - waiting for element to be visible, enabled and stable\n - element is visible, enabled and stable\n - scrolling into view if needed\n - element was detached from the DOM, retrying\n\n```\n\n# Test source\n\n```ts\n 46 | });\n 47 | \n 48 | test('TC-02: Verify completing first unscheduled visit activities, audit logs and care plan/visit status', async ({\n 49 | crc\n 50 | }) => {\n 51 | await crc.searchStudy(studyName);\n 52 | await crc.goToVisitsPage(unscheduledVisitPatient.trim());\n 53 | await crc.selectVisitStatusBadge(visitTitle);\n 54 | await crc.startVisitForPatient(unscheduledVisitPatient.trim());\n 55 | await crc.completeFirstUnscheduledVisit();\n 56 | await crc.checkAuditLog('InProgress', 'Completed', {\n 57 | logName: 'changed state',\n 58 | visitLevel: true\n 59 | });\n 60 | \n 61 | await crc.page\n 62 | .locator('[class*=dialog] [class*=toolbar]')\n 63 | .getByRole('link', { name: studyName })\n 64 | .click();\n 65 | await crc.verifyCareplanStatusOnSubjectPage(\n 66 | unscheduledVisitPatient.trim(),\n 67 | 'Scheduled'\n 68 | );\n 69 | await crc.goToVisitsPage(unscheduledVisitPatient.trim());\n 70 | await crc.verifyVisitStatusOnSubjectTableBadge(\n 71 | 'CRC sign-off pending',\n 72 | 'unscheduled'\n 73 | );\n 74 | });\n 75 | \n 76 | test('TC-03: Verify completing PI sign-off of unscheduled visit', async ({\n 77 | pi\n 78 | }) => {\n 79 | await pi.searchStudy(studyName);\n 80 | await pi.goToVisitExecutionPage(unscheduledVisitPatient, {\n 81 | visitName: visitTitle\n 82 | });\n 83 | \n 84 | await pi.completeSignOffReview('PI', piUser.userName);\n 85 | await pi.checkAuditLog('Completed', 'InvestigatorSignOff', {\n 86 | logName: 'signed off',\n 87 | visitLevel: true\n 88 | });\n 89 | });\n 90 | \n 91 | test('TC-04: Verify CRC editing unscheduled visit resets PI sign-off', async ({\n 92 | crc\n 93 | }) => {\n 94 | await crc.searchStudy(studyName);\n 95 | await crc.goToVisitExecutionPage(unscheduledVisitPatient, {\n 96 | visitName: visitTitle\n 97 | });\n 98 | const demographicsActivity = studioDataHelper.getActivityDetails(\n 99 | 'Demographics',\n 100 | 'V1'\n 101 | );\n 102 | await crc.selectButton(demographicsActivity.title);\n 103 | const question = demographicsActivity.questionnaires[0].question;\n 104 | const questionTitle =\n 105 | demographicsActivity.questionnaires[0].question[2].title;\n 106 | await crc.editQuestion(questionTitle);\n 107 | await crc.verifyEditActivityStatus(\n 108 | demographicsActivity.title,\n 109 | crcUser.userName\n 110 | );\n 111 | await crc.selectAnswer(questionTitle, question[2].options[1]);\n 112 | const branchQuestion = getActivationPathQuestions(question[2], 'Yes');\n 113 | const branchAns0 = branchQuestion[0].options[0];\n 114 | await crc.selectAnswer(branchQuestion[0].title, branchAns0);\n 115 | \n 116 | await crc.completeButton.click();\n 117 | await crc.updateActivitySinglePage();\n 118 | await expect(\n 119 | crc.page.locator(\n 120 | `[data-status=\"Completed\"]+span:has-Text(\"${demographicsActivity.title}\")`\n 121 | )\n 122 | ).toBeVisible();\n 123 | logger.info(`Completed CRC editing activity ${demographicsActivity.title}`);\n 124 | await crc.selectButton(demographicsActivity.title);\n 125 | await crc.checkQuestionAuditLog(\n 126 | questionTitle,\n 127 | crcUser.userName,\n 128 | question[2].options[0],\n 129 | question[2].options[1]\n 130 | );\n 131 | await crc.signOffMenu.click();\n 132 | await crc.verifyHeading('Sign-Offs');\n 133 | await expect(\n 134 | crc.page.locator('figure[class*=sign]').getByText(piUser.userName)\n 135 | ).not.toBeVisible();\n 136 | });\n 137 | \n 138 | test('TC-05: Verify starting second unscheduled visit', async ({ crc }) => {\n 139 | await crc.searchStudy(studyName);\n 140 | await crc.studySubjectsTab.click();\n 141 | await crc.checkCareplanAuditLog(\n 142 | unscheduledVisitPatient,\n 143 | 'ScreenSchedulePending',\n 144 | 'ScreenScheduled'\n 145 | );\n> 146 | await crc.closeDialog.click();\n | ^ TimeoutError: locator.click: Timeout 50000ms exceeded.\n 147 | await crc.waitForTime(1000);\n 148 | const visitTitle = await crc.scheduleUnscheduledVisit(\n 149 | unscheduledVisitPatient,\n 150 | 2\n 151 | );\n 152 | await expect(\n 153 | crc.page\n 154 | .locator('td')\n 155 | .filter({ hasText: unscheduledVisitPatient })\n 156 | .locator(`~td[data-column-id=\"unscheduled-visits\"] span`)\n 157 | .getByText('2')\n 158 | ).toBeVisible();\n 159 | await crc.page.keyboard.press('Escape');\n 160 | await crc.goToVisitsPage(unscheduledVisitPatient);\n 161 | await expect(\n 162 | crc.page.locator('[class*=column-header]').getByText(visitTitle)\n 163 | ).toBeVisible();\n 164 | await crc.verifyUnscheduledVisitStatus(visitTitle, 'Scheduled');\n 165 | await crc.selectVisitStatusBadge(visitTitle);\n 166 | await crc.startVisitForPatient(unscheduledVisitPatient.trim());\n 167 | await crc.visitManagerBackButton.click();\n 168 | await crc.verifyUnscheduledVisitStatus(visitTitle, 'Live visit');\n 169 | });\n 170 | });\n 171 | \n```"
}
Commits in the window
{
"between": "build 879 (last pass, started 2026-11-15T01:35:54Z) and build 880 (first failure of the streak, started 2026-11-16T01:37:29Z)",
"test_repo": {
"repo": "tildabio/cleopatra",
"range": "450fde1f8..c5db9232b",
"href": "https://github.com/tildabio/cleopatra/compare/450fde1f8c905b5fc07c2535b763609fea4a97bb...c5db9232b1268bb11f614e536f963c55d6d5b34d",
"total": 9,
"commits": [
{
"sha": "c5db9232b",
"subject": "Study feed: request cards in modals with the inbox thread, and the questions list (ENG-8324) (#16831)",
"login": "akshaysharma-tilda",
"name": "akshaysharma-tilda",
"date": "2026-11-15T17:13",
"touches": [
"apps/sense",
"e2e/pages",
"e2e/tests",
"e2e/utils"
]
},
{
"sha": "e5787321c",
"subject": "fix(ai-chat): New chat on a feed card starts on the card's items (ENG-8850) (#16834)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-11-15T16:25",
"touches": [
"apps/sense"
]
},
{
"sha": "063b076fb",
"subject": "[E2E]: Training fix (#16835)",
"login": "sbadiger",
"name": "Santosh Badiger",
"date": "2026-11-15T16:13",
"touches": [
"e2e/pages"
]
},
{
"sha": "563a8b891",
"subject": "e2e: publish the coverage log (ui-requests.jsonl) with each run (ENG-8417) (#16830)",
"login": "asatish",
"name": "asatish",
"date": "2026-11-15T09:47",
"touches": [
"e2e/publishResults.js"
]
},
{
"sha": "b6287d477",
"subject": "feat(feed): Ask AI on the draft emails review (ENG-8850) (#16829)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-11-15T06:20",
"touches": [
"apps/sense",
"packages/api"
]
},
{
"sha": "25e885202",
"subject": "feat(sense): superseded auto queries read-only and Studio inherited auto queries (ENG-7994) (#16819)",
"login": "nkommuri",
"name": "Naga Kishore",
"date": "2026-11-15T01:23",
"touches": [
"apps/sense",
"packages/api",
"packages/common",
"packages/ui"
]
},
{
"sha": "b3c533cff",
"subject": "Site startup suggestion card and EDL purpose (ENG-8842) (#16827)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-11-15T00:54",
"touches": [
"apps/sense",
"packages/api"
]
},
{
"sha": "61adba3a2",
"subject": "Reviewing the training certificate completes the training (#16820)",
"login": "taylorfutral",
"name": "Taylor",
"date": "2026-11-14T19:21",
"touches": [
"apps/sense"
]
},
{
"sha": "806127aa4",
"subject": "feat(feed): Suggestions tab for missing documents (ENG-8794) (#16816)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-11-14T17:37",
"touches": [
"apps/sense",
"packages/api"
]
}
]
},
"product": {
"repo": "tildabio/main",
"range": "7713ce2..a654678",
"href": "https://github.com/tildabio/main/compare/7713ce2...a654678",
"total": 130,
"commits": [
{
"sha": "830e852e8",
"subject": "workplansvc: backfill WorkPlanInstance scopeId from its site edge so the NODE KEY can be created (#16896) (#17300)",
"login": "sureshboddapati",
"name": "Suresh Boddapati",
"date": "2026-11-06T18:15",
"touches": [
"workplansvc/pkg"
]
},
{
"sha": "9a12afd2a",
"subject": "[Cherry-pick] fix(va): show the work-order email the site actually received (ENG-7530) (#16882, #16949) (#17299)",
"login": "mmukkama",
"name": "mmukkama",
"date": "2026-11-06T18:07",
"touches": [
"data-science/virtual_assistant"
]
},
{
"sha": "e3da2fa76",
"subject": "test not valid removing from run will correct flow and format changes (#17296) (#17297)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-06T17:52",
"touches": [
"e2e/automation"
]
},
{
"sha": "cee99a538",
"subject": "feat(execlib): store choice answers as a list on ParticipantQuestion (ENG-8210) (#16965) (#17293)",
"login": "mmukkama",
"name": "mmukkama",
"date": "2026-11-06T17:02",
"touches": [
"common/execlib",
"common/graphlib",
"execsvc/pkg",
"studiosvc/pkg",
"tildaobj/exec_obj_defs.go"
]
},
{
"sha": "8e44d9e2b",
"subject": "List a study admin's studies for the org Trainings page (#17209) (#17292)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-06T17:01",
"touches": [
"api/auth.go",
"authz/pkg"
]
},
{
"sha": "86b408c60",
"subject": "fix(wo): audit log shows assignee names, not user ids (ENG-8527) (#17288)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-11-06T15:43",
"touches": [
"data-science/virtual_assistant"
]
},
{
"sha": "672c813a0",
"subject": "[Cherry-pick] fix(chat-agent, dashQL): QC/funnel caveats, report tables, active-events routing (ENG-8269, ENG-8397, ENG-8404) (#17260)",
"login": "mmukkama",
"name": "mmukkama",
"date": "2026-11-06T15:37",
"touches": [
"dashQL/charts",
"dashQL/graph",
"data-science/chat-agent"
]
},
{
"sha": "129712e49",
"subject": "fix(execsvc): refresh cached permissions on study-site roster edits (ENG-8519) (#17248) (#17283)",
"login": "mmukkama",
"name": "mmukkama",
"date": "2026-11-06T15:31",
"touches": [
"common/authlib",
"execsvc/pkg"
]
},
{
"sha": "3969a1020",
"subject": "fix(execlib): one PANotStarted test for the amendment's started-activity gates (#17245) (#17246)",
"login": "nkommuri",
"name": "Naga Kishore",
"date": "2026-11-06T15:28",
"touches": [
"common/execlib",
"execsvc/pkg"
]
},
{
"sha": "69d3ab2f8",
"subject": "production: cherry-pick per-service schema convergence (#16243, #16833) (#17286)",
"login": "asatish",
"name": "asatish",
"date": "2026-11-06T15:28",
"touches": [
".github/AI_CONTEXT.md",
".github/REVIEW.md",
".github/workflows",
".gitignore",
"CLAUDE.md",
"Makefile",
"advpsvc/Dockerfile",
"advpsvc/api",
"advpsvc/internal",
"authz/Dockerfile",
"authz/main.go",
"authz/pkg"
]
},
{
"sha": "9ac7682ef",
"subject": "studiosvc: auto query keeps every condition group when reopened (#17229) (#17285)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-06T15:01"
},
{
"sha": "bd328fd8d",
"subject": "fix(docsvc): share Not Ready documents; release Not Ready on a recipient's completion (ENG-8485) (#17221) (#17253)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-06T15:00"
},
{
"sha": "5821b5e82",
"subject": "fix(execsvc): no duplicate auto-queries from table template cells; row save evaluates only that row (ENG-8548) (#17282)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-06T14:41"
},
{
"sha": "34e04a9e9",
"subject": "Do not consider removed activities for making them next executable (#17224) (#17270)",
"login": "nkommuri",
"name": "Naga Kishore",
"date": "2026-11-06T14:22"
},
{
"sha": "bb373ffe7",
"subject": "Fix: Staff state not getting updated (#17276)",
"login": "pralim",
"name": "Prasad",
"date": "2026-11-06T13:57"
},
{
"sha": "664ac14a6",
"subject": "Block CBR auto-promote when Site scope has no resolved siteId (#17266) (#17267)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-06T09:12"
},
{
"sha": "3f5b7aea8",
"subject": "fix(execlib): record Not Done reason when a blank autosave lands first in edit mode (ENG-8505) (#17242) (#17261)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-06T08:12"
},
{
"sha": "d44e6a5a1",
"subject": "ci(automation): write the automation image into the ui-tests jobs too; wait between push retries (#17254) (#17257)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-06T06:43"
},
{
"sha": "9dd2fe3d0",
"subject": "docproc: a guard's tag replaces the model's rulebook tag so its QC policy severity reaches the model's copy (#17206) (#17234)",
"login": "aaburaed",
"name": "aaburaed",
"date": "2026-11-06T01:47"
},
{
"sha": "6fc75ce13",
"subject": "tilda-ocr: keep rotated pages upright when shrinking oversized page boxes (ENG-8491) (#17231)",
"login": "aaburaed",
"name": "aaburaed",
"date": "2026-11-06T01:45"
},
{
"sha": "3df8ee012",
"subject": "fix(edl): chat agent reads EDL progress from docsvc completion; plan-first event creation (ENG-8474) (#17250)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-11-06T00:59"
},
{
"sha": "618e0d73d",
"subject": "fix(execsvc): report global-table draft rows across all pages (ENG-6995) (#17216) (#17238)",
"login": "mmukkama",
"name": "mmukkama",
"date": "2026-11-05T18:36"
},
{
"sha": "30cf610bb",
"subject": "feat(execsvc): re-evaluate cross-form auto-queries when the read form completes (ENG-8464) (#17239)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-05T18:20"
},
{
"sha": "5bab8cbac",
"subject": "Backport Not Ready training copies to production (#17240)",
"login": "taylorfutral",
"name": "Taylor",
"date": "2026-11-05T18:13"
},
{
"sha": "3892e3355",
"subject": "Retire study actor on removal from last site (#17226)",
"login": "tilda-gitbot[bot]",
"name": "tilda-gitbot[bot]",
"date": "2026-11-05T16:06"
}
]
}
}
The issue as the agent wrote it
**Fix is in:** the automation suite (e2e): the test is flaky.
**What failed:** `locator.click: Timeout 50000ms exceeded.`
**On screen when it failed:** The saved snapshot has only the error text and no page tree. The call log shows the audit-log popover was open with its X icon visible, but the icon kept being replaced in the DOM.

**Flaky test**, confidence low. Found in `e2e-tests-master` build 880: [run in X-ray](https://xray.tilda.pizza/tests/run/e2e-tests-master/880).
**Root cause in X-ray:** [the verdict, each test's history and the evidence the agent read](https://xray.tilda.pizza/test-triage/99e752022baf36)
unscheduledVisit.spec.js:146 `crc.closeDialog.click()` timed out after 50 s. The locator is `[class*=popover] >> icon-xmark >> first` (visitExecStudy.page.js:537-540).
Playwright found the X, saw it visible, enabled and stable, and then it was 'detached from the DOM', on both attempts. So the popover was opened but kept being re-mounted under the click.
checkCareplanAuditLog (page.js:2761) reloads the page and opens the subject's audit log inside a toPass, so the Subjects table can still be refetching while the test closes the popover.
The suite's notes describe this as a known pattern (testing-patterns.md:114, visit-execution.md:218): DataTable refetches re-mount row menus and popovers.
history.pattern is flaky (4 failures in 21 runs) and it passed in build 879. None of the 9 cleopatra commits touch the subjects page or this page object. c5db9232b only changes the study feed and inbox.
Not verified: the page snapshot holds only the error, not the page tree, so I can't say what kept re-rendering. The six /api/studio/events 404s are a lead I couldn't follow; the route isn't on the default branch.
**Service:** sense
**Assigned to:** nobody (nobody could be named from the test's history).
**Failing tests (1):**
- [unscheduledVisit::TC-05: Verify starting second unscheduled visit](https://xray.tilda.pizza/tests/case/a917338483c53e7d) (new in this run)
**Error:**
```
locator.click: Timeout 50000ms exceeded.
```
+++ Agent notes
Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5, claude-opus-5-5; settled by escalate; 28 lookups in the code and its history.
Group `triage:99e752022baf36` (one issue per root cause).
A wrong verdict can be corrected on the run page in X-ray.
+++