[Test failure] openAdvancedSettings retry re-clicks a sidebar link that is gone once the section is open
The test is wrong confidence medium · medium priority · e2e-tests-master, last seen in build 881
The verdict
- Fix is in
- the automation suite (e2e): the test is wrong
- Issue
- ENG-8876 · Backlog
- Owner
- Pranit Mahajan (last changed settings.page.js (0218d9d1a); the test agent opens the pull request once this is in Ready for Development)
- Filed in
- Backlog, Test Agent Automation
- History when filed
- flaky, this error since build 881
- On screen
- The Advanced Settings page is already open, with its own sidebar and a disabled Save button, and no 'Study settings' navigation.
- Branches
- fails on master only: production is unaffected (e2e-tests-production build 858). Fix it before master is released to production.
The second openAdvancedSettings() call (spec line 123) fails at settings.page.js:290. Its retry loop clicks the 'Study settings' treegrid link again after the section is already open.
The failure snapshot shows the Advanced Settings page open: an h2 'Advanced Settings' and a disabled Save button. The sidebar is now the 'Advanced Settings' treegrid, built by AdvancedSettingsPageSidebar in nav-section.tsx. The 'Study settings' treegrid no longer exists, so every retried click times out.
I am inferring that an earlier iteration opened the section, but the Save-visible check missed it within 5s, or the page restored the sub-section after selectSettingsTab. I did not confirm that from a trace.
All requests returned 200 and no service logged an error. It passes on production, and no commit since build 880 touches this page object or nav-section.tsx. The history is flaky: 4 failures in 25 runs.
To fix, make the helper idempotent: return at once if the Save button is already visible.
Proposed fix
In ProtocolPage.openAdvancedSettings() (e2e/pages/study/settings.page.js:284), check state inside the toPass block before clicking. If advancedSettingsSaveButton is already visible, return. Otherwise click advancedSettingsSideOption only when that link is visible, then wait for the Save button. Also wait for the Advanced Settings treegrid or the Save button after selectSettingsTab() at spec line 122.
History of this root cause
- filed ENG-8876 · build 881 6d ago
The test is wrong, confidence medium; 1 test; to [email protected] in Backlog
Tests 1
Oldest to newest, up to 30 runs. Green passed, red failed with this error, amber failed with another error. Skipped and collapsed runs are left out. Newest build: 882.
| Test | History | Newest run | Reading |
|---|---|---|---|
| Study Settings › TC-02: Edit and Verify Advanced Settings Values studySettings |
did not run |
How the agent decided
- Models
- claude-sonnet-5-5 ($0.47, 14 lookups)
- Settled by
- the investigating model
- Cost
- $0.47
What it looked up (14, in order)
1. page_snapshot text=Study settings · 280 chars back
14: ```
15: Error: locator.click: Timeout 5000ms exceeded.
16: Call log:
17: - waiting for getByRole('treegrid', { name: 'Study settings' }).getByRole('link', { name: 'Advanced Settings', exact: true })
20: Call Log:
21: - Timeout 30000ms exceeded while waiting on the predicate
2. read_file repo=cleopatra, path=e2e/pages/study/settings.page.js, start_line=195, end_line=265 · 2779 chars back
e2e/pages/study/settings.page.js (496 lines), lines 195-265:
195 '[aria-label="CSV with Variable Names"]'
196 );
197 this.dataDictionaryOption = page.locator(
198 '[aria-label="CSV with Data Dictionary & Response Codes"]'
199 );
200
201 this.exportSiteSelect = page
202 .locator('[class*=field]')
203 .filter({ hasText: 'Sites' })
204 .locator('button');
205 this.exportSubjectSelect = page
206 .locator('[class*=field]')
207 .filter({ hasText: 'Subjects' })
208 .locator('button');
209 this.exportSubjectSearchInput = page
210 .getByRole('dialog', { name: 'All' })
211 .getByPlaceholder('Search...');
212 this.exportVisitSelect = page
213 .locator('[class*=field]')
214 .filter({ hasText: 'Visit' })
215 .locator('button');
216 this.exportActivitySelect = page
217 .locator('[class*=field]')
218 .filter({ hasText: 'Activities' })
219 .locator('button')
220 .last();
221 this.exportButton = page.getByRole('button', { name: 'Export' });
222 this.closeExportModal = page.getByTestId('icon-xmark');
223
224 this.studyTeamTab = page.getByTestId('app-header-study-team-tab');
225 this.inviteMemberButton = page.getByRole('button', {
226 name: 'Invite member'
227 });
228 this.studyAdminRoleOption = page.getByTestId('actor-modal-roles-7');
229 this.nextButton = page.getByRole('button', { name: 'Next' });
230 this.studyAdminHead
… (1279 more characters not kept)
3. search_code repo=cleopatra, text=settingsNav, path_prefix=e2e/pages/study/settings.page.js · 30 chars back
no match on the default branch
4. commits repo=cleopatra, path=apps/sense, since=2026-11-16T01:37:00Z, until=2026-11-16T08:54:00Z · 799 chars back
f3a159732 2026-11-16T08:03 arzatskis: Clean up unused router exports and build print preview URLs with qs (#16760)
3d6ad0485 2026-11-16T07:55 susheelkumar-cmyk: fix(studies): cancel takes back every imported site, one at a time (ENG-7517) (#16840)
efc042fd8 2026-11-16T07:04 mvelamatt: EDL page: Keep in sync switch (ENG-8351) (#16838)
346e610ba 2026-11-16T07:01 TadasValaitiz: Add eval-backed layouts to the design system (#16794)
d551a5bd0 2026-11-16T06:23 poojalodhi: Show object counts in the Global Form sidebar (ENG-4808) (#16800)
32ff063b2 2026-11-16T06:12 Shashank-Agrawal12: Archived organizations tab with restore and purge in Tenant Management (ENG-7837) (#16811)
b7d34528d 2026-11-16T05:48 Shashank-Agrawal12: fix(execution): save pending edits before removing a form (ENG-8532) (#16596)
5. search_code repo=cleopatra, text=settingsNavLink · 668 chars back
e2e/pages/study/settings.page.js
40: this.settingsNavLink = (name) =>
51: this.ieCriteriaSideOption = this.settingsNavLink('I/E Criteria');
78: this.advancedSettingsSideOption = this.settingsNavLink('Advanced Settings');
91: this.settingPartnerSideOption = this.settingsNavLink('Study Partners');
e2e/pages/studio/protocolBuilder.page.js
211: await this.settingsNavLink('Study Configurations').click();
e2e/tests/study/protocol.spec.js
49: await settingsPage.settingsNavLink('Study Configurations').click();
93: await settingsPage.settingsNavLink('Study Configurations').click();
124: await settingsPage.settingsNavLink('Study Configurations').click();
6. search_code repo=cleopatra, text=Advanced Settings, path_prefix=e2e/knowledge · 1253 chars back
e2e/knowledge/studies.md
5: > **Last updated:** 2026-11-12 | Studies list visibility, tabs and row menu (ENG-8643, `studiesList.spec.js`), run against automation.master FE `main-2c0f3d6`. | 2026-11-12 | No sponsor logo on the st
77: ## Advanced Settings can drop back to General right after it opens
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
88: #15877 ("Unify study settings layout with shared settings components", 2026-10-16) moved `ContentBlock` (`study-details/main-content-blocks/content-block.tsx`) from a `TimelineStudyEvent` with `<div i
e2e/knowledge/sites.md
199: - **`/studies/:id/settings/site-and-scheduling` is a V1-only screen.** `settings/layout.tsx` renders the V2 `StudyDetails` whenever `useProtocolVersionCheck` says V2, which includes every study with n
e2e/knowledge/license-visibility.md
68: ## Work-order surfaces and Advanced Settings (ENG-6873)
82: KPI Setup is not a content block: it is a sidebar `NavItem` that opens its own sub-section, so it has no `#id` row on the main Settings page. Site & Scheduling only exists on the Advanced Settings sub
7. read_file repo=cleopatra, path=e2e/knowledge/studies.md, start_line=75, end_line=92 · 1743 chars back
e2e/knowledge/studies.md (126 lines), lines 75-92:
75 On the same Sites tab, #15895 (2026-10-16) hides the Status, findings, budget status and protocol status columns by default (`useStudySiteColumns.tsx`, `unusedColumns`). That's why `verifySiteAddedToStudy` checks only th
76
77 ## Advanced Settings can drop back to General right after it opens
78
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, and on production #80
80
81 - `selectSettingsTab()` waited on `networkidle` after the tab click, which can return before the Settings route has settled. Since 2026-11-05 it waits for the `Study settings` sidebar (treegrid) instead.
82 - The form re-initialises on every study refetch (`enableReinitialize` on `initialValues` from `[study]`), which is also why `selectBlindedOption` retries its click.
83
84 `ProtocolPage.openAdvancedSettings()` clicks the entry and retries until the section's Save button (`button[form="advanced-settings-form"]`) is on screen, and TC-02 waits for Save to disable after saving before it reopen
85
86 ## Study Settings blocks are SettingsSections since #15877
87
88 #15877 ("Unify study settings layout with shared settings components", 2026-10-16) moved `ContentBlock` (`study-details/main-content-blocks/content-block.tsx`) from a `TimelineStudyEvent` with `<div id={id}>` around the
89
90 ## Study Partn
… (243 more characters not kept)
8. read_file repo=cleopatra, path=e2e/pages/study/settings.page.js, start_line=30, end_line=50 · 1267 chars back
e2e/pages/study/settings.page.js (496 lines), lines 30-50:
30 // the title instead, scoped to the topmost dialog so a same-named row in
31 // the background Settings page can't match instead.
32 this.siteOption = (siteName) =>
33 this.topmostDialog.getByRole('heading', { name: siteName, level: 5 });
34 this.closePublishAndAdoptDialogue = page
35 .locator(ALERT_DIALOG_SELECTOR)
36 .locator('svg');
37 this.settingsProtocolNav = page.getByRole('link', { name: 'Protocols' });
38 this.studySettingsTab = page.getByTestId('app-header-study-settings-tab');
39 this.settingsNav = page.getByRole('treegrid', { name: 'Study settings' });
40 this.settingsNavLink = (name) =>
41 this.settingsNav.getByRole('link', { name, exact: true });
42 this.studyProtocolTab = page.getByTestId('app-header-study-protocol-tab');
43 this.studySubjectsTab = page.getByTestId('app-header-study-subjects-tab');
44 this.protocolSiteButton = page.locator('header [class*=media] button');
45 this.nextProtocolHeading = page
46 .getByTestId('visit-table-column-v2')
47 .getByTestId('visit-table-period');
48 this.cardHeader = page.locator("[class='react-flow'] [class*=card] h5");
49
50 // I/E Criteria
9. search_code repo=cleopatra, text=Study settings, path_prefix=apps/sense · 116 chars back
apps/sense/src/components/study-modal/create-study-modal/study-details/nav-section.tsx
147: label="Study settings"
10. commits repo=cleopatra, path=e2e/pages/study/settings.page.js, since=2026-11-01T00:00:00Z · 287 chars back
0218d9d1a 2026-11-13T14:06 pranitmahajan: [E2E] Studio test fixes (#16795)
9595e30aa 2026-11-11T02:36 asatish: e2e: find toasts by the react-aria markup, not role="status" (#16634)
11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
11. read_file repo=cleopatra, path=apps/sense/src/components/study-modal/create-study-modal/study-details/nav-se..., start_line=60, end_line=220 · 5400 chars back
apps/sense/src/components/study-modal/create-study-modal/study-details/nav-section.tsx (242 lines), lines 60-220:
60 const sidebarScrollRef = useRef<HTMLDivElement>(null);
61
62 useResetSidebarOnPageTop(sidebarScrollRef);
63
64 return (
65 <PageSidebar>
66 <div className="sticky top-0 h-dvh">
67 <ScrollView fade="vertical" scrollBar="auto" ref={sidebarScrollRef}>
68 <div className="pt-16 pb-40">{children}</div>
69 </ScrollView>
70 </div>
71 </PageSidebar>
72 );
73 };
74
75 const useSubSectionHref = () => {
76 const { search } = useLocation();
77
78 return (section: NewStudyModalSubSection) => {
79 const params = new URLSearchParams(search);
80 params.set('subSection', section);
81 // The TMF Template page keeps its active tab in `tab`; drop it so sidebar
82 // navigation always lands on a section's default view.
83 params.delete('tab');
84 return `?${params.toString()}`;
85 };
86 };
87
88 export function MainContentPageSidebar() {
89 const { isCRO } = useCurrentUserRoles();
90 const { features } = useFeatureToggles();
91 const getSubSectionHref = useSubSectionHref();
92 const { studyId: routeStudyId } = useParams();
93 const [searchParams] = useSearchParams();
94 // Resolve the study id the same way study-details.tsx / the content panel do,
95 // so the sidebar and panel stay in lockstep. In the create-study modal flow
96 // the route param is absent and the id comes from
… (3900 more characters not kept)
12. page_snapshot text=Save · 899 chars back
210: - generic [ref=f28e446]:
211: - generic [ref=f28e447]: Require full document scroll before review
212: - generic [ref=f28e448]: If enabled, reviewers must scroll to the end of a document before they can mark it as reviewed.
213: - switch [ref=f28e454]
214: - button "Save" [disabled] [ref=f28e457]
215: ```
217: # Test source
…
313: 283 | // the section is still on screen.
314: 284 | async openAdvancedSettings() {
315: 285 | await expect(async () => {
316: 286 | await this.advancedSettingsSideOption.click({ timeout: 5000 });
317: 287 | await expect(this.advancedSettingsSaveButton).toBeVisible({
318: 288 | timeout: 5000
319: 289 | });
320: > 290 | }).toPass({ timeout: 30000 });
321: | ^ Error: locator.click: Timeout 5000ms exceeded.
13. page_snapshot text=treegrid · 1226 chars back
14: ```
15: Error: locator.click: Timeout 5000ms exceeded.
16: Call log:
17: - waiting for getByRole('treegrid', { name: 'Study settings' }).getByRole('link', { name: 'Advanced Settings', exact: true })
20: Call Log:
21: - Timeout 30000ms exceeded while waiting on the predicate
…
40: - generic [ref=f28e17]:
41: - generic [ref=f28e18]: E2E UI881 CRO
42: - generic [ref=f28e19]: Test Admin
43: - navigation [ref=f28e25]:
44: - treegrid "Navigation" [ref=f28e26]:
45: - rowgroup [ref=f28e27]:
46: - row "Home" [level=1] [ref=f28e28]:
47: - gridcell [ref=f28e29]:
48: - link "Home" [ref=f28e30] [cursor=pointer]:
…
142: - generic [ref=f28e329]:
143: - complementary [ref=f28e330]:
144: - button "Settings" [ref=f28e332] [cursor=pointer]
145: - navigation [ref=f28e338]:
146: - treegrid "Advanced Settings" [ref=f28e339]:
147: - rowgroup [ref=f28e340]:
148: - row [ref=f28e341]:
149: - rowheader "Advanced Settings" [ref=f28e342]
150: - row "Blinded & Unblinded" [level=1] [ref=f28e344]:
14. commit_diff repo=cleopatra, sha=de78c7210 · 14253 chars back
de78c7210 2026-11-16T07:51 sbadiger: [E2E]: Training logs verifications (#16842)
8 files changed: e2e/AGENTS.md, e2e/knowledge/training.md, e2e/pages/visitExecution/visitExecStudy.page.js, e2e/tests/training/regular.spec.js, e2e/tests/training/staff.spec.js, e2e/tests/training/tbut.spec.js, e2e/utils/apiUtility/visitApiUtility.js, e2e/utils/fixtures/visitExec.js
--- e2e/AGENTS.md
@@ -24,7 +24,7 @@ Applies to: all files under `e2e/`.
- **All test data belongs in data files** (e.g. `edlData.js`) — names, descriptions, template names, deliverable configs. Never hardcode test values inline in a spec or page object.
- **Dynamic values** (e.g. unique template names) should use a generator function in the data file (e.g. `() => ({ name: generateUniqueName('...') })`) so each test call gets a fresh value.
- **Never reference another test's data entry directly** — each test must own its data via its own `tcXX()` entry. Sharing entries means a change to one silently breaks another.
-- **A renamed value must not contain the original** — row lookups match on substring (`filter({ hasText })`), and `FunctionHelper.getRandomNumber()` returns `Date.now()`, so two calls inside one `tcXX()` generator produce the *same* number. `` `Renamed ${uniqueName()}` `` therefore contains the original name, and the "old value is gone" assertion silently matches the renamed row instead of failing. Give the renamed value its own prefix:
+- **A renamed value must not contain the original** — row lookups
… (12753 more characters not kept)
What it was shown (build 881, 44.7 KB)
The run
{
"job": "e2e-tests-master",
"build": 881,
"kind": "ui-tests",
"result": "UNSTABLE",
"started": "2026-11-16T08:54:38Z",
"tests": 714,
"failed": 36,
"test_commit": "de78c7210",
"branch": "master",
"cluster_prepared": {
"mode": "verify",
"result": "ready",
"product_commit": "82fca18"
}
}
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": "execsvc",
"title": "execsvc: a new error shape, 5\u00d7 in the last hour, never seen in 90 days (Request completed \u2014 ? \u00b7 {?:\" failed to create Actor for Study ? Actor )",
"opened_minutes_after_run_start": -38
},
{
"kind": "error.novel",
"severity": "critical",
"subject": "execsvc",
"title": "execsvc: a new error shape, 5\u00d7 in the last hour, never seen in 90 days (Request completed \u2014 ? \u00b7 {?:\" failed to create Actor for Study ? Actor )",
"opened_minutes_after_run_start": -38
},
{
"kind": "error.novel",
"severity": "critical",
"subject": "docproc",
"title": "docproc: a new error shape, 6\u00d7 in the last hour, never seen in 90 days (Failed to create document processing AIRun \u2014 aborting pipeline (refuse)",
"opened_minutes_after_run_start": -38
},
{
"kind": "error.novel",
"severity": "critical",
"subject": "docproc",
"title": "docproc: a new error shape, 5\u00d7 in the last hour, never seen in 90 days (Recovery failed \u2014 AIRun creation failed for document ? (document proce)",
"opened_minutes_after_run_start": -38
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "execsvc",
"title": "execsvc: a new error shape, 5\u00d7 in the last hour, never seen in 90 days (failed to find study protocol for study study ? site ?: bad status of )",
"opened_minutes_after_run_start": 85
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "execsvc",
"title": "execsvc: a new error shape, 10\u00d7 in the last hour, never seen in 90 days (failed to create Actor for Study error: user ? is not a member of orga)",
"opened_minutes_after_run_start": -38
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "execsvc",
"title": "execsvc: a new error shape, 10\u00d7 in the last hour, never seen in 90 days (failed to create Actor for Study \u2014 user ? is not a member of organizat)",
"opened_minutes_after_run_start": -38
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "virtual-assistant",
"title": "virtual-assistant: a new error shape, 23\u00d7 in the last hour, never seen in 90 days ([PlaceholderMatch][placeholder_id=?] Failed to record match: Failed to)",
"opened_minutes_after_run_start": 12
}
],
"long_standing_findings_left_out": 25,
"pods_in_trouble_during_the_run": [],
"deploys_during_the_run": []
}
The group
{
"tests": 1,
"suite": "studySettings",
"members": [
{
"test": "studySettings::TC-02: Edit and Verify Advanced Settings Values",
"pattern": "flaky",
"meaning": "passed and failed in turn: 4 failures and 4 changes in 25 runs",
"newest_first": "F P P P P P P P P P P P F P P P P P P P P P P F F",
"failing_in_a_row": 1,
"this_error_in_a_row": 1,
"this_error_since_build": 881,
"build_before_this_error": 880,
"failing_since_build": 881,
"last_passed_build": 880
}
]
}
The failure
{
"test": "studySettings::TC-02: Edit and Verify Advanced Settings Values",
"status": "error",
"message": "locator.click: Timeout 5000ms exceeded.",
"traceback_tail": " 293 |\n at ProtocolPage.openAdvancedSettings (/home/jenkins/agent/workspace/ui-tests-master/e2e/pages/study/settings.page.js:290:8)\n at /home/jenkins/agent/workspace/ui-tests-master/e2e/tests/study/studySettings.spec.js:123:24\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/studySettings-Study-Settin-29f9b-fy-Advanced-Settings-Values-study/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 Error Context: reports/studySettings-Study-Settin-29f9b-fy-Advanced-Settings-Values-study/error-context.md\n\n Retry #1 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n Error: locator.click: Timeout 5000ms exceeded.\n Call log:\n - waiting for getByRole('treegrid', { name: 'Study settings' }).getByRole('link', { name: 'Advanced Settings', exact: true })\n\n\n Call Log:\n - Timeout 30000ms exceeded while waiting on the predicate\n\n at pages/study/settings.page.js:290\n\n 288 | timeout: 5000\n 289 | });\n > 290 | }).toPass({ timeout: 30000 });\n | ^\n 291 | logger.info('Opened Advanced Settings');\n 292 | }\n 293 |\n at ProtocolPage.openAdvancedSettings (/home/jenkins/agent/workspace/ui-tests-master/e2e/pages/study/settings.page.js:290:8)\n at /home/jenkins/agent/workspace/ui-tests-master/e2e/tests/study/studySettings.spec.js:123:24\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/studySettings-Study-Settin-29f9b-fy-Advanced-Settings-Values-study-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 Error Context: reports/studySettings-Study-Settin-29f9b-fy-Advanced-Settings-Values-study-retry1/error-context.md\n\n attachment #4: 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/studySettings-Study-Settin-29f9b-fy-Advanced-Settings-Values-study-retry1/trace.zip\n Usage:\n\n yarn playwright show-trace reports/studySettings-Study-Settin-29f9b-fy-Advanced-Settings-Values-study-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": "e2e7e5789a537019069a36aa2d8201b8",
"method": "GET",
"path": "/api/studies",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e5789a537019069a36ad18c9e438",
"method": "GET",
"path": "/api/studies/a58fb2d4-54e8-47b0-8e27-83e286cd9070",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e5789a537019069a36a0c61526af",
"method": "GET",
"path": "/api/studio/activities",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e5789a537019069a36a270552bc3",
"method": "POST",
"path": "/api/journey",
"status": "204",
"error": "None"
},
{
"trace_id": "e2e7e5789a537019069a36a6aa59d089",
"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/study/settings.page.js:290",
"code_frame": " at pages/study/settings.page.js:290\n\n 288 | timeout: 5000\n 289 | });\n> 290 | }).toPass({ timeout: 30000 });\n | ^\n 291 | logger.info('Opened Advanced Settings');\n 292 | }\n 293 |",
"playwright_call_log": [
"- waiting for getByRole('treegrid', { name: 'Study settings' }).getByRole('link', { name: 'Advanced Settings', exact: true })",
"- Timeout 30000ms exceeded while waiting on the predicate"
],
"attempts": {
"errors": [
"Error: locator.click: Timeout 5000ms exceeded.",
"Error: locator.click: Timeout 5000ms exceeded."
],
"note": "every attempt failed the same way: deterministic, not a race"
}
}
Console lines about this test
{
"from": "console.log",
"lines": [
"5473: INFO Opening training \"Staff Training - 1794822055211\" (+1 identical, not shipped)",
"5474: INFO Verified trainee \"Cro Dm\" in training side panel (+3 identical, not shipped)",
"5475: INFO Generating Team member for study CRO E2E Study 1794822593164",
"5476: INFO \u2718 415 [study] \u203a tests/study/studySettings.spec.js:84:3 \u203a Study Settings \u203a TC-02: Edit and Verify Advanced Settings Values (59.7s)",
"5477: INFO SMO User with role study_admin added to study CRO E2E Study 1794822593164",
"5478: INFO Selected training template: TBUT Training 1794822597799",
"5479: INFO Searching task Name Complete Staff Training - 1794822609523 training for Cro Dm",
"\u2026",
"5564: INFO Selected study CRO E2E Study 1794822043973 (+1 identical, not shipped)",
"5565: INFO Opening training document and leaving without reviewing",
"5566: INFO Continuing through Documents section",
"5567: INFO \u2718 420 [study] \u203a tests/study/studySettings.spec.js:84:3 \u203a Study Settings \u203a TC-02: Edit and Verify Advanced Settings Values (retry #1) (1.1m)",
"5568: INFO Complete introduction page",
"5569: INFO \u25c7 injected env (14) from env/.env.master // tip: \u2318 multiple files { path: ['.env.local', '.env'] }",
"5570: INFO Generating duty for study CRO E2E Study 1794822593164",
"\u2026",
"15097: INFO 156 | await expect(matchesPage.matchOpenEdl).toHaveAttribute(",
"15098: INFO 157 | 'href',",
"15099: INFO reports/studyFeedMatches-Study-fee-24845-d-the-item-links-to-its-EDL-study-retry1/test-failed-1.png",
"15100: INFO 27) [study] \u203a tests/study/studySettings.spec.js:84:3 \u203a Study Settings \u203a TC-02: Edit and Verify Advanced Settings Values",
"15101: INFO Error: locator.click: Timeout 5000ms exceeded.",
"15102: INFO - waiting for getByRole('treegrid', { name: 'Study settings' }).getByRole('link', { name: 'Advanced Settings', exact: true })",
"15103: INFO Call Log:",
"\u2026",
"15472: INFO [study] \u203a tests/study/studyFeedMatches.spec.js:26:3 \u203a Study feed: confirm AI matches \u203a TC-10: One candidate for one placeholder is confirmed with a single pick",
"15473: INFO [study] \u203a tests/study/studyFeedMatches.spec.js:61:3 \u203a Study feed: confirm AI matches \u203a TC-11: Several placeholders take ticked documents, never more ticks than placeholders",
"15474: INFO [study] \u203a tests/study/studyFeedMatches.spec.js:101:3 \u203a Study feed: confirm AI matches \u203a TC-12: \"Not a match\" rules out every candidate of the open placeholders",
"15475: INFO [study] \u203a tests/study/studySettings.spec.js:84:3 \u203a Study Settings \u203a TC-02: Edit and Verify Advanced Settings Values",
"15476: INFO [platform] \u203a tests/platform/userProfile/archiveOrg.spec.js:9:3 \u203a Organizations - Archive \u203a TC-01: Archive lifecycle",
"15477: INFO [platform] \u203a tests/platform/userProfile/archiveOrg.spec.js:81:3 \u203a Organizations - Archive \u203a TC-02: TC-ORG-064: Archiving is offered only to a Tilda Scale org admin",
"15478: INFO [platform] \u203a tests/platform/userProfile/licenseTabVisibility.spec.js:781:3 \u203a User Profile - Org license & visibility \u203a TC-01: All CRO licenses enabled on a CRO org - every mapped screen and tab is visible"
]
}
The test's history
{
"pattern": "flaky",
"meaning": "passed and failed in turn: 4 failures and 4 changes in 25 runs",
"newest_first": "F P P P P P P P P P P P F P P P P P P P P P P F F",
"failing_in_a_row": 1,
"this_error_in_a_row": 1,
"this_error_since_build": 881,
"build_before_this_error": 880
}
other_branch
{
"branch": "production",
"job": "e2e-tests-production",
"build": 858,
"these_tests_there": {
"passing": 1
},
"reading": "fails on master only: production is unaffected (`e2e-tests-production` build 858). Fix it before master is released to production."
}
The test's source
{
"repo": "tildabio/cleopatra",
"at": "de78c7210",
"path": "e2e/tests/study/studySettings.spec.js",
"from_line": 84,
"failing_line": 84,
"code": "84> test('TC-02: Edit and Verify Advanced Settings Values', async ({\n85 settingsPage\n86 }) => {\n87 await settingsPage.searchStudy(newStudyName);\n88 await settingsPage.selectSettingsTab();\n89 await settingsPage.openAdvancedSettings();\n90 await settingsPage.verifyHeading('Advanced Settings');\n91 await expect(settingsPage.blindedNoRadioButton).toHaveAttribute(\n92 'data-selected',\n93 'true'\n94 );\n95 await settingsPage.verifyHeading('Site & Scheduling');\n96 await expect(settingsPage.siteSelectionInput).toHaveAttribute(\n97 'data-selected',\n98 'true'\n99 );\n100 await expect(settingsPage.schedulingInput).toHaveAttribute(\n101 'data-selected',\n102 'true'\n103 );\n104 await settingsPage.waitForTime(500);\n105 await expect(settingsPage.advancedSettingsSaveButton).toBeDisabled();\n106 logger.info('Verified default values');\n107 await settingsPage.selectBlindedOption('Yes');\n108 // A plain label, not a heading \u2014 see knowledge/studies.md.\n109 await expect(\n110 settingsPage.page.getByText('Study Terminology', { exact: true })\n111 ).toBeVisible();\n112 await expect(settingsPage.maskAndUnmaskRadioButton).toHaveAttribute(\n113 'data-selected',\n114 'true'\n115 );\n116 await settingsPage.siteSelectionInput.click();\n117 await settingsPage.schedulingInput.click();\n118 await expect(settingsPage.advancedSettingsSaveButton).toBeEnabled();\n119 await settingsPage.advancedSettingsSaveButton.click();\n120 await expect(settingsPage.advancedSettingsSaveButton).toBeDisabled();\n121 logger.info('Edited advanced settings values');\n122 await settingsPage.selectSettingsTab();\n123 await settingsPage.openAdvancedSettings();\n124 await expect(settingsPage.blindedYesRadioButton).toHaveAttribute(\n125 'data-selected',\n126 'true'\n127 );\n128 await expect(settingsPage.siteSelectionInput).not.toHaveAttribute(\n129 'data-selected',\n130 'true'\n131 );\n132 await expect(settingsPage.schedulingInput).not.toHaveAttribute(\n133 'data-selected',\n134 'true'\n135 );\n136 await expect(settingsPage.advancedSettingsSaveButton).toBeDisabled();\n137 logger.info('Verified edited values');\n138 await settingsPage.selectBlindedOption('No');\n139 await expect(settingsPage.maskAndUnmaskRadioButton).toBeHidden();\n140 await settingsPage.siteSelectionInput.click();\n141 await settingsPage.schedulingInput.click();\n142 await settingsPage.advancedSettingsSaveButton.click();\n143 logger.info('Saved default values after verification');\n144 });\n145 \n146 test('TC-03: Create, Publish and Adopt DutyPlan from CRO', async ({\n147 settingsPage\n148 }) => {\n149 const { planName, renamedPlanName } = dutyPlanData.tc03();\n150 const { fields, toasts, expected } = dutyPlanData;\n151 await settingsPage.searchStudy(newStudyName);\n152 await settingsPage.selectSettingsTab();\n153 await settingsPage.dutyPlansSideOption.click();\n154 await settingsPage.createDutyPlan(planName);"
}
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/study/studySettings.spec.js >> Study Settings >> TC-02: Edit and Verify Advanced Settings Values\n- Location: tests/study/studySettings.spec.js:84:3\n\n# Error details\n\n```\nError: locator.click: Timeout 5000ms exceeded.\nCall log:\n - waiting for getByRole('treegrid', { name: 'Study settings' }).getByRole('link', { name: 'Advanced Settings', exact: true })\n\n\nCall Log:\n- Timeout 30000ms exceeded while waiting on the predicate\n```\n\n# Page snapshot\n\n```yaml\n- generic [active] [ref=f28e1]:\n - generic [ref=f28e2]:\n - log\n - log\n - main [ref=f28e4]:\n - generic \"Main navigation sidebar\" [ref=f28e5]:\n - generic [ref=f28e6]:\n - link \"Home\" [ref=f28e7] [cursor=pointer]:\n - /url: /\n - button \"Collapse navigation\" [ref=f28e8] [cursor=pointer]\n - generic [ref=f28e13]:\n - button \"E2 E2E UI881 CRO Test Admin\" [ref=f28e15] [cursor=pointer]:\n - generic [ref=f28e16]: E2\n - generic [ref=f28e17]:\n \u2026\n - heading \"Advanced Settings\" [level=2] [ref=f28e356]\n \u2026\n - heading \"Supporting Blinded and Unblinded Users\" [level=4] [ref=f28e361]\n \u2026\n - heading \"Yes\" [level=5] [ref=f28e378]\n \u2026\n - heading \"No\" [level=5] [ref=f28e388]\n \u2026\n - heading \"Blinding and Unblinding\" [level=5] [ref=f28e403]\n \u2026\n - heading \"Masking and Unmasking\" [level=5] [ref=f28e412]\n \u2026\n - heading \"Site & Scheduling\" [level=4] [ref=f28e416]\n \u2026\n - heading \"Document Review\" [level=4] [ref=f28e443]\n \u2026\n 210 | .getByRole('dialog', { name: 'All' })\n \u2026\n 240 | this.memberAddedHeading = page.getByRole('heading', {\n \u2026\n | ^ Error: locator.click: Timeout 5000ms exceeded.\n \u2026\n 314 | this.page.getByRole('heading', { name: siteName }).last()\n \u2026\n 375 | await this.page.getByRole('heading', { name: partnerName }).click();"
}
The code where it failed
{
"path": "e2e/pages/study/settings.page.js",
"failing_line": 290,
"code": "265 \n266 // The Advanced Settings form remounts when the study / study-team / screener\n267 // queries settle after the section is opened, so a click can land on a\n268 // detached indicator and silently do nothing. Retry the whole click until the\n269 // option is actually selected.\n270 async selectBlindedOption(optionLabel) {\n271 const radioButton =\n272 optionLabel === 'Yes'\n273 ? this.blindedYesRadioButton\n274 : this.blindedNoRadioButton;\n275 await expect(async () => {\n276 await radioButton.click({ timeout: 5000 });\n277 await expect(radioButton).toHaveAttribute('data-selected', 'true');\n278 }).toPass({ timeout: 30000 });\n279 logger.info(`Selected '${optionLabel}' for study blinding`);\n280 }\n281 \n282 // Settings can drop back to General just after this opens, so retry until\n283 // the section is still on screen.\n284 async openAdvancedSettings() {\n285 await expect(async () => {\n286 await this.advancedSettingsSideOption.click({ timeout: 5000 });\n287 await expect(this.advancedSettingsSaveButton).toBeVisible({\n288 timeout: 5000\n289 });\n290> }).toPass({ timeout: 30000 });\n291 logger.info('Opened Advanced Settings');\n292 }\n293 \n294 async openProtocolDeviationsSection() {\n295 await this.protocolDeviationsSideOption.click();\n296 await this.protocolDeviationsBlock.scrollIntoViewIfNeeded();\n297 }\n298 \n299 async verifyProtocolDeviationAdopted(activityName, siteName) {\n300 logger.info(\n301 `Verify PD form ${activityName} is adopted on site ${siteName}`\n302 );"
}
Commits in the window
{
"between": "build 880 (last pass, started 2026-11-16T01:37:29Z) and build 881 (first failure of the streak, started 2026-11-16T08:54:38Z)",
"test_repo": {
"repo": "tildabio/cleopatra",
"range": "c5db9232b..de78c7210",
"href": "https://github.com/tildabio/cleopatra/compare/c5db9232b1268bb11f614e536f963c55d6d5b34d...de78c72100d11ee0de34af537ac1feac367d13bc",
"total": 9,
"commits": [
{
"sha": "de78c7210",
"subject": "[E2E]: Training logs verifications (#16842)",
"login": "sbadiger",
"name": "Santosh Badiger",
"date": "2026-11-16T07:51",
"touches": [
"e2e/AGENTS.md",
"e2e/knowledge",
"e2e/pages",
"e2e/tests",
"e2e/utils"
]
},
{
"sha": "82a536ea2",
"subject": "[E2E] start the longest Visit Execution files first (#16843)",
"login": "Harsh-Tilda",
"name": "Harsh Agarwal",
"date": "2026-11-16T07:38",
"touches": [
"e2e/knowledge",
"e2e/modules.js",
"e2e/playwright.config.js"
]
},
{
"sha": "efc042fd8",
"subject": "EDL page: Keep in sync switch (ENG-8351) (#16838)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-11-16T07:04",
"touches": [
"apps/sense"
]
},
{
"sha": "346e610ba",
"subject": "Add eval-backed layouts to the design system (#16794)",
"login": "TadasValaitiz",
"name": "Tadas Valaitis",
"date": "2026-11-16T07:01",
"touches": [
"apps/sense"
]
},
{
"sha": "d551a5bd0",
"subject": "Show object counts in the Global Form sidebar (ENG-4808) (#16800)",
"login": "poojalodhi",
"name": "Pooja Lodhi",
"date": "2026-11-16T06:23",
"touches": [
"apps/sense",
"e2e/pages",
"e2e/publishResults.js",
"packages/api"
]
},
{
"sha": "32ff063b2",
"subject": "Archived organizations tab with restore and purge in Tenant Management (ENG-7837) (#16811)",
"login": "Shashank-Agrawal12",
"name": "Shashank-Agrawal12",
"date": "2026-11-16T06:12",
"touches": [
"apps/sense",
"packages/api"
]
},
{
"sha": "b7d34528d",
"subject": "fix(execution): save pending edits before removing a form (ENG-8532) (#16596)",
"login": "Shashank-Agrawal12",
"name": "Shashank-Agrawal12",
"date": "2026-11-16T05:48",
"touches": [
"apps/sense"
]
},
{
"sha": "5f5aae50d",
"subject": "Assign only signers on documents with slots, lock signed slots and send DocumentSignoff review tasks (#16805)",
"login": "arzatskis",
"name": "Edvinas Ar\u017eatskis",
"date": "2026-11-16T04:28",
"touches": [
"packages/api",
"packages/doc-management"
]
},
{
"sha": "f40c13b6a",
"subject": "chore(bugbot): cut Cursor Bugbot review cost (#16837)",
"login": "bandarupalli",
"name": "Sambasiva Bandarupalli",
"date": "2026-11-16T01:15",
"touches": [
".cursor/config",
".gitattributes"
]
}
]
},
"product": {
"repo": "tildabio/main",
"range": "a654678..82fca18",
"href": "https://github.com/tildabio/main/compare/a654678...82fca18",
"total": 434,
"commits": [
{
"sha": "cc38bc4a8",
"subject": "docsvc: support 0 as a valid TMF sub-artifact number (ENG-8155) (#16934)",
"login": "vishal23karedla",
"name": "Vishal Karedla",
"date": "2026-10-28T11:31",
"touches": [
"common/doclib",
"docsvc/pkg"
]
},
{
"sha": "10ab8d332",
"subject": "Support sponsor role to site role mapping (#16905)",
"login": "pralim",
"name": "Prasad",
"date": "2026-10-28T08:34",
"touches": [
"e2e/CLAUDE.md",
"e2e/automation",
"execsvc/pkg",
"tildaobj/exec_obj_defs.go",
"tildaobj/model.go",
"tildaobj/schema_owner.go"
]
},
{
"sha": "8a857d045",
"subject": "fix(swaggersvc): copy exportsvc's base-dependencies into the OpenAPI stage (#16924)",
"login": "vishal23karedla",
"name": "Vishal Karedla",
"date": "2026-10-28T08:08",
"touches": [
"swaggersvc/Dockerfile"
]
},
{
"sha": "0aa4e92cd",
"subject": "Study feed: docsvc bulk review actions + EDL agent reasons (ENG-8109, ENG-8108) (#16914)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-10-28T05:21",
"touches": [
"data-science/virtual_assistant",
"docsvc/pkg",
"docsvc/routes"
]
},
{
"sha": "8a2b06094",
"subject": "fix(docsvc): list only existing documents in the Email Upload Log (ENG-7504) (#16922)",
"login": "susheelkumar-cmyk",
"name": "susheelkumar-cmyk",
"date": "2026-10-28T05:16",
"touches": [
"docsvc/pkg"
]
},
{
"sha": "b234eed2c",
"subject": "docproc: 20 slots, page-window memory estimates, docsvc retries and checksum deadlock fix (ENG-8143) (#16899)",
"login": "asatish",
"name": "asatish",
"date": "2026-10-28T04:50",
"touches": [
"common/doclib",
"data-science/docproc",
"data-science/packages",
"docsvc/pkg"
]
},
{
"sha": "840794aea",
"subject": "Keep an unassigned trainee's completed record in trainee reads (ENG-7750) (#16919)",
"login": "mmukkama",
"name": "mmukkama",
"date": "2026-10-28T03:47",
"touches": [
"execsvc/pkg"
]
},
{
"sha": "0c99958c6",
"subject": "Stop checksum tally on uploadComplete. (#16913)",
"login": "vishal23karedla",
"name": "Vishal Karedla",
"date": "2026-10-28T03:44",
"touches": [
"docsvc/pkg"
]
},
{
"sha": "1f289fc4d",
"subject": "feat(execsvc): training assignees expose primary sites and filter by role (ENG-7952) (#16918)",
"login": "danherberttilda",
"name": "Dan Herbert",
"date": "2026-10-27T22:52",
"touches": [
"execsvc/pkg"
]
},
{
"sha": "36c15b8a8",
"subject": "Resolve training certificate site number through the TrainingAssignment (#16857)",
"login": "taylorfutral",
"name": "Taylor",
"date": "2026-10-27T22:37",
"touches": [
"common/hdmlib",
"common/stafflib",
"execsvc/pkg"
]
},
{
"sha": "a3b7177b6",
"subject": "fix(va): show the work-order email the site actually received (ENG-7530) (#16882)",
"login": "mmukkama",
"name": "mmukkama",
"date": "2026-10-27T20:42"
},
{
"sha": "a90e35d5b",
"subject": "neo4j: reject non-identifier sort/search keys and labels spliced into Cypher (ENG-6376) (#16898)",
"login": "vishal23karedla",
"name": "Vishal Karedla",
"date": "2026-10-27T17:14"
},
{
"sha": "4fb1e0e55",
"subject": "fix(execsvc): register DocSeqCounter so CRO site import can create sites (ENG-7517) (#16867)",
"login": "susheelkumar-cmyk",
"name": "susheelkumar-cmyk",
"date": "2026-10-27T16:41"
},
{
"sha": "6a6deb384",
"subject": "chat-agent: WO-config run through tilda-backend-client with a per-call timeout; fix people lookup (ENG-7883, ENG-6312) (#16880)",
"login": "TadasValaitiz",
"name": "Tadas Valaitis",
"date": "2026-10-27T16:07"
},
{
"sha": "a653784ab",
"subject": "chat-agent: choose the model per run, and call OpenAI's newest models through the Responses API (ENG-7882) (#16879)",
"login": "TadasValaitiz",
"name": "Tadas Valaitis",
"date": "2026-10-27T16:01"
},
{
"sha": "a771f1836",
"subject": "feat(feedsvc): To do read API v2 and badge (ENG-8105) (#16893)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-10-27T14:49"
},
{
"sha": "5c261a837",
"subject": "feat(feedsvc): To do and badge API contract (ENG-8105) (#16892)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-10-27T14:30"
},
{
"sha": "936941d15",
"subject": "fix: record the real sender on work-order uploads + backfill existing docs (ENG-7738) (#16770)",
"login": "susheelkumar-cmyk",
"name": "susheelkumar-cmyk",
"date": "2026-10-27T14:28"
},
{
"sha": "e8429eebf",
"subject": "feat(feedsvc): item-level fact store with change detection (ENG-8101) (#16891)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-10-27T14:23"
},
{
"sha": "b33dc392a",
"subject": "feat(va): store a Need Attention reason code on the work order (ENG-8107) (#16894)",
"login": "mvelamatt",
"name": "murali krishna velamati",
"date": "2026-10-27T14:23"
},
{
"sha": "71d88dbd0",
"subject": "add filter values API to fileupload mailbox APIs (#16902)",
"login": "vikrantsharma-tildabio",
"name": "vikrantsharma-tildabio",
"date": "2026-10-27T14:21"
},
{
"sha": "7b016725d",
"subject": "ENG-7888: Studies list no longer leaks details of studies the caller cannot access (#16897)",
"login": "susheelkumar-cmyk",
"name": "susheelkumar-cmyk",
"date": "2026-10-27T14:15"
},
{
"sha": "2b0910d07",
"subject": "Add missing org filter in SiteStudy listing (#16903)",
"login": "pralim",
"name": "Prasad",
"date": "2026-10-27T13:17"
},
{
"sha": "ad1ac1c8d",
"subject": "Fix: Certify waived(skipAttestation=true) documents are stuck in Upload Pending (#16802)",
"login": "vishal23karedla",
"name": "Vishal Karedla",
"date": "2026-10-27T13:13"
},
{
"sha": "8b0ad4bf3",
"subject": "studiosvc, workplansvc: backfill Timer scopeid and WorkPlanInstance scopeId so their NODE KEYs can be created (#16896)",
"login": "sureshboddapati",
"name": "Suresh Boddapati",
"date": "2026-10-27T05:08"
}
]
}
}
The issue as the agent wrote it
**Fix is in:** the automation suite (e2e): the test is wrong.
**What failed:** `locator.click: Timeout 5000ms exceeded.`
**On screen when it failed:** The Advanced Settings page is already open, with its own sidebar and a disabled Save button, and no 'Study settings' navigation.

