Documents TMF CRO Page › Update Categorisation for Document
documentsCRO::Update Categorisation for Document
E2E test in suite
documentsCRO ·
first seen 2026-08-11 20:33:04 UTC · last seen 2026-11-17 01:35:54 UTC
· ← all runs
failing
Linear issues
| Issue | State | What it means now | Linked | |
|---|---|---|---|---|
| ENG-8875 [Test failure] 'Choose' button locator also matches the document viewer's 'Choose File' input (2 tests) | Completed · Pranit Mahajan | ENG-8875 is Completed; no run has started since | 2026-11-16 12:19:31 UTC by triage-agent (agent) · for e2e-tests-master The test is wrong |
e2e-tests-master — its newest 11 runs, oldest first
What changed when it broke on e2e-tests-master
reading the deploy trail and the test repo…
e2e-tests-production — its newest 2 runs, oldest first
Each distinct failure it has had (3)
f3624d093a84
in 0 runs · first
e2e-tests-master jenkins-881
(2026-11-16 08:54:38 UTC) · last
e2e-tests-master jenkins-882
(2026-11-17 01:35:54 UTC)
why locator.waitFor: Error: strict mode violation: getByRole('button', { name: 'Choose' }) resolved to 2 elements:
traceback
[tmf] › tests/tmf/documentsCRO.spec.js:64:3 › Documents TMF CRO Page › Update Categorisation for Document
Error: locator.waitFor: Error: strict mode violation: getByRole('button', { name: 'Choose' }) resolved to 2 elements:
1) <input multiple type="file" tabindex="-1" accept="application/pdf,.pdf"/> aka getByRole('button', { name: 'Choose File' })
2) <button data-rac="" tabindex="0" type="submit" data-size="normal" data-layout="inline" data-theme="regular" data-variant="primary" class="_button_1acvg_1" form="location-picker-form" data-react-aria-pressable="true" id="react-aria3126421115-_r_pn_" data-journey-label="Choose location" data-journey-action="files.location-picker.choose" data-journey-value="01.01.01 Trial Master File Plan">…</button> aka getByRole('button', { name: 'Choose', exact: true })
Call log:
- waiting for getByRole('button', { name: 'Choose' }) to be visible
at pages/tmf/documentsCRO.page.js:228
226 |
227 | // Wait for and click choose button
> 228 | await this.chooseButton.waitFor({ state: 'visible', timeout: 5000 });
| ^
229 | await this.chooseButton.click();
230 | await logger.info('eTMF Document Location Selected');
231 | }
at DocumentsCROPage.selecteTMFDocumentLocation (/home/jenkins/agent/workspace/ui-tests-master/e2e/pages/tmf/documentsCRO.page.js:228:29)
at DocumentsCROPage.categorizeDocument (/home/jenkins/agent/workspace/ui-tests-master/e2e/pages/tmf/documentsCRO.page.js:342:5)
at /home/jenkins/agent/workspace/ui-tests-master/e2e/tests/tmf/documentsCRO.spec.js:66:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
reports/documentsCRO-Documents-TMF-b61aa-Categorisation-for-Document-tmf/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Error Context: reports/documentsCRO-Documents-TMF-b61aa-Categorisation-for-Document-tmf/error-context.md
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.waitFor: Error: strict mode violation: getByRole('button', { name: 'Choose' }) resolved to 2 elements:
1) <input multiple type="file" tabindex="-1" accept="application/pdf,.pdf"/> aka getByRole('button', { name: 'Choose File' })
2) <button data-rac="" tabindex="0" type="submit" data-size="normal" data-layout="inline" data-theme="regular" data-variant="primary" class="_button_1acvg_1" form="location-picker-form" data-react-aria-pressable="true" id="react-aria1809687085-_r_t1_" data-journey-label="Choose location" data-journey-action="files.location-picker.choose" data-journey-value="01.01.01 Trial Master File Plan">…</button> aka getByRole('button', { name: 'Choose', exact: true })
Call log:
- waiting for getByRole('button', { name: 'Choose' }) to be visible
at pages/tmf/documentsCRO.page.js:228
226 |
227 | // Wait for and click choose button
> 228 | await this.chooseButton.waitFor({ state: 'visible', timeout: 5000 });
| ^
229 | await this.chooseButton.click();
230 | await logger.info('eTMF Document Location Selected');
231 | }
at DocumentsCROPage.selecteTMFDocumentLocation (/home/jenkins/agent/workspace/ui-tests-master/e2e/pages/tmf/documentsCRO.page.js:228:29)
at DocumentsCROPage.categorizeDocument (/home/jenkins/agent/workspace/ui-tests-master/e2e/pages/tmf/documentsCRO.page.js:342:5)
at /home/jenkins/agent/workspace/ui-tests-master/e2e/tests/tmf/documentsCRO.spec.js:66:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
reports/documentsCRO-Documents-TMF-b61aa-Categorisation-for-Document-tmf-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Error Context: reports/documentsCRO-Documents-TMF-b61aa-Categorisation-for-Document-tmf-retry1/error-context.md
attachment #4: trace (application/zip) ─────────────────────────────────────────────────────────
reports/documentsCRO-Documents-TMF-b61aa-Categorisation-for-Document-tmf-retry1/trace.zip
Usage:
yarn playwright show-trace reports/documentsCRO-Documents-TMF-b61aa-Categorisation-for-Document-tmf-retry1/trace.zip
────────────────────────────────────────────────────────────────────────────────────────────────
7ebaa31da947
in 0 runs · first
e2e-tests-master jenkins-852
(2026-10-28 01:31:49 UTC) · last
e2e-tests-master jenkins-852
(2026-10-28 01:31:49 UTC)
why locator.click: Timeout 50000ms exceeded.
traceback
[main] › tests/documents/documentsCRO.spec.js:61:3 › Documents TMF CRO Page › Update Categorisation for Document
TimeoutError: locator.click: Timeout 50000ms exceeded.
Call log:
- waiting for getByTestId('files-staging-manual-tab-tab-manual')
at pages/documents/documentsCRO.page.js:292
290 | await this.selectDocTabs('staging');
291 | //await this.selectStagingSubTab('ai-review');
> 292 | await this.selectManualReviewTab.click();
| ^
293 | const documentElement = await this.getTMFDocumentInTable(fileName);
294 | await documentElement.click();
295 | await logger.info(`Opened document: ${fileName}`);
at DocumentsCROPage.categorizeDocument (/tests/pages/documents/documentsCRO.page.js:292:38)
at /tests/tests/documents/documentsCRO.spec.js:63:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
reports/documents-documentsCRO-Doc-8c798-Categorisation-for-Document-main/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Error Context: reports/documents-documentsCRO-Doc-8c798-Categorisation-for-Document-main/error-context.md
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 50000ms exceeded.
Call log:
- waiting for getByTestId('files-staging-manual-tab-tab-manual')
at pages/documents/documentsCRO.page.js:292
290 | await this.selectDocTabs('staging');
291 | //await this.selectStagingSubTab('ai-review');
> 292 | await this.selectManualReviewTab.click();
| ^
293 | const documentElement = await this.getTMFDocumentInTable(fileName);
294 | await documentElement.click();
295 | await logger.info(`Opened document: ${fileName}`);
at DocumentsCROPage.categorizeDocument (/tests/pages/documents/documentsCRO.page.js:292:38)
at /tests/tests/documents/documentsCRO.spec.js:63:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
reports/documents-documentsCRO-Doc-8c798-Categorisation-for-Document-main-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Error Context: reports/documents-documentsCRO-Doc-8c798-Categorisation-for-Document-main-retry1/error-context.md
729d1652f13a
in 0 runs · first
e2e-tests-master jenkins-850
(2026-10-27 01:32:20 UTC) · last
e2e-tests-master jenkins-850
(2026-10-27 01:32:20 UTC)
why page.waitForEvent: Timeout 20000ms exceeded while waiting for event "filechooser"
traceback
[main] › tests/documents/documentsCRO.spec.js:61:3 › Documents TMF CRO Page › Update Categorisation for Document
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForEvent: Timeout 20000ms exceeded while waiting for event "filechooser"
=========================== logs ===========================
waiting for event "filechooser"
============================================================
at pages/base.page.js:1366
1364 | }
1365 |
> 1366 | const fileChooserPromise = this.page.waitForEvent('filechooser', {
| ^
1367 | timeout: 20000
1368 | });
1369 | await this.uploadFileButton.click();
at DocumentsCROPage.upload (/tests/pages/base.page.js:1366:42)
at DocumentsCROPage.eTMFuploadFile (/tests/pages/documents/documentsCRO.page.js:124:33)
at /tests/tests/documents/documentsCRO.spec.js:62:36
Error: locator.click: Test ended.
Call log:
- waiting for getByRole('button', { name: 'Upload' }).last()
- locator resolved to <button data-rac="" tabindex="0" type="button" data-size="normal" data-layout="inline" data-theme="regular" aria-haspopup="true" aria-expanded="false" data-variant="primary" class="_button_1456p_1" data-journey-kind="open" data-journey-label="Upload" id="react-aria8352803834-_r_3b_" data-react-aria-pressable="true" data-journey-action="files.upload">…</button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
at pages/base.page.js:1369
1367 | timeout: 20000
1368 | });
> 1369 | await this.uploadFileButton.click();
| ^
1370 |
1371 | const pickerOutcome = fileChooserPromise.then((fileChooser) => ({
1372 | kind: 'picker',
at DocumentsCROPage.upload (/tests/pages/base.page.js:1369:33)
at DocumentsCROPage.eTMFuploadFile (/tests/pages/documents/documentsCRO.page.js:124:33)
at /tests/tests/documents/documentsCRO.spec.js:62:36
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
reports/documents-documentsCRO-Doc-8c798-Categorisation-for-Document-main-retry1/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Error Context: reports/documents-documentsCRO-Doc-8c798-Categorisation-for-Document-main-retry1/error-context.md