[Test failure] Section search fill hits the protocol list's searchbox behind the Studio overlay (inert)
The test is wrong confidence medium · medium priority · e2e-tests-production, last seen in build 860
The verdict
- Fix is in
- the automation suite (e2e): the test is wrong
- Issue
- ENG-8917 · Ready for Development
- Owner
- Pranit Mahajan (last changed createProtocolFromJson.spec.js (9fcacf17a))
- Filed in
- Backlog, Test Agent Automation
- History when filed
- regression, this error since build 855
- On screen
- The Studio overlay is open on the Sections tab and shows a "Section 1" row with no children; the protocol list underneath is inert.
- Branches
- fails on production; on master (e2e-tests-master build 881) 0 of 1 fail the same way, 0 pass.
TC-06 fails at createProtocolFromJson.spec.js:345. `tableSearchbox.nth(0)` resolves to `data-testid="protocol-table-search"`, and Playwright reports it as "element is inert" for the full 50s on both attempts.
`protocol-table-search` belongs to the protocol list, not the Sections tab. The Sections tab has its own `sections-section-table-search` (sections-section-content.tsx:573). The snapshot shows the Studio overlay open as a `dialog` with Sections and "Section 1" inside it, so the list behind it is inert.
The section itself was created: the "Section 1" row is in the table, so the earlier steps passed. `getByRole('searchbox', { name: 'Search...' })` plus an index is order-dependent and now matches the background list first.
I did not find what changed in build 855 to bring that search into the DOM. Commit 11c6b32b4 only moved the spec folder, and I did not see a logic change in it. Master skipped this test in build 881, so there is no comparison. Look at that next, since the fix below does not explain why 854 passed.
The exportsvc cache errors are unrelated: no service errors were logged under these requests.
Proposed fix
Stop picking the search box by index. In the spec, replace `protocolPage.tableSearchbox.nth(0)` at lines 345 and 360 with a locator scoped to the Sections tab, for example `protocolPage.page.getByTestId('sections-section-table-search')`, or `protocolPage.page.getByRole('dialog').getByRole('searchbox')`. Apply the same change to the other tabs, using `forms-…-table-search` and the matching test ids, rather than `nth(1)`.
History of this root cause
- filed ENG-8917 · build 860 6d ago
The test is wrong, confidence medium; 1 test; to [email protected] in Backlog
Tests 1
Oldest to newest, up to 30 runs. Green passed, red failed with this error, amber failed with another error. Skipped and collapsed runs are left out. Newest build: 860.
| Test | History | Newest run | Reading |
|---|---|---|---|
| Studio 2 - Study Configuration › TC-06: Create all sections with nodes and flags from JSON createProtocolFromJson |
did not run |
How the agent decided
- Models
- claude-sonnet-5-5 ($0.88, 28 lookups)
- Settled by
- the investigating model
- Cost
- $0.88
What it looked up (28, in order)
1. read_file repo=cleopatra, path=e2e/tests/studioConfig/createProtocolFromJson.spec.js, start_line=1, end_line=220 · 8517 chars back
e2e/tests/studioConfig/createProtocolFromJson.spec.js (689 lines), lines 1-220:
1 import { createRequire } from 'module';
2 import logger from '../../lib/logger/log';
3 import studioData from '../../pages/studio/studioData';
4 import { expect, test } from '../../utils/fixtures/studio';
5
6 const require = createRequire(import.meta.url);
7 const protocol = require('../../pages/studioData/e2e_test_protocol_export.json');
8
9 // ---------------------------------------------------------------------------
10 // Protocol parsing helpers
11 // ---------------------------------------------------------------------------
12
13 /**
14 * Maps a JSON question type + specs to the Studio 2.0 UI category label.
15 * ResponseSet objects use the response-set name to distinguish Yes/No from
16 * Single Select / Dropdown.
17 */
18 function mapQuestionTypeToLabel(type, specs, responseSetName) {
19 if (responseSetName === 'Yes/No') return 'Yes/No';
20 const spec = specs?.[0] ?? {};
21 switch (type) {
22 case 'textbox': {
23 const tf = spec.textformat ?? '';
24 if (tf === 'number' || tf === 'decimal') return 'Number';
25 if (tf === 'long') return 'Long Text';
26 if (tf === 'date') return 'Date';
27 if (tf === 'datetime') return 'Date & Time';
28 if (tf === 'email') return 'Email';
29 return 'Short Text';
30 }
31 case 'radio':
32 return 'Single Select';
33 case 'checkbox':
34 return 'Standalone Checkbox';
35 case
… (7017 more characters not kept)
2. commit_diff repo=cleopatra, sha=11c6b32b4, path=e2e/tests/studioConfig/createProtocolFromJson.spec.js · 5726 chars back
11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
243 files changed: .cursor/rules/e2e-automation-rules.mdc, e2e/.gitignore, e2e/AGENTS.md, e2e/data.json, e2e/eslint.config.js, e2e/helpers/authHelper.js, e2e/helpers/functionHelper.js, e2e/helpers/studioDataHelper.js, e2e/helpers/workOrderSetupHelper.js, e2e/helpers/workPlanSetupHelper.js, e2e/jenkins-readme.md, e2e/knowledge/README.md, e2e/knowledge/ai-inbox.md, e2e/knowledge/ai-review.md, e2e/knowledge/calendar.md, e2e/knowledge/doa-log.md, e2e/knowledge/documents.md, e2e/knowledge/events.md, e2e/knowledge/feasibility.md, e2e/knowledge/license-visibility.md, e2e/knowledge/login.md, e2e/knowledge/organizations.md, e2e/knowledge/patients.md, e2e/knowledge/sites.md, e2e/knowledge/studio.md …
--- .cursor/rules/e2e-automation-rules.mdc
@@ -1,6 +1,6 @@
---
description: Automation test rules for AI Teammates tests and related page objects
-globs: e2e/tests/aiTeammates/**,e2e/pages/aiTeammates/**,e2e/pages/studies/eventPage.js
+globs: e2e/tests/workplan/**,e2e/tests/workorder/**,e2e/tests/edl/**,e2e/pages/workplan/**,e2e/pages/workorder/**,e2e/pages/edl/**,e2e/pages/common/aiTeammates.page.js
alwaysApply: true
---
--- e2e/.gitignore
@@ -15,11 +15,12 @@ cleanup_log.txt
../logs
data.json
.allure
-/pages/export/actual/
+/pages/visitExecution/export/actual/
*.lock
!utils/testDocuments/**/*.json
api-tests-sa
api-tests-sa.json
.yarn/*
!.yarn/releases
+!scripts/mod
… (4226 more characters not kept)
3. page_snapshot text=dialog · 352 chars back
200: - cell [ref=f18e368]:
201: - button [ref=f18e370]
202: - region "Notifications (F8)":
203: - list
204: - dialog "dialog" [ref=f18e378]:
205: - generic [ref=f18e380]:
206: - generic [ref=f18e381]:
207: - button [ref=f18e382] [cursor=pointer]
208: - separator [ref=f18e387]
4. page_snapshot text=Section 1 · 1041 chars back
15: TimeoutError: locator.fill: Timeout 50000ms exceeded.
16: Call log:
17: - waiting for getByRole('searchbox', { name: 'Search...' }).first()
18: - locator resolved to <input value="" title="" data-rac="" tabindex="0" type="search" autocomplete="off" data-1p-ignore="true" placeholder="Search..." class="_field_1b5xl_258" id="react-aria2208597207-_r_12_" data-testid="protocol-table-search"/>
19: - fill("Section 1")
20: - attempting fill action
21: 2 × waiting for element to be visible, enabled and editable
22: - element is inert
23: - retrying fill action
…
282: - cell [ref=f18e563]:
283: - generic [ref=f18e565]:
284: - complementary [ref=f18e566]:
285: - button [ref=f18e568]
286: - heading "Section 1" [level=5] [ref=f18e578]
287: - cell "-" [ref=f18e579]
288: - cell "0" [ref=f18e581]
289: - cell "-" [ref=f18e583]
290: - cell "-" [ref=f18e585]
5. search_code repo=cleopatra, text=createSectionFromJson · 281 chars back
e2e/pages/studio/protocol.page.js
2163: await this.createSectionFromJson(`${name} Title ${randomNumber}`);
2976: async createSectionFromJson(title) {
e2e/tests/studio/createProtocolFromJson.spec.js
333: await protocolPage.createSectionFromJson(section.title || section.name);
6. read_file repo=cleopatra, path=e2e/pages/studio/protocol.page.js, start_line=2960, end_line=3030 · 3064 chars back
e2e/pages/studio/protocol.page.js (3398 lines), lines 2960-3030:
2960 async addDocUploadToSectionByName(sectionName, name, title) {
2961 logger.info(
2962 `[JSON] Adding doc upload "${name}" to section "${sectionName}"`
2963 );
2964 const sectionRow = this.sectionsDepth0Rows
2965 .filter({ hasText: sectionName })
2966 .first();
2967 await sectionRow
2968 .getByRole('button', { name: 'Add block under this node' })
2969 .click();
2970 await this.blockTypeDocUpload.waitFor();
2971 await this.blockTypeDocUpload.click();
2972 await this.createNew.click();
2973 await this.createDocUploadNameField.waitFor();
2974 await this.createDocUploadNameField.fill(name);
2975 await this.createDocUploadTitleField.fill(title || name);
2976 await this.createDocUploadSaveButton.click();
2977 await this.createDocUploadSaveButton.waitFor({
2978 state: 'hidden'
2979 });
2980 logger.info(
2981 `[JSON] Doc upload "${name}" added to section "${sectionName}"`
2982 );
2983 }
2984
2985 /**
2986 * Adds a statement block to a specific named section.
2987 * Strips HTML tags to get plain text for the rich-text editor.
2988 */
2989 async addStatementToSectionByName(sectionName, htmlContent) {
2990 logger.info(`[JSON] Adding statement to section "${sectionName}"`);
2991 const sectionRow = this.sectionsDepth0Rows
2992 .filter({ hasText: sectionName })
2993 .first();
2994
… (1564 more characters not kept)
7. commits repo=cleopatra, path=e2e/pages/studio/protocol.page.js, since=2026-11-01T00:00:00Z · 851 chars back
e0858153f 2026-11-16T18:07 pranitmahajan: [E2E] Update studio tests as per new changes (#16874)
fc32eb136 2026-11-16T15:22 gedi-tilda: Name the Studio create dialogs' primary button after the object (#16869)
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)
6c24790b0 2026-11-08T18:16 Harsh-Tilda: [E2E] Nightly 861 e2e fixes (#16601)
77e47b6b4 2026-11-07T12:56 pranitmahajan: [E2E] e2e sync with production branch (#16593)
f3815b36e 2026-11-06T16:08 henrykuzmick: Studio Study Config Updates (#16547)
4f2467f3d 2026-11-03T07:45 arzatskis: Turn on the new filters toolbar everywhere and update e2e for it (#16330)
8. commits repo=cleopatra, path=e2e/pages/studio/protocol.page.js, since=2026-11-01T00:00:00Z, branch=production · 96 chars back
6f39f60a8 2026-11-04T08:33 arzatskis: Cherry-pick the new filters toolbar to production (#16454)
9. search_code repo=cleopatra, text=async navigateToStudio2Section · 83 chars back
e2e/pages/studio/protocol.page.js
1597: async navigateToStudio2Section(section) {
10. commits repo=cleopatra, path=e2e/tests/studioConfig, since=2026-11-01T00:00:00Z, branch=production · 38 chars back
no commits to that path in that window
11. commits repo=cleopatra, path=e2e/tests/studio/createProtocolFromJson.spec.js, since=2026-11-01T00:00:00Z · 277 chars back
e0858153f 2026-11-16T18:07 pranitmahajan: [E2E] Update studio tests as per new changes (#16874)
0218d9d1a 2026-11-13T14:06 pranitmahajan: [E2E] Studio test fixes (#16795)
11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
12. commit_diff repo=cleopatra, sha=e0858153f, path=e2e/pages/studio/protocol.page.js · 5235 chars back
e0858153f 2026-11-16T18:07 pranitmahajan: [E2E] Update studio tests as per new changes (#16874)
2 files changed: e2e/pages/studio/protocol.page.js, e2e/tests/studio/createProtocolFromJson.spec.js
--- e2e/pages/studio/protocol.page.js
@@ -23,6 +23,7 @@ export default class ProtocolPage extends QuestionairesPage {
'[role="dialog"] button:has-text("Create")'
);
this.createNew = this.page.locator('button:has-text("Create new")');
+ this.createBlockForm = this.page.getByTestId('form-editor-add-block-panel-create');
this.newNode = this.page.locator(
'div[class*="_empty-node_"]:has-text("New Node")'
);
@@ -328,10 +329,10 @@ export default class ProtocolPage extends QuestionairesPage {
'[form="create-docupload-form"][type="submit"]'
);
this.createStatementTitleField = this.page.locator(
- '#create-statement-form [contenteditable="true"]'
+ '[data-testid="common.edit-slideover.panel"] [contenteditable="true"]'
);
this.createStatementSaveButton = this.page.locator(
- '[form="create-statement-form"][type="submit"]'
+ '[data-testid="common.edit-slideover.panel"] [type="submit"]'
);
this.createMediaNameField = this.page.locator('#media-name');
this.urlFieldTab = this.page.getByTestId('media-mode-url');
@@ -526,6 +527,12 @@ export default class ProtocolPage extends QuestionairesPage {
this.slideoverSearchbox = this.slideoverPanel.getByRole('searchbox');
this.importProtocolButton =
… (3735 more characters not kept)
13. read_file repo=cleopatra, path=e2e/pages/studio/protocol.page.js, start_line=2780, end_line=2960 · 8014 chars back
e2e/pages/studio/protocol.page.js (3398 lines), lines 2780-2960:
2780 * Adds a table inside the first form via the "Add section in this form" button.
2781 * @param {string} name - Base table name (randomNumber appended automatically)
2782 */
2783 async addTableToForm2(name) {
2784 logger.info(`Adding table to form: ${name} ${randomNumber}`);
2785 await this.addBlockInSectionButton.first().click();
2786 await this.tableButton.waitFor();
2787 await this.tableButton.click();
2788 await this.createNew.click();
2789 await this.editTableNameField.waitFor();
2790 await this.editTableNameField.fill(`${name} ${randomNumber}`);
2791 await this.editTableTitleField.fill(`${name} Title ${randomNumber}`);
2792 await this.createTableInSectionSaveButton.click();
2793 await this.createTableInSectionSaveButton.waitFor({
2794 state: 'hidden'
2795 });
2796 logger.info(`Table "${name} ${randomNumber}" added to form`);
2797 }
2798
2799 /**
2800 * Adds a Short Text question inside the table (depth=2) that lives inside a section
2801 * inside the first form. Requires the form → section → table hierarchy to be visible.
2802 * @param {string} title - Base question title (randomNumber appended automatically)
2803 */
2804 async addQuestionToForm2(title) {
2805 logger.info(
2806 `Adding question to table inside section inside form: ${title} ${randomNumber}`
2807 );
2808 await this.addBlockInTableInFormBu
… (6514 more characters not kept)
14. page_snapshot text=Codelist · 1153 chars back
253: - generic [ref=f18e492]:
254: - complementary [ref=f18e493]
255: - heading "Questions" [level=5] [ref=f18e499]
256: - generic [ref=f18e500]: "8"
257: - option "Codelist" [ref=f18e502] [cursor=pointer]:
258: - generic [ref=f18e503]:
259: - complementary [ref=f18e504]
260: - heading "Codelist" [level=5] [ref=f18e510]
261: - generic [ref=f18e511]: "2"
262: - main [ref=f18e513]:
263: - generic [ref=f18e515]:
264: - generic [ref=f18e517]:
…
302: 245 | );
303: 246 | await expect(
304: 247 | protocolPage.page.getByTestId('protocol-overlay-codelist-table')
305: 248 | ).toContainText(rs.name);
306: 249 | logger.info(`Codelist "${rs.name}" verified`);
307: 250 | });
308: 251 | }
309: 252 |
310: 253 | logger.info(`All ${userCodelists.length} codelists created`);
311: 254 | });
312: 255 |
313: 256 | test('TC-04: Create all questions from JSON', async ({ protocolPage }) => {
314: 257 | logger.info(
15. page_snapshot text=inert · 784 chars back
18: - locator resolved to <input value="" title="" data-rac="" tabindex="0" type="search" autocomplete="off" data-1p-ignore="true" placeholder="Search..." class="_field_1b5xl_258" id="react-aria2208597207-_r_12_" data-testid="protocol-table-search"/>
19: - fill("Section 1")
20: - attempting fill action
21: 2 × waiting for element to be visible, enabled and editable
22: - element is inert
23: - retrying fill action
24: - waiting 20ms
25: 2 × waiting for element to be visible, enabled and editable
26: - element is inert
27: - retrying fill action
28: - waiting 100ms
29: 97 × waiting for element to be visible, enabled and editable
30: - element is inert
31: - retrying fill action
32: - waiting 500ms
34: ```
16. search_code repo=cleopatra, text=tableSearchbox, path_prefix=e2e/pages · 97 chars back
e2e/pages/studio/protocol.page.js
191: this.tableSearchbox = this.page.getByRole('searchbox', {
17. search_code repo=cleopatra, text=protocol-table-search · 30 chars back
no match on the default branch
18. read_file repo=cleopatra, path=e2e/pages/studio/protocol.page.js, start_line=185, end_line=200 · 856 chars back
e2e/pages/studio/protocol.page.js (3398 lines), lines 185-200:
185 .getByTestId('tables-section-table')
186 .locator('td[data-column-id="name"]');
187 this.editTableNameField = this.slideoverPanel.locator('#table-name');
188 this.editTableTitleField = this.slideoverPanel.locator('#table-title');
189 this.editTableSaveButton = this.slideoverPanel.getByRole('button', {
190 name: 'Save'
191 });
192 this.deleteTableConfirmButton = this.page.getByRole('button', {
193 name: 'Delete Table'
194 });
195 // For adding questions to a table via the "Add block in this table" button
196 this.addBlockInTableButton = this.page.getByRole('button', {
197 name: 'Add block in this table'
198 });
199 this.createSlideoverCategorySelect = this.page.getByTestId(
200 'create-slideover-category'
19. search_code repo=cleopatra, text=sections-section-table · 1386 chars back
e2e/knowledge/studio.md
120: Each tab's search box has its own testId: `protocol-overlay-codelist-table-search`, `questions-section-table-search`, `tables-section-table-search`, `sections-section-table-search`, `protocol-overlay-
e2e/pages/studio/protocol.page.js
303: '[data-testid^="sections-section-table-row-menu-"]'
352: this.sectionsSectionTable = this.page.getByTestId('sections-section-table');
360: '[data-testid="sections-section-table"] tr[data-depth="1"]'
379: '[data-testid^="sections-section-table-row-menu-"]'
apps/sense/src/modules/studio-2/components/sections/sections-section-content.tsx
433: testId={`sections-section-table-row-menu-${row.id}`}
573: testId="sections-section-table-search"
593: data-testid="sections-section-table"
616: testId="sections-section-table"
e2e/tests/studio/createAllAddToVisit.spec.js
73: protocolPage.page.getByTestId('sections-section-table')
224: protocolPage.page.getByTestId('sections-section-table')
230: protocolPage.page.getByTestId('sections-section-table')
e2e/tests/studio/createProtocolFromJson.spec.js
162: protocolPage.page.getByTestId('sections-section-table')
175: protocolPage.page.getByTestId('sections-section-table')
187: protocolPage.page.getByTestId('sections-section-table').locator(`tr:has-text("${tableTitle}")`)
615: // protocolPage.page.getByTestId('sections-section-table')
20. read_file repo=cleopatra, path=e2e/knowledge/studio.md, start_line=105, end_line=140 · 3037 chars back
e2e/knowledge/studio.md (161 lines), lines 105-140:
105 | Sections / Tables / Forms | children | table inside a section inside a form | — | — | — |
106
107 Add-block buttons are matched by `aria-label` and **must be depth-scoped** in the forms table, because section rows and form rows share the label `Add block in this form`.
108
109 The expand chevron is `icon-chevron-right` and flips to `chevron-down` once open, so its presence is how you tell a collapsed row from an expanded one.
110
111 ## Adding a form to a visit needs a navigate-away-and-back
112
113 Two separate quirks in one flow (`protocol.page.js:2524-2560`):
114
115 - Success is the **slideover closing** (20 s), not a toast.
116 - A details panel auto-opens afterwards via `onRowCreated` and must be dismissed with `Escape`.
117 - **The visit row's expanded-children query is not refetched after the mutation**, so the new form is simply not in the table. The fix is to navigate to another sidebar section and back, which resets the visits table to
118
119 Also note that adding a **table** from a listing is a single click — `TableList` adds on select, with no `Add Block` step — whereas forms and sections need `icon-more` → `Add Block`, and that dropdown renders asynchronou
120
121 ## Rebuilding a protocol from JSON: what the mapper silently drops
122
123 `createProtocolFromJson.spec.js` rebuilds `E2E Test Protocol` from `pages/studioData/e2e_test_protocol_export.json` through the UI. Two gaps are silent by const
… (1537 more characters not kept)
21. search_code repo=cleopatra, text=tableSearchbox = · 97 chars back
e2e/pages/studio/protocol.page.js
191: this.tableSearchbox = this.page.getByRole('searchbox', {
22. blame repo=cleopatra, path=e2e/pages/studio/protocol.page.js, start_line=189, end_line=196 · 519 chars back
lines 189-190: 9595e30aa 2026-11-11T02:36 asatish: e2e: find toasts by the react-aria markup, not role="status" (#16634)
lines 191-193: b49a46bf0 2026-05-06T13:29 pranitmahajan: [E2E]New tests for code list in studio 2.0 (#12758)
lines 194-194: cbfa702a7 2026-04-09T04:25 pranitmahajan: [E2E] Update studio tests (#12237)
lines 195-195: df8266441 2025-07-24T17:14 Preetham-Buddhi: [E2E] Preview Nodes Tests (#8863)
lines 196-196: 63c357f7c 2025-08-07T15:45 pranitmahajan: [E2E] Fix crf printing and studio tests (#9006)
23. search_code repo=cleopatra, text=tableSearchbox · 826 chars back
e2e/knowledge/studio.md
120: Each tab's search box has its own testId: `protocol-overlay-codelist-table-search`, `questions-section-table-search`, `tables-section-table-search`, `sections-section-table-search`, `protocol-overlay-
e2e/pages/studio/protocol.page.js
191: this.tableSearchbox = this.page.getByRole('searchbox', {
e2e/tests/studio/form.spec.js
37: await protocolPage.tableSearchbox.nth(0).fill(FORM_NAME);
39: await protocolPage.tableSearchbox.nth(0).fill('');
e2e/tests/studio/questions.spec.js
49: await protocolPage.tableSearchbox.nth(0).fill(QUESTION_NAME);
53: await protocolPage.tableSearchbox.nth(0).fill('');
e2e/tests/studio/table.spec.js
45: await protocolPage.tableSearchbox.nth(0).fill(TABLE_NAME);
e2e/tests/studio/section.spec.js
45: await protocolPage.tableSearchbox.nth(0).fill('');
24. commits repo=cleopatra, path=apps/sense/src/modules/studio-2, since=2026-11-04T00:00:00Z, branch=production · 1398 chars back
34724d582 2026-11-15T14:50 tilda-gitbot[bot]: feat(sense): superseded auto queries read-only and Studio inherited auto queries (ENG-7994) (#16828)
cb4ac9367 2026-11-10T11:03 tilda-gitbot[bot]: feat(sense): show explicit visit anchor on SoE, visits page and scheduler (ENG-3096) (#16604)
401820fd7 2026-11-06T19:10 mmukkama: [Cherry-pick] feat(execution): send and read choice answers as a list (ENG-8210) (#16268) (#16581)
844487088 2026-11-05T15:04 tilda-gitbot[bot]: Studio edit-mode Disable option + hide disabled objects in visit execution (#16502)
ac74813fa 2026-11-05T10:15 sanchitmishra08: [Cherry-pick] Add explicit visit anchors UI (ENG-7313) (#16422)
d40c7c254 2026-11-04T20:08 danherberttilda: [Cherry-pick] Studio quiz Results settings, correct answers and Pass to continue to production (ENG-7013, ENG-7014, ENG-7951) (#16505)
287018aa1 2026-11-04T18:22 avdkishore: [Cherry-pick] Gate studio graph node delete on backend delete locks (#16156) to production (#16501)
b0345f526 2026-11-04T15:31 danherberttilda: [Cherry-pick] Update the browser URL when a training opens in Studio or the training app (ENG-8260) to production (#16494)
9c4053e4c 2026-11-04T07:45 taylorfutral: [Production] Revert the ENG-8052 doc-review picker change (#16143) (#16451)
c07546954 2026-11-04T05:15 taylorfutral: [Cherry-pick] Trainings module updates to production (Studio editor changes excluded) (#16448)
25. commits repo=cleopatra, path=apps/sense/src/modules/studio-2, since=2026-11-04T00:00:00Z · 2578 chars back
006c0c397 2026-11-16T20:30 danherberttilda: Rename auto-query copy to the standard term edit checks (#16873)
fc32eb136 2026-11-16T15:22 gedi-tilda: Name the Studio create dialogs' primary button after the object (#16869)
8c725c873 2026-11-16T15:07 gedi-tilda: Inset the Schedule of Events 16px like the other Studio list pages (#16867)
a9c29596b 2026-11-16T14:55 sanchitmishra08: feat(studio): show auto queries in the published protocol view (ENG-8242) (#16839)
f3843c8c8 2026-11-16T14:24 sanchitmishra08: studio: show where a question is used and mark rules whose choices no longer exist (ENG-6755) (#16473)
1c4efe475 2026-11-16T14:13 danherberttilda: [Remove Feature Toggle] Studio: remove the Studio UI Update feature flag and the name-follows-title gate (ENG-8778, part 2) (#16813)
49d9c02e3 2026-11-16T13:57 arzatskis: Save every table's column layout under its definition and require definitions for stateful tables (#16850)
3ec3dfd93 2026-11-16T12:56 gedi-tilda: Scroll Studio object tables like DataTable, inside the page padding (#16864)
d551a5bd0 2026-11-16T06:23 poojalodhi: Show object counts in the Global Form sidebar (ENG-4808) (#16800)
25e885202 2026-11-15T01:23 nkommuri: feat(sense): superseded auto queries read-only and Studio inherited auto queries (ENG-7994) (#16819)
cdea09adb 2026-11-13T22:49 danherberttilda: [Remove Feature Toggle] Studio: use the updated UI everywhere and delete the old legacy code path (ENG-8778, part 1) (#16812)
a3055c326 2026-11-13T11:31 poojalodhi:
… (1078 more characters not kept)
26. commit_diff repo=cleopatra, sha=cb4ac9367 · 5318 chars back
cb4ac9367 2026-11-10T11:03 tilda-gitbot[bot]: feat(sense): show explicit visit anchor on SoE, visits page and scheduler (ENG-3096) (#16604)
16 files changed: apps/sense/src/components/scheduler-modal/appointment-fields.tsx, apps/sense/src/components/study-protocol-modal/study-protocol-modal.tsx, apps/sense/src/modules/studies/components/visit-list/visit-list.tsx, apps/sense/src/modules/studies/components/visit-matrix/useVisitItemActions.ts, apps/sense/src/modules/studies/components/visit-matrix/useVisitMenuItem.ts, apps/sense/src/modules/studies/components/visit-matrix/visit-item-tooltip.tsx, apps/sense/src/modules/studies/routes/studies/study/protocolv2.tsx, apps/sense/src/modules/studio-2/components/schedule-of-events/schedule-of-events.tsx, apps/sense/src/modules/studio-2/components/schedule-of-events/use-activity-drag.ts, apps/sense/src/modules/studio-2/components/schedule-of-events/visit-column.tsx, packages/api/generated/data-contracts/data-contracts.ts, packages/common/components/study-protocol/study-protocol.tsx, packages/common/hooks/useAppointmentFields.ts, packages/common/utils/index.ts, packages/common/utils/visit-anchor.test.ts, packages/common/utils/visit-anchor.ts
--- apps/sense/src/components/scheduler-modal/appointment-fields.tsx
@@ -144,6 +144,17 @@ const AutomaticAppointmentInternal: React.FC<
{activityGraph.data?.visit?.title}
</div>
</FormField>
+
+ {fields?.anchorVisitName && (
+ <FormField label="Anchore
… (3818 more characters not kept)
27. search_code repo=cleopatra, text=protocol-table, path_prefix=apps/sense/src · 229 chars back
apps/sense/src/modules/studio/routes/protocol.tsx
531: testId="protocol-table"
apps/sense/src/modules/studio-2/components/tables/tables-section-content.tsx
94: id: 'protocol-tables',
614: tableTestId="protocol-tables-table"
28. read_file repo=cleopatra, path=e2e/knowledge/studio.md, start_line=1, end_line=60 · 3966 chars back
e2e/knowledge/studio.md (161 lines), lines 1-60:
1 # Studio — Module Knowledge Base
2
3 > **Purpose:** Studio 2.0 protocol authoring (the tabular protocol overlay: codelists, questions, tables, sections, forms, visits and activation rule chains), plus what remains of Studio 1.0. Read this before touching `t
4 >
5 > **Last updated:** 2026-09-17 | Written for TA-138 from `tests/studioConfig/` (7 live specs), `tests/studioConfig-1.0/questions.spec.js` and `pages/studio/protocol.page.js` at `origin/main` 5c06cecb47. **Cluster observe
6
7 ---
8
9 ## Table of Contents
10
11 - [Studio 1.0 vs 2.0, and which is still tested](#studio-10-vs-20-and-which-is-still-tested)
12 - [Vocabulary: the export's names are not the UI's names](#vocabulary-the-exports-names-are-not-the-uis-names)
13 - [Every spec in a file shares one browser tab](#every-spec-in-a-file-shares-one-browser-tab)
14 - [Names carry a per-module timestamp](#names-carry-a-per-module-timestamp)
15 - [The tables go stale after a save](#the-tables-go-stale-after-a-save)
16 - [Rows, depth and the row-menu UUID](#rows-depth-and-the-row-menu-uuid)
17 - [Adding a form to a visit needs a navigate-away-and-back](#adding-a-form-to-a-visit-needs-a-navigate-away-and-back)
18 - [Rebuilding a protocol from JSON: what the mapper silently drops](#rebuilding-a-protocol-from-json-what-the-mapper-silently-drops)
19 - [Activation rule chains](#activation-rule-chains)
20 - [Duplicate naming differs between Studio 1 and Studio 2](#duplicate-na
… (2466 more characters not kept)
What it was shown (build 860, 44.3 KB)
The run
{
"job": "e2e-tests-production",
"build": 860,
"kind": "ui-tests",
"result": "UNSTABLE",
"started": "2026-11-16T20:36:09Z",
"tests": 600,
"failed": 18,
"test_commit": "ee3a2cbd4",
"branch": "production",
"cluster_prepared": {
"mode": "verify",
"result": "ready",
"product_commit": "a654678"
}
}
services
[
"docsvc",
"execsvc",
"patientsvc",
"schedsvc",
"enrollsvc",
"studiosvc",
"finsvc",
"notifsvc",
"dslsvc",
"authz",
"dashQL",
"dashRsvc",
"regsvc",
"advpsvc",
"workplansvc",
"datasvc",
"payoutsvc",
"tusker",
"authsvc",
"eventsvc",
"ehrsvc",
"docproc",
"studioai",
"sense"
]
The cluster during the run
{
"cluster": "automation",
"findings_opened_around_the_run": [
{
"kind": "error.novel",
"severity": "critical",
"subject": "exportsvc",
"title": "exportsvc: a new error shape, 157\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)",
"opened_minutes_after_run_start": 81
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "exportsvc",
"title": "exportsvc: a new error shape, 14\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)",
"opened_minutes_after_run_start": 97
},
{
"kind": "error.novel",
"severity": "warning",
"subject": "exportsvc",
"title": "exportsvc: a new error shape, 7\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)",
"opened_minutes_after_run_start": 133
}
],
"long_standing_findings_left_out": 16,
"pods_in_trouble_during_the_run": [],
"deploys_during_the_run": []
}
The group
{
"tests": 1,
"suite": "createProtocolFromJson",
"members": [
{
"test": "createProtocolFromJson::TC-06: Create all sections with nodes and flags from JSON",
"pattern": "regression",
"meaning": "failed the last 6 runs in a row after passing 18 of the 18 before: something changed, so it is not flaky",
"newest_first": "F F F F F F P P P P P P P P P P P P P P P P P P",
"failing_in_a_row": 6,
"this_error_in_a_row": 6,
"this_error_since_build": 855,
"build_before_this_error": 854,
"failing_since_build": 855,
"last_passed_build": 854
}
]
}
The failure
{
"test": "createProtocolFromJson::TC-06: Create all sections with nodes and flags from JSON",
"status": "error",
"message": "locator.fill: Timeout 50000ms exceeded.",
"traceback_tail": " 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.fill: Timeout 50000ms exceeded.\n Call log:\n - waiting for getByRole('searchbox', { name: 'Search...' }).first()\n - locator resolved to <input value=\"\" title=\"\" data-rac=\"\" tabindex=\"0\" type=\"search\" autocomplete=\"off\" data-1p-ignore=\"true\" placeholder=\"Search...\" class=\"_field_1b5xl_258\" id=\"react-aria530774438-_r_12_\" data-testid=\"protocol-table-search\"/>\n - fill(\"Section 1\")\n - attempting fill action\n 2 \u00d7 waiting for element to be visible, enabled and editable\n - element is inert\n - retrying fill action\n - waiting 20ms\n 2 \u00d7 waiting for element to be visible, enabled and editable\n - element is inert\n - retrying fill action\n - waiting 100ms\n 92 \u00d7 waiting for element to be visible, enabled and editable\n - element is inert\n - retrying fill action\n - waiting 500ms\n\n\n 343 |\n 344 | // Filter first \u2014 the table paginates at 30 rows.\n > 345 | await protocolPage.tableSearchbox.nth(0).fill(section.name);\n | ^\n 346 | await expect(\n 347 | protocolPage.page.locator(`tr:has-text(\"${section.name}\")`)\n 348 | ).toBeVisible();\n at /home/jenkins/agent/workspace/ui-tests-production/e2e/tests/studioConfig/createProtocolFromJson.spec.js:345:50\n at /home/jenkins/agent/workspace/ui-tests-production/e2e/tests/studioConfig/createProtocolFromJson.spec.js:337:7\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/studioConfig-createProtoco-0a69a-h-nodes-and-flags-from-JSON-main-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/studioConfig-createProtoco-0a69a-h-nodes-and-flags-from-JSON-main-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/studioConfig-createProtoco-0a69a-h-nodes-and-flags-from-JSON-main-retry1/trace.zip\n Usage:\n\n npx playwright show-trace reports/studioConfig-createProtoco-0a69a-h-nodes-and-flags-from-JSON-main-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": "e2e7e573b27ea45e8923e74172f7a820",
"method": "POST",
"path": "/api/studio/forms",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea45e8923e7486b7d4af2",
"method": "GET",
"path": "/api/studio/protocols/020cd270-8cea-4b46-932f-e1d8dbe402d8/objectCounts",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea45e8923e74b61804734",
"method": "GET",
"path": "/api/studio/forms",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea45e8923e749b291f5ed",
"method": "GET",
"path": "/api/studio/forms",
"status": "200",
"error": "None"
},
{
"trace_id": "e2e7e573b27ea45e8923e74e5b9ab7b5",
"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/tests/studioConfig/createProtocolFromJson.spec.js:345",
"code_frame": " 343 |\n 344 | // Filter first \u2014 the table paginates at 30 rows.\n> 345 | await protocolPage.tableSearchbox.nth(0).fill(section.name);\n | ^\n 346 | await expect(\n 347 | protocolPage.page.locator(`tr:has-text(\"${section.name}\")`)\n 348 | ).toBeVisible();",
"playwright_call_log": [
"- waiting for getByRole('searchbox', { name: 'Search...' }).first()",
"- locator resolved to <input value=\"\" title=\"\" data-rac=\"\" tabindex=\"0\" type=\"search\" autocomplete=\"off\" data-1p-ignore=\"true\" placeholder=\"Search...\" class=\"_field_1b5xl_258\" id=\"react-aria530774438-",
"- fill(\"Section 1\")",
"- attempting fill action",
"- element is inert",
"- retrying fill action",
"- waiting 20ms",
"- element is inert",
"- retrying fill action",
"- waiting 100ms",
"- element is inert",
"- retrying fill action",
"- waiting 500ms"
],
"attempts": {
"errors": [
"TimeoutError: locator.fill: Timeout 50000ms exceeded.",
"TimeoutError: locator.fill: Timeout 50000ms exceeded."
],
"note": "every attempt failed the same way: deterministic, not a race"
}
}
The test's history
{
"pattern": "regression",
"meaning": "failed the last 6 runs in a row after passing 18 of the 18 before: something changed, so it is not flaky",
"newest_first": "F F F F F F P P P P P P P P P P P P P P P P P P",
"failing_in_a_row": 6,
"this_error_in_a_row": 6,
"this_error_since_build": 855,
"build_before_this_error": 854
}
other_branch
{
"branch": "master",
"job": "e2e-tests-master",
"build": 881,
"these_tests_there": {
"skipped": 1
},
"reading": "fails on production; on master (`e2e-tests-master` build 881) 0 of 1 fail the same way, 0 pass."
}
The test's source
{
"repo": "tildabio/cleopatra",
"at": "ee3a2cbd4",
"path": "e2e/tests/studioConfig/createProtocolFromJson.spec.js",
"from_line": 329,
"failing_line": 329,
"code": "329> test('TC-06: Create all sections with nodes and flags from JSON', async ({\n330 protocolPage\n331 }) => {\n332 logger.info(`Creating ${allSections.length} sections from JSON`);\n333 await protocolPage.navigateToStudio2Section('sections');\n334 \n335 for (const section of allSections) {\n336 if (section.name === 'default') continue;\n337 await test.step(`Create section: ${section.name}`, async () => {\n338 logger.info(`Creating section: ${section.name} (${section.title})`);\n339 await protocolPage.createSectionFromJson(\n340 section.name,\n341 section.title || section.name\n342 );\n343 \n344 // Filter first \u2014 the table paginates at 30 rows.\n345 await protocolPage.tableSearchbox.nth(0).fill(section.name);\n346 await expect(\n347 protocolPage.page.locator(`tr:has-text(\"${section.name}\")`)\n348 ).toBeVisible();\n349 \n350 const nodes = section.objects ?? [];\n351 if (nodes.length > 0) {\n352 await protocolPage.expandSectionByName(section.name);\n353 \n354 for (const node of nodes) {\n355 await addNodeToSection(protocolPage, section.name, node);\n356 }\n357 }\n358 \n359 // Clear the filter after finishing this section\n360 await protocolPage.tableSearchbox.nth(0).fill('');\n361 });\n362 }\n363 \n364 logger.info(`All ${allSections.length} sections created with nodes`);\n365 });\n366 \n367 test('TC-07: Create all forms from JSON', async ({ protocolPage }) => {\n368 logger.info(`Creating ${allForms.length} forms from JSON`);\n369 await protocolPage.navigateToStudio2Section('forms');\n370 \n371 for (const form of allForms) {\n372 await test.step(`Create form: ${form.name}`, async () => {\n373 logger.info(`Creating form: ${form.name}`);\n374 await protocolPage.createFormFromJson(\n375 form.name,\n376 form.title || form.name\n377 );\n378 // Search before asserting \u2014 the table paginates at 30 rows.\n379 await protocolPage.tableSearchbox.nth(1).fill(form.name);\n380 await expect(protocolPage.formsNameColumn.nth(0)).toContainText(\n381 form.name\n382 );\n383 await protocolPage.tableSearchbox.nth(1).fill('');\n384 logger.info(`Form \"${form.name}\" verified in table`);\n385 });\n386 }\n387 \n388 logger.info(`All ${allForms.length} forms created`);\n389 });\n390 \n391 test('TC-08: Create all visits from JSON', async ({ protocolPage }) => {\n392 logger.info(`Creating ${visitsToCreate.length} visits from JSON`);\n393 await protocolPage.navigateToStudio2Section('visits');\n394 \n395 for (const visit of visitsToCreate) {\n396 await test.step(`Create visit: ${visit.title}`, async () => {\n397 logger.info(\n398 `Creating visit: ${visit.title} (period: ${visit.studyPeriod})`\n399 );"
}
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/studioConfig/createProtocolFromJson.spec.js >> Studio 2 - Study Configuration >> TC-06: Create all sections with nodes and flags from JSON\n- Location: tests/studioConfig/createProtocolFromJson.spec.js:329:3\n\n# Error details\n\n```\nTimeoutError: locator.fill: Timeout 50000ms exceeded.\nCall log:\n - waiting for getByRole('searchbox', { name: 'Search...' }).first()\n - locator resolved to <input value=\"\" title=\"\" data-rac=\"\" tabindex=\"0\" type=\"search\" autocomplete=\"off\" data-1p-ignore=\"true\" placeholder=\"Search...\" class=\"_field_1b5xl_258\" id=\"react-aria2208597207-_r_12_\" data-te\n - fill(\"Section 1\")\n - attempting fill action\n 2 \u00d7 waiting for element to be visible, enabled and editable\n - element is inert\n - retrying fill action\n - waiting 20ms\n 2 \u00d7 waiting for element to be visible, enabled and editable\n - element is inert\n - retrying fill action\n - waiting 100ms\n 97 \u00d7 waiting for element to be visible, enabled and editable\n - element is inert\n - retrying fill action\n - waiting 500ms\n\n```\n\n# Page snapshot\n\n```yaml\n- generic [ref=f18e1]:\n - generic [ref=f18e2]:\n \u2026\n - columnheader \"Status\" [ref=f18e267] [cursor=pointer]\n \u2026\n - dialog \"dialog\" [ref=f18e378]:\n \u2026\n - heading \"Visits\" [level=5] [ref=f18e455]\n \u2026\n - heading \"Forms\" [level=5] [ref=f18e466]\n \u2026\n - heading \"Sections\" [level=5] [ref=f18e477]\n \u2026\n - heading \"Tables\" [level=5] [ref=f18e488]\n \u2026\n - heading \"Questions\" [level=5] [ref=f18e499]\n \u2026\n - heading \"Codelist\" [level=5] [ref=f18e510]\n \u2026\n - heading \"Section 1\" [level=5] [ref=f18e578]\n \u2026\n | ^ TimeoutError: locator.fill: Timeout 50000ms exceeded."
}
Commits in the window
{
"between": "build 854 (last pass, started 2026-11-09T20:52:56Z) and build 855 (first failure of the streak, started 2026-11-10T21:25:00Z)",
"test_repo": {
"repo": "tildabio/cleopatra",
"range": "2026-11-09T20:52 to 2026-11-10T21:25 UTC",
"note": "by date: the runs did not record their commits, so these are the commits to the files involved between the last passing run and the first failing one",
"commits": [
{
"sha": "11c6b32b4",
"subject": "[E2E] changes folder structure and run to run module wise (#16639)",
"login": "Harsh-Tilda",
"name": "Harsh Agarwal",
"date": "2026-11-10T11:42",
"touches": [
"e2e/tests/studioConfig/createProtocolFromJson.spec.js"
]
}
]
}
}
The issue as the agent wrote it
**Fix is in:** the automation suite (e2e): the test is wrong.
**What failed:** `locator.fill: Timeout 50000ms exceeded.`
**On screen when it failed:** The Studio overlay is open on the Sections tab and shows a "Section 1" row with no children; the protocol list underneath is inert.

**The test is wrong**, confidence medium. Found in `e2e-tests-production` build 860: [run in X-ray](https://xray.tilda.pizza/tests/run/e2e-tests-production/860).
**Root cause in X-ray:** [the verdict, each test's history and the evidence the agent read](https://xray.tilda.pizza/test-triage/87a7694e35e3ef)
**Branches:** fails on production; on master (`e2e-tests-master` build 881) 0 of 1 fail the same way, 0 pass.
TC-06 fails at createProtocolFromJson.spec.js:345. `tableSearchbox.nth(0)` resolves to `data-testid="protocol-table-search"`, and Playwright reports it as "element is inert" for the full 50s on both attempts.
`protocol-table-search` belongs to the protocol list, not the Sections tab. The Sections tab has its own `sections-section-table-search` (sections-section-content.tsx:573). The snapshot shows the Studio overlay open as a `dialog` with Sections and "Section 1" inside it, so the list behind it is inert.
The section itself was created: the "Section 1" row is in the table, so the earlier steps passed. `getByRole('searchbox', { name: 'Search...' })` plus an index is order-dependent and now matches the background list first.
I did not find what changed in build 855 to bring that search into the DOM. Commit 11c6b32b4 only moved the spec folder, and I did not see a logic change in it. Master skipped this test in build 881, so there is no comparison. Look at that next, since the fix below does not explain why 854 passed.
The exportsvc cache errors are unrelated: no service errors were logged under these requests.
**Assigned to:** [email protected] (last changed createProtocolFromJson.spec.js (9fcacf17a)).
**Proposed fix:**
Stop picking the search box by index. In the spec, replace `protocolPage.tableSearchbox.nth(0)` at lines 345 and 360 with a locator scoped to the Sections tab, for example `protocolPage.page.getByTestId('sections-section-table-search')`, or `protocolPage.page.getByRole('dialog').getByRole('searchbox')`. Apply the same change to the other tabs, using `forms-…-table-search` and the matching test ids, rather than `nth(1)`.
**Failing tests (1):**
- [createProtocolFromJson::TC-06: Create all sections with nodes and flags from JSON](https://xray.tilda.pizza/tests/case/563315b10f041558) (failing since build 855)
**Error:**
```
locator.fill: Timeout 50000ms exceeded.
```
+++ Agent notes
Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 28 lookups in the code and its history.
Group `triage:87a7694e35e3ef` (one issue per root cause).
A wrong verdict can be corrected on the run page in X-ray.
+++