**The test is wrong**, confidence medium. Found in `e2e-tests-master` build 881: [run in X-ray](https://xray.tilda.pizza/tests/run/e2e-tests-master/881).
**Root cause in X-ray:** [the verdict, each test's history and the evidence the agent read](https://xray.tilda.pizza/test-triage/4c7501db9a9b1b)
**Branches:** fails on master only: production is unaffected (`e2e-tests-production` build 858). Fix it before master is released to production.
The second openAdvancedSettings() call (spec line 123) fails at settings.page.js:290. Its retry loop clicks the 'Study settings' treegrid link again after the section is already open.
The failure snapshot shows the Advanced Settings page open: an h2 'Advanced Settings' and a disabled Save button. The sidebar is now the 'Advanced Settings' treegrid, built by AdvancedSettingsPageSidebar in nav-section.tsx. The 'Study settings' treegrid no longer exists, so every retried click times out.
I am inferring that an earlier iteration opened the section, but the Save-visible check missed it within 5s, or the page restored the sub-section after selectSettingsTab. I did not confirm that from a trace.
All requests returned 200 and no service logged an error. It passes on production, and no commit since build 880 touches this page object or nav-section.tsx. The history is flaky: 4 failures in 25 runs.
To fix, make the helper idempotent: return at once if the Save button is already visible.
**Assigned to:** [email protected] (last changed settings.page.js (0218d9d1a); the test agent opens the pull request once this is in Ready for Development).
**Proposed fix:**
In ProtocolPage.openAdvancedSettings() (e2e/pages/study/settings.page.js:284), check state inside the toPass block before clicking. If advancedSettingsSaveButton is already visible, return. Otherwise click advancedSettingsSideOption only when that link is visible, then wait for the Save button. Also wait for the Advanced Settings treegrid or the Save button after selectSettingsTab() at spec line 122.
**Failing tests (1):**
- [studySettings::TC-02: Edit and Verify Advanced Settings Values](https://xray.tilda.pizza/tests/case/008dd31634e7df18) (new in this run)
**Error:**
```
locator.click: Timeout 5000ms exceeded.
```
The test agent picks this ticket up and opens the pull request.
```yaml
suite: ui
feature: fix-studysettings
find: true
fix: true
target_file: e2e/tests/study/studySettings.spec.js
failing_tests:
- 'studySettings::TC-02: Edit and Verify Advanced Settings Values'
acceptance:
- Each test in failing_tests passes on the automation cluster.
- 'No assertion is weakened to make a test pass: the test still checks the behaviour it was written for.'
request: 'Fix existing tests that fail on master. Do not write new coverage.
Error: locator.click: Timeout 5000ms exceeded.
Diagnosis: The second openAdvancedSettings() call (spec line 123) fails at settings.page.js:290. Its
retry loop clicks the ''Study settings'' treegrid link again after the section is already open.
The failure snapshot shows the Advanced Settings page open: an h2 ''Advanced Settings'' and a disabled
Save button. The sidebar is now the ''Advanced Settings'' treegrid, built by AdvancedSettingsPageSidebar
in nav-section.tsx. The ''Study settings'' treegrid no longer exists, so every retried click times out.
I am inferring that an earlier iteration opened the section, but the Save-visible check missed it within
5s, or the page restored the sub-section after selectSettingsTab. I did not confirm that from a trace.
All requests returned 200 and no service logged an error. It passes on production, and no commit since
build 880 touches this page object or nav-section.tsx. The history is flaky: 4 failures in 25 runs.
To fix, make the helper idempotent: return at once if the Save button is already visible.
Proposed change: In ProtocolPage.openAdvancedSettings() (e2e/pages/study/settings.page.js:284), check
state inside the toPass block before clicking. If advancedSettingsSaveButton is already visible, return.
Otherwise click advancedSettingsSideOption only when that link is visible, then wait for the Save button.
Also wait for the Advanced Settings treegrid or the Save button after selectSettingsTab() at spec line
122.'
```
+++ Agent notes
Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 14 lookups in the code and its history.
Group `triage:4c7501db9a9b1b` (one issue per root cause).
A wrong verdict can be corrected on the run page in X-ray.
+++