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

‹ Test triage

[Test failure] TBUT quiz re-attempt submits with no answers; 'TBUT Quiz Result' never shows

Cause not clear confidence low · medium priority · e2e-tests-master, last seen in build 880

The verdict

Fix is in
not known yet
Issue
ENG-8858 · Completed
Owner
[email protected] (last changed base.page.js (9595e30aa))
Filed in
Ready for Development, product project, in the current cycle
Service
sense
History when filed
chronic, this error since build 803
On screen
The TBUT quiz dialog is open again with all five questions unanswered and 'This field is required.' under each; no result heading is shown.
Branches
passes on master again (build 882); still fails on production (e2e-tests-production build 860). The fix has not reached production.
On the second quiz attempt the page still shows the quiz form, with 'This field is required.' under all 5 questions. The side panel says Attempts 2 of 3 used. The test clicked Continue (it matches 'Save & Continue') without any answer registering, so no result page appeared. The first attempt worked (the fail result and 'Attempts used: 1 of 3' were verified). So the failure is the second answer pass after Retry, in visitExecStudy.page.js:4840-4844. I could not tell whether the clicks missed the re-rendered form (test) or the product cleared the answers (Sense). History is chronic with 11 failures, and this is the first run with this error. No commit in the bundle's range touches the failing files. The recent training edits (4901909b7, 450fde1f8) did not change the quiz-answering code. Next: open the trace or video for the second pass of answerQuizQuestion. Check whether the radios were clicked and then reset, or never clicked. Compare with regular.spec.js TC-07, which also failed in this run. I did not find the Sense retry handler, so I have no evidence on the product side.

Steps to reproduce

  1. Use a study on a TBUT training protocol. Make a Principal investigator training task, 'Complete <training> training for Test Pi', assigned to a user.
  2. Sign in as that Principal investigator, open the study, go to the Tasks tab and open the training task.
  3. Click Start training, then Continue past the introduction. Wait about 20 seconds on 'TBUT Training Video', then click Continue.
  4. On the quiz, pick the second option for each of the 5 questions and click Continue. Expected: 'TBUT Quiz Result' with 'You did not meet the passing' and 'Attempts used: 1 of 3'.
  5. Click Retry.
  6. Pick the first option for each of the 5 questions, waiting about 1 second between clicks, and click Continue.
  7. Expected: heading 'TBUT Quiz Result' with "Great job! You've passed the quiz." and 'Attempts used: 2 of 3'; actual: the quiz form stays open with 'This field is required.' under all 5 questions.

History of this root cause

  • filed ENG-8858 · build 880 7d ago
    Cause not clear, confidence low; 1 test; to [email protected] in Ready for Development
  • branches ENG-8858 6d ago

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.

TestHistoryNewest runReading
TBUT Training › TC-07: Verify completing training activity as PI
tbut
did not run

How the agent decided

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

What it looked up (19, in order)

1. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=4800, end_line=4880 · 4123 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 4800-4880: 4800 await this.startMeasurementButton.click(); 4801 await this.waitForTime(500); 4802 await this.startTimeButton.click(); 4803 await this.waitForTime(successFlag ? passInterval : failInterval); 4804 await this.stopTimeButton.click(); 4805 await this.verifyHeading(`${eye} Eye Assessments - measurement #${i}`); 4806 await this.markAsValidButton.click(); 4807 await this.waitForTime(1000); 4808 } 4809 } 4810 4811 async startTrainingActivity(trainingName) { 4812 await this.verifyHeading(trainingName); 4813 await this.startTrainingButton.click(); 4814 await this.waitForTime(2000); 4815 await this.continueButton.click(); 4816 await this.waitForTime(2000); 4817 } 4818 4819 async completeTrainingActivity(trainingName) { 4820 logger.info('Complete introduction page'); 4821 await this.startTrainingActivity(trainingName, 'Tear Break-Up Time (TBUT)'); 4822 await this.verifyHeading('TBUT Training Video'); 4823 await this.waitForTime(20000); 4824 await this.continueButton.click(); 4825 4826 logger.info('Answering TBUT Quiz to fail quiz'); 4827 await this.answerQuizQuestion({ successFlag: false, trainingType: 'tbut' }); 4828 await this.continueButton.click(); 4829 logger.info('Verifying TBUT Quiz Result to fail quiz'); 4830 await this.verifyHeading('TBUT Quiz Result'); 4831 await this.ver … (2623 more characters not kept)
2. page_snapshot text=Continue · 202 chars back
385: - radio "False" 386: - complementary 387: - heading "False" [level=5] 388: - paragraph: This field is required. 389: - button "Save & Continue" 390: ``` 392: # Test source
3. search_code repo=cleopatra, text=async answerQuizQuestion · 96 chars back
e2e/pages/visitExecution/visitExecStudy.page.js 4915: async answerQuizQuestion(options = {}) {
4. page_snapshot text=required · 2019 chars back
342: - heading "Subjects should blink 2 times before a measurement" [level=5] 343: - radio "Measurements should only be completed 2 mins after fluorescein application" 344: - complementary 345: - heading "Measurements should only be completed 2 mins after fluorescein application" [level=5] 346: - paragraph: This field is required. 347: - text: 2. Fluourescein should be applied to each eye only once:* 348: - radiogroup: 349: - radio "True" 350: - complementary 351: - heading "True" [level=5] 352: - radio "False" 353: - complementary 354: - heading "False" [level=5] 355: - paragraph: This field is required. 356: - text: 3. How many valid measurements are required before entering the test?* 357: - radiogroup: 358: - radio "1 measurement per eye" 359: - complementary 360: - heading "1 measurement per eye" [level=5] … 363: - heading "3 measurements per eye" [level=5] 364: - radio "5 measurements per eye" 365: - complementary 366: - heading "5 measurements per eye" [level=5] 367: - paragraph: This field is required. 368: - text: 4. What level of room lighting is required for the test?* 369: - radiogroup: 370: - radio "Outdoor lighting" 371: - complementary 372: - heading "Outdoor lighting" [level=5] … 375: - heading "Normal Indoor Office Lighting" [level=5] 376: - radio "Dim Room Lighting" 377: - complementary … (519 more characters not kept)
5. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=4880, end_line=5027 · 6680 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 4880-5027: 4880 /** 4881 * Completes a regular TRAINING activity (Intro → Video → Quiz → Documents → Results). 4882 * No eye-test step (unlike TBUT). 4883 */ 4884 async completeRegularTrainingActivity(trainingName, userName) { 4885 logger.info('Complete regular training introduction page'); 4886 await this.startTrainingActivity(trainingName); 4887 await this.verifyHeading('Video'); 4888 await this.waitForTime(20000); 4889 await this.continueButton.click(); 4890 4891 logger.info('Continuing through Documents section'); 4892 await this.reviewButton.click(); 4893 await expect( 4894 this.page.getByTestId('document-modal').getByText('template') 4895 ).toBeVisible(); 4896 await this.markAsReviewedButton.click(); 4897 await this.waitForTime(2000); 4898 await this.sign(userName); 4899 await this.waitForTime(5000); 4900 logger.info('Answering regular training quiz to fail once'); 4901 await this.answerQuizQuestion({ successFlag: false }); 4902 await this.saveAndContinueButton.click(); 4903 await this.verifyHeading('You did not meet the passing'); 4904 await this.retryButton.click(); 4905 await this.waitForTime(2000); 4906 4907 logger.info('Answering regular training quiz to pass'); 4908 await this.answerQuizQuestion({ successFlag: true }); 4909 await this.continueButton.click(); 4910 await this.verifyHeadin … (5180 more characters not kept)
6. commits repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, since=2026-11-01T00:00:00Z · 1117 chars back
450fde1f8 2026-11-14T15:03 Harsh-Tilda: [E2E] TA 232 own sets (#16823) 4901909b7 2026-11-13T13:41 sbadiger: [E2E]: Training test fixes (#16803) a4e9aea2b 2026-11-12T17:57 Harsh-Tilda: [E2E] TA 230 shared state (#16769) 77149f3c1 2026-11-12T15:46 tilda-gitbot[bot]: ENG-8704: Fix progress note TC-02 after dropping the page reload (#16734) f5332f92c 2026-11-11T16:15 sbadiger: [E2E]: AE fixes (#16683) fe5efbd12 2026-11-11T14:30 Harsh-Tilda: [E2E] fixes study feed and documents test (#16685) 6fa3ebc48 2026-11-11T10:44 sbadiger: [E2E]: Simplify execution (#16679) 7c21eca8d 2026-11-11T02:47 tilda-gitbot[bot]: [E2E] Subject page: open from Subjects, Tasks tab and Documents tab (ENG-8561) (#16640) 9595e30aa 2026-11-11T02:36 asatish: e2e: find toasts by the react-aria markup, not role="status" (#16634) e96aa3746 2026-11-10T16:10 poojalodhi: Remove the Studio Workflow, Controls, Triggers and Pre-screeners pages (ENG-8575) (#16629) 22bac70a0 2026-11-10T14:13 sbadiger: [E2E]: AE test and heloper fix (#16647) 11c6b32b4 2026-11-10T11:42 Harsh-Tilda: [E2E] changes folder structure and run to run module wise (#16639)
7. search_code repo=cleopatra, text=this.continueButton = · 204 chars back
e2e/pages/common/base.page.js 151: this.continueButton = page.getByRole('button', { name: 'Continue' }); e2e/pages/workplan/workPlanPage.js 136: this.continueButton = page.getByTestId('continue-btn');
8. search_code repo=cleopatra, text=single-page-activity-form · 1009 chars back
e2e/knowledge/visit-execution.md 31: - **In the browser:** a subject's visit opens as a *dialog* over `/studies/{id}/subjects/…/visits`, whose activity form is `#single-page-activity-form`, with a visit-manager toolbar (`visit-manager-ad 244: Its denominator is `ObjectSDV`'s `available` list (`modules/execution/components/object/object-sdv.tsx`): the questionnaire's direct `QuestionV2` children flagged `sdvEnabled` whose participant status e2e/pages/visitExecution/visitExecStudy.page.js 221: this.singlePageActivityForm = page.locator('#single-page-activity-form'); 497: .locator('[id="single-page-activity-form"]') 4920: '[id="single-page-activity-form"] div[class*="col-span-2"]' 4927: .locator('[id="single-page-activity-form"] div[class*=col-span-4]') apps/sense/src/modules/execution/components/questionnaire/questionnaire.tsx 1543: const formId = 'single-page-activity-form'; e2e/tests/visitExecution/edc/edcVisitSummary.spec.js 105: admin.page.locator('#single-page-activity-form')
9. commit_diff repo=cleopatra, sha=4901909b7, path=e2e/pages/visitExecution/visitExecStudy.page.js · 2184 chars back
4901909b7 2026-11-13T13:41 sbadiger: [E2E]: Training test fixes (#16803) 4 files changed: 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/pages/visitExecution/visitExecStudy.page.js @@ -180,7 +180,7 @@ export default class VisitStudiesPage extends BasePage { { exact: true } ); this.trainingPassedBadge = page - .locator('[class*="badge"]') + .locator('[class="contents"] [class*="badge"]') .getByText('Passed', { exact: true }); this.trainingFailStatement = page.getByText( 'You have failed the training. Please reach to your study monitor for further steps of training.', @@ -4805,9 +4805,8 @@ export default class VisitStudiesPage extends BasePage { } } - async startTrainingActivity(trainingName, title) { + async startTrainingActivity(trainingName) { await this.verifyHeading(trainingName); - await this.verifyHeading(title); await this.startTrainingButton.click(); await this.waitForTime(2000); await this.continueButton.click(); @@ -4879,14 +4878,9 @@ export default class VisitStudiesPage extends BasePage { * Completes a regular TRAINING activity (Intro → Video → Quiz → Documents → Results). * No eye-test step (unlike TBUT). */ - async completeRegularTrainingActivity( - trainingName, - introTitle, - userName, - options = {} - ) { + async completeRegularTrainingActivi … (684 more characters not kept)
10. search_code repo=cleopatra, text=TBUT Quiz Result · 867 chars back
e2e/knowledge/training.md 66: TBUT's third failure adds a summary screen: headings `TBUT Quiz Result`, `You did not meet the passing score.`, `Results`, and then `You have failed the training. Please reach to your study monitor fo e2e/pages/training/trainingData.json 17: "resultsSectionName": "TBUT Quiz Result", e2e/pages/visitExecution/visitExecStudy.page.js 4829: logger.info('Verifying TBUT Quiz Result to fail quiz'); 4830: await this.verifyHeading('TBUT Quiz Result'); 4843: logger.info('Verifying TBUT Quiz Result to pass quiz'); 4844: await this.verifyHeading('TBUT Quiz Result'); e2e/tests/training/tbut.spec.js 213: logger.info('Verifying TBUT Quiz Result to fail quiz'); 214: await qa.verifyHeading('TBUT Quiz Result'); 222: logger.info('Verifying TBUT Quiz Result to fail quiz again'); 223: await qa.verifyHeading('TBUT Quiz Result');
11. search_code repo=cleopatra, text=tbut, path_prefix=e2e/knowledge · 1327 chars back
e2e/knowledge/training.md 5: > **Last updated:** 2026-11-14 | ui-tests-master #878: the study Trainings tab has Study Team and Site Training Logs since main #16777 (read from `registry.ts`; license TC-30/31/34 passed locally) | 2 11: Since main #16777 (ENG-8591, 13 Nov) the study Trainings tab's single Training Log is **Study Team Training Log** (`study-trainings-team-log-tab`) and **Site Training Log** (`study-trainings-site-log- 88: Verified 2026-11-06 against main `master` and cleopatra `origin/main`. The timer wizard stores the row value in **milliseconds** (`useTimerWizaard.ts`, `timer-first-screen.tsx`); the backend turns eac e2e/knowledge/README.md e2e/knowledge/execution-setup.md 30: | CRO | 36: Visit Execution except doaLog, pdCUD and edcFreeze; training regular, staff, tbut; TMF documentsCRO, staging; study/studiesList (TC-STD-095 lists the CRO org's E2E CRO Study; it had relied 34: | None | pdCUD (makes its own CRO org, imports its own protocol); studyTabs and studySites (own studies since #16683); croAddSite (own study since TA-230, so the "E2E CRO Site N" sites it adds stay ou e2e/knowledge/visit-execution.md 52: - **`preScreenFlag` is not a recognised option** and is silently ignored — `tbutActivity.spec.js:97` passes it anyway. e2e/knowledge/patients.md e2e/knowledge/ai-review.md
12. read_file repo=cleopatra, path=e2e/knowledge/training.md, start_line=40, end_line=86 · 3737 chars back
e2e/knowledge/training.md (112 lines), lines 40-86: 40 The chain needs two uploads categorised as **Training Certificate**, turned into templates through the doc builder: 41 42 - The **document** template is created with `enhanceFlag = false` — no signer fields. 43 - The **certificate** template is created **with** enhancement, because the certificate is signed at the end. 44 45 Templates are reached through Files → the **TDM** header tab (`app-header-files-tdm-tab`, `app/navigation/registry.ts:441`; CRO orgs only), not from the documents list directly. `production` reaches them through a scope 46 47 ## The 20-second waits are not padding 48 49 Two of them, both load-bearing: 50 51 - **After creating a training, assignment to the configured roles happens in the background.** The spec waits 20 s before the trainee's task exists. 52 - **The video section has a 20 s gate** before the quiz becomes reachable, and it is hit again in the QA failure path. 53 54 There is no event or status to wait on instead today. If you need to shorten these, find a signal first — a guessed number here is exactly the case [`testing-patterns.md`](testing-patterns.md) → *Measure a wait before bu 55 56 ## Quiz answers are positional 57 58 `answerQuizQuestion` uses `const optionNo = successFlag ? 0 : 1;` — **option index 0 is correct and index 1 is wrong for every question**, by construction of the seeded quiz. That is a property of the fixture, not of the 59 60 Trainee outcomes asserted after … (2237 more characters not kept)
13. page_snapshot text=checked · 38 chars back
no line of the page contains that text
14. page_snapshot text=Attempt · 228 chars back
297: - region: 298: - term: Due 299: - definition: 300: - time: 30 Nov 2026 301: - term: Attempts 302: - definition: 2 of 3 used 303: - navigation: 304: - button "Forms" [expanded]: 305: - img
15. read_file repo=cleopatra, path=e2e/tests/training/tbut.spec.js, start_line=1, end_line=146 · 5316 chars back
e2e/tests/training/tbut.spec.js (307 lines), lines 1-146: 1 import { loadData } from '../../helpers/runData'; 2 import { STUDIES } from '../../helpers/executionSetup'; 3 import FunctionHelper from '../../helpers/functionHelper'; 4 import logger from '../../lib/logger/log'; 5 import { expect, test } from '../../utils/fixtures/visitExec'; 6 7 const data = loadData(); 8 9 test.use({ executionSetup: STUDIES.CRO }); 10 11 test.describe.configure({ mode: 'serial' }); 12 test.describe('TBUT Training', () => { 13 let trainingTemplateName; 14 let templateName; 15 let recruiterUser; 16 let piUser; 17 let qaUser; 18 let daUser; 19 let fileName; 20 const studyName = data.croStudyName; 21 const croOrg = data.croOrg; 22 let trainingDetails = {}; 23 24 test.beforeAll(async ({ userApiUtility }) => { 25 recruiterUser = await userApiUtility.findUserDetails('Test Recruiter'); 26 piUser = await userApiUtility.findUserDetails('Test Pi'); 27 qaUser = await userApiUtility.findUserDetails('Test Analyst'); 28 daUser = await userApiUtility.findUserDetails('Test Da'); 29 }); 30 31 test('TC-01: Upload and categorize TBUT Certificate document', async ({ 32 docCroPage 33 }) => { 34 const tbutDocPath = FunctionHelper.appendFileNameToUpload( 35 'pages/tmf/files/TBUTCertificate.pdf' 36 ); 37 fileName = await docCroPage.uploadOrgFile( 38 tbutDocPath, 39 'Training Certificate' 40 ); 41 await docCroPage.waitForTime(2000); … (3816 more characters not kept)
16. search_code repo=cleopatra, text=This field is required, path_prefix=apps/sense/src/modules/execution · 1225 chars back
apps/sense/src/modules/execution/utils/validations.ts 163: validationErrors[key] = 'This field is required'; 190: return 'This field is required.'; apps/sense/src/modules/execution/components/table/hooks/useCellNotDone.test.tsx 189: 'question-1': 'This field is required.', 213: 'adverse-events': { 'row-1': { 'question-1': 'This field is required.' } } 229: 'test-table': { 'row-1': { 'question-1': 'This field is required.' } } apps/sense/src/modules/execution/components/question/useQuestionNotDone.test.tsx 216: 'question-1': 'This field is required.', 232: const initialErrors = { 'question-1': 'This field is required.' }; apps/sense/src/modules/execution/utils/validations.test.ts 470: { 'participant-esign-1': 'This field is required' } apps/sense/src/modules/execution/components/table/table-cell.test.tsx 417: 'question-1': 'This field is required' 424: expect(screen.getByText('This field is required')).not.toBeNull(); apps/sense/src/modules/execution/components/questionnaire/questionnaire.test.tsx 607: [questionId]: 'This field is required.' 761: ? { [questionId]: 'This field is required.' } 887: [questionId]: 'This field is required.' 998: [questionId]: 'This field is required.'
17. search_code repo=cleopatra, text=retry, path_prefix=apps/sense/src/modules/execution/components/training · 30 chars back
no match on the default branch
18. commit_diff repo=cleopatra, sha=450fde1f8, path=e2e/pages/visitExecution/visitExecStudy.page.js · 1576 chars back
450fde1f8 2026-11-14T15:03 Harsh-Tilda: [E2E] TA 232 own sets (#16823) 34 files changed: e2e/helpers/executionSetup.js, e2e/helpers/runData.js, e2e/knowledge/README.md, e2e/knowledge/execution-setup.md, e2e/knowledge/license-visibility.md, e2e/knowledge/organizations.md, e2e/knowledge/sites.md, e2e/knowledge/studio.md, e2e/knowledge/training.md, e2e/knowledge/work-orders-language.md, e2e/knowledge/work-plans.md, e2e/package.json, e2e/pages/common/commonData.js, e2e/pages/common/protocols/automation_v2_CRO.json, e2e/pages/platform/sites/staff.page.js, e2e/pages/platform/userProfile/licenseTabData.js, e2e/pages/studio/protocolBuilder.page.js, e2e/pages/study/studiesListData.js, e2e/pages/training/training.page.js, e2e/pages/visitExecution/visitExecStudy.page.js, e2e/pages/workplan/workPlanPage.js, e2e/scripts/cleanup.js, e2e/scripts/extensionlessImports.js, e2e/setup.js, e2e/tests/platform/sites/staff.spec.js … --- e2e/pages/visitExecution/visitExecStudy.page.js @@ -549,8 +549,11 @@ export default class VisitStudiesPage extends BasePage { this.allTrainingTab = page.locator( '[data-testid*="study-trainings-list-tab-tab"]' ); - this.trainingLogTab = page.locator( - '[data-testid*="study-trainings-log-tab-tab"]' + this.studyTeamTrainingLogTab = page.locator( + '[data-testid*="study-trainings-team-log-tab-tab"]' + ); + this.siteTrainingLogTab = page.locator( + '[data-testid*="study-trainings-site-log-tab-tab"]' ); this.myTraini … (76 more characters not kept)
19. commits repo=cleopatra, path=apps/sense/src/modules/execution/components/questionnaire, since=2026-11-10T00:00:00Z · 259 chars back
b7d34528d 2026-11-16T05:48 Shashank-Agrawal12: fix(execution): save pending edits before removing a form (ENG-8532) (#16596) b384f852c 2026-11-12T13:33 Shashank-Agrawal12: feat(sense): show auto-query text under the field during data entry (ENG-8395) (#16713)

What it was shown (build 880, 38.6 KB)

The run
{ "job": "e2e-tests-master", "build": 880, "kind": "ui-tests", "result": "UNSTABLE", "started": "2026-11-16T01:37:29Z", "tests": 710, "failed": 84, "test_commit": "c5db9232b", "cluster_prepared": { "mode": "verify", "result": "not_ready", "product_commit": "a654678" }, "deployed_build_shown_on_the_page": { "frontend": "main-f40c13b", "backend": "production-a654678" } }
services
[ "docsvc", "execsvc", "patientsvc", "schedsvc", "enrollsvc", "studiosvc", "finsvc", "notifsvc", "dslsvc", "authz", "dashQL", "dashRsvc", "regsvc", "advpsvc", "workplansvc", "datasvc", "payoutsvc", "tusker", "authsvc", "eventsvc", "ehrsvc", "docproc", "studioai", "sense" ]
The cluster during the run
{ "cluster": "automation", "findings_opened_around_the_run": [ { "kind": "error.novel", "severity": "critical", "subject": "exportsvc", "title": "exportsvc: a new error shape, 95\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)", "opened_minutes_after_run_start": 105 }, { "kind": "error.novel", "severity": "warning", "subject": "exportsvc", "title": "exportsvc: a new error shape, 7\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)", "opened_minutes_after_run_start": 235 }, { "kind": "error.novel", "severity": "warning", "subject": "exportsvc", "title": "exportsvc: a new error shape, 7\u00d7 in the last hour, never seen in 90 days (Cache not found for activity update: Cache not found for study ?. Expe)", "opened_minutes_after_run_start": 235 } ], "long_standing_findings_left_out": 22, "pods_in_trouble_during_the_run": [], "deploys_during_the_run": [] }
The group
{ "tests": 1, "suite": "tbut", "members": [ { "test": "tbut::TC-07: Verify completing training activity as PI", "pattern": "chronic", "meaning": "failed all 11 runs on record: it has never passed here, so it is not flaky", "newest_first": "F F F F F F F F F F F", "failing_in_a_row": 11, "this_error_in_a_row": 1, "this_error_since_build": 880, "note": "the red streak is 11 runs long but only the last 1 failed with this error: the earlier ones were other failures, so date the cause from this error's first build", "build_before_this_error": 872, "failing_since_build": 803, "last_passed_build": null } ] }
The failure
{ "test": "tbut::TC-07: Verify completing training activity as PI", "status": "failed", "message": "expect(locator).toBeVisible() failed", "traceback_tail": "[training] \u203a tests/training/tbut.spec.js:147:3 \u203a TBUT Training \u203a TC-07: Verify completing training activity as PI \n\n Error: expect(locator).toBeVisible() failed\n\n Locator: getByRole('heading', { name: 'TBUT Quiz Result' }).first()\n Expected: visible\n Timeout: 50000ms\n Error: element(s) not found\n\n Call log:\n - Expect \"toBeVisible\" getByRole('heading', { name: 'TBUT Quiz Result' }).first() with timeout 50000ms\n - waiting for getByRole('heading', { name: 'TBUT Quiz Result' }).first()\n\n\n at pages/common/base.page.js:1332\n\n 1330 | })\n 1331 | .first()\n > 1332 | ).toBeVisible();\n | ^\n 1333 | }\n 1334 |\n 1335 | async verifyButton(buttonText) {\n at VisitStudiesPage.verifyHeading (/home/jenkins/agent/workspace/ui-tests-master/e2e/pages/common/base.page.js:1332:7)\n at VisitStudiesPage.completeTrainingActivity (/home/jenkins/agent/workspace/ui-tests-master/e2e/pages/visitExecution/visitExecStudy.page.js:4844:16)\n at /home/jenkins/agent/workspace/ui-tests-master/e2e/tests/training/tbut.spec.js:153:5\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/tbut-TBUT-Training-TC-07-V-93015-ing-training-activity-as-PI-training/test-failed-1.png\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n attachment #2: video (video/webm) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n reports/tbut-TBUT-Training-TC-07-V-93015-ing-training-activity-as-PI-training/video.webm\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n Error Context: reports/tbut-TBUT-Training-TC-07-V-93015-ing-training-activity-as-PI-training/error-context.md", "raised_at": "e2e/pages/common/base.page.js:1332", "code_frame": " at pages/common/base.page.js:1332\n\n 1330 | })\n 1331 | .first()\n> 1332 | ).toBeVisible();\n | ^\n 1333 | }\n 1334 |\n 1335 | async verifyButton(buttonText) {", "playwright_call_log": [ "- Expect \"toBeVisible\" getByRole('heading', { name: 'TBUT Quiz Result' }).first() with timeout 50000ms", "- waiting for getByRole('heading', { name: 'TBUT Quiz Result' }).first()" ] }
Console lines about this test
{ "from": "console.log", "lines": [ "2195: INFO Assigned Test Crc as reviewer", "2196: INFO Starting document training \"Staff Training - 1794794420978\"", "2197: INFO Signing user Test Pi", "2198: INFO \u2718 348 [training] \u203a tests/training/tbut.spec.js:147:3 \u203a TBUT Training \u203a TC-07: Verify completing training activity as PI (3.8m)", "2199: INFO - 357 [training] \u203a tests/training/tbut.spec.js:158:3 \u203a TBUT Training \u203a TC-08: Verify training status and assign training manually", "2200: INFO - 358 [training] \u203a tests/training/tbut.spec.js:181:3 \u203a TBUT Training \u203a TC-09: Verify starting training as Recruiter and keeping it incomplete", "2201: INFO - 359 [training] \u203a tests/training/tbut.spec.js:196:3 \u203a TBUT Training \u203a TC-10: Verify failing the training as Analyst", "\u2026", "13464: INFO attachment #2: video (video/webm) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500", "13465: INFO Error Context: reports/regular-Regular-Training-T-ff016-lar-training-activity-as-PI-training-retry1/error-context.md", "13466: INFO yarn playwright show-trace reports/regular-Regular-Training-T-ff016-lar-training-activity-as-PI-training-retry1/trace.zip", "13467: INFO 58) [training] \u203a tests/training/tbut.spec.js:147:3 \u203a TBUT Training \u203a TC-07: Verify completing training activity as PI", "13468: INFO Locator: getByRole('heading', { name: 'TBUT Quiz Result' }).first()", "13469: INFO - Expect \"toBeVisible\" getByRole('heading', { name: 'TBUT Quiz Result' }).first() with timeout 50000ms", "13470: INFO at pages/common/base.page.js:1332", "\u2026", "14252: INFO [workplan] \u203a tests/workplan/workPlanType.spec.js:47:5 \u203a AI Teammates - Work Plans \u203a Plan Types \u203a TC-02: Add, edit and delete milestones", "14253: INFO [workplan] \u203a tests/workplan/workPlanType.spec.js:97:5 \u203a AI Teammates - Work Plans \u203a Plan Types \u203a TC-03: Reorder milestones persists after reload", "14254: INFO [training] \u203a tests/training/regular.spec.js:180:3 \u203a Regular Training \u203a TC-07: Verify completing regular training activity as PI", "14255: INFO [training] \u203a tests/training/tbut.spec.js:147:3 \u203a TBUT Training \u203a TC-07: Verify completing training activity as PI", "14256: INFO [study] \u203a tests/study/studyFeed.spec.js:77:3 \u203a Study feed \u203a TC-03: A populated feed shows the brief, sections, rows and the nav badge", "14257: INFO [study] \u203a tests/study/studyFeed.spec.js:151:3 \u203a Study feed \u203a TC-06: The row menu reminds and hides", "14258: INFO [study] \u203a tests/study/studyFeed.spec.js:274:3 \u203a Study feed \u203a TC-08: J / K move between items and a live region announces the position" ] }
The test's history
{ "pattern": "chronic", "meaning": "failed all 11 runs on record: it has never passed here, so it is not flaky", "newest_first": "F F F F F F F F F F F", "failing_in_a_row": 11, "this_error_in_a_row": 1, "this_error_since_build": 880, "note": "the red streak is 11 runs long but only the last 1 failed with this error: the earlier ones were other failures, so date the cause from this error's first build", "build_before_this_error": 872 }
The test's source
{ "repo": "tildabio/cleopatra", "at": "c5db9232b", "path": "e2e/tests/training/tbut.spec.js", "from_line": 147, "failing_line": 147, "code": "147> test('TC-07: Verify completing training activity as PI', async ({ pi }) => {\n148 await pi.searchStudy(studyName);\n149 await pi.selectTaskTab();\n150 const piTaskName = `Complete ${trainingDetails.name} training for ${piUser.userName}`;\n151 await pi.resetFilter();\n152 await pi.selectTask(piTaskName);\n153 await pi.completeTrainingActivity(trainingDetails.name);\n154 await pi.verifyAndSignCertificate(piUser.userName);\n155 await expect(pi.trainingPassStatement).not.toBeVisible();\n156 });\n157 \n158 test('TC-08: Verify training status and assign training manually', async ({\n159 trainingPage\n160 }) => {\n161 await trainingPage.searchStudy(studyName);\n162 await trainingPage.studyTrainingsTab.click();\n163 await trainingPage.allTrainingTab.click();\n164 await expect(trainingPage.trainingsSearchInput).toBeVisible();\n165 await trainingPage.openTraining(trainingDetails.name);\n166 await trainingPage.assignTrainingManually(trainingDetails.name, [\n167 recruiterUser.userName,\n168 qaUser.userName,\n169 daUser.userName\n170 ]);\n171 await trainingPage.trainingSlideoverClose.click();\n172 await trainingPage.openTraining(trainingDetails.name);\n173 await trainingPage.verifyTraineesInSidePanel([\n174 { name: piUser.userName, status: 'Passed' },\n175 { name: recruiterUser.userName, status: 'Pending' },\n176 { name: qaUser.userName, status: 'Pending' },\n177 { name: daUser.userName, status: 'Pending' }\n178 ]);\n179 });\n180 \n181 test('TC-09: Verify starting training as Recruiter and keeping it incomplete', async ({\n182 recruiter\n183 }) => {\n184 await recruiter.searchStudy(studyName);\n185 await recruiter.selectTaskTab();\n186 const recruiterTaskName = `Complete ${trainingDetails.name} training for ${recruiterUser.userName}`;\n187 await recruiter.resetFilter();\n188 await recruiter.selectTask(recruiterTaskName);\n189 await recruiter.startTrainingActivity(\n190 trainingDetails.name,\n191 'Tear Break-Up Time (TBUT)'\n192 );\n193 await recruiter.trainingBackButton.click();\n194 });\n195 \n196 test('TC-10: Verify failing the training as Analyst', async ({ qa }) => {\n197 await qa.searchStudy(studyName);\n198 await qa.selectTaskTab();\n199 const analystTaskName = `Complete ${trainingDetails.name} training for ${qaUser.userName}`;\n200 await qa.resetFilter();\n201 await qa.selectTask(analystTaskName);\n202 await qa.startTrainingActivity(\n203 trainingDetails.name,\n204 'Tear Break-Up Time (TBUT)'\n205 );\n206 \n207 await qa.verifyHeading('TBUT Training Video');\n208 await qa.waitForTime(20000);\n209 await qa.continueButton.click();\n210 logger.info('Answering TBUT Quiz to fail quiz');\n211 await qa.answerQuizQuestion({ successFlag: false, trainingType: 'tbut' });\n212 await qa.continueButton.click();\n213 logger.info('Verifying TBUT Quiz Result to fail quiz');\n214 await qa.verifyHeading('TBUT Quiz Result');\n215 await qa.verifyHeading('You did not meet the passing');\n216 await qa.retryButton.click();\n217 await qa.waitForTime(2000);" }
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/training/tbut.spec.js >> TBUT Training >> TC-07: Verify completing training activity as PI\n- Location: tests/training/tbut.spec.js:147:3\n\n# Error details\n\n```\nError: expect(locator).toBeVisible() failed\n\nLocator: getByRole('heading', { name: 'TBUT Quiz Result' }).first()\nExpected: visible\nTimeout: 50000ms\nError: element(s) not found\n\nCall log:\n - Expect \"toBeVisible\" getByRole('heading', { name: 'TBUT Quiz Result' }).first() with timeout 50000ms\n - waiting for getByRole('heading', { name: 'TBUT Quiz Result' }).first()\n\n```\n\n```yaml\n- log\n- log\n- main:\n - link \"Home\":\n - /url: /\n - button \"Collapse navigation\":\n - img\n - button \"E2 E2E UI880 SMO Test Pi\":\n - text: E2 E2E UI880 SMO Test Pi\n - img\n - navigation:\n - treegrid \"Navigation\":\n \u2026\n - row \"Title Priority Status Category Visit Site Patient Created Due Date Assignee\":\n \u2026\n - columnheader \"Status\"\n \u2026\n - heading \"Complete Training - 1794794434038 training for Test Pi Study E2E CRO Study\" [level=5]\n \u2026\n- dialog \"dialog\":\n \u2026\n - heading \"TBUT Training 1794794318335\u2219TBUT Quiz\" [level=2]\n \u2026\n - heading \"All right eye measurements should be completed before left eye measurements.\" [level=5]\n \u2026\n - heading \"Subjects should blink 2 times before a measurement\" [level=5]\n \u2026\n - heading \"Measurements should only be completed 2 mins after fluorescein application\" [level=5]\n \u2026\n - heading \"True\" [level=5]\n \u2026\n - heading \"False\" [level=5]\n \u2026\n - heading \"1 measurement per eye\" [level=5]\n \u2026\n - heading \"3 measurements per eye\" [level=5]\n \u2026\n - heading \"5 measurements per eye\" [level=5]\n \u2026\n - heading \"Outdoor lighting\" [level=5]\n \u2026\n - heading \"Normal Indoor Office Lighting\" [level=5]\n \u2026\n - heading \"Dim Room Lighting\" [level=5]\n \u2026\n - heading \"True\" [level=5]\n \u2026\n - heading \"False\" [level=5]\n \u2026\n 1325 | async verifyHeading(heading) {\n \u2026\n 1328 | .getByRole('heading', {\n 1329 | name: heading\n \u2026\n | ^ Error: expect(locator).toBeVisible() failed\n \u2026\n 1364 | logger.info(`Uploading document`);\n \u2026\n 1391 | // Surfaces the underlying timeout instead of Promise.any's AggregateError\n \u2026\n 1393 | Promise.any(outcomes).catch((error) => {\n 1394 | throw error.errors?.[0] ?? error;" }
The code where it failed
{ "path": "e2e/pages/common/base.page.js", "failing_line": 1332, "code": "1307 await expect(this.page.getByText(leadName).last()).toBeVisible();\n1308 }\n1309 \n1310 async selectItemsPerPage(current, next) {\n1311 await this.page\n1312 .locator(`button[aria-haspopup=\"listbox\"] span:text(\"${current}\")`)\n1313 .waitFor();\n1314 await this.page\n1315 .locator(`button[aria-haspopup=\"listbox\"] span:text(\"${current}\")`)\n1316 .click();\n1317 \n1318 await this.page.locator(`[role=\"option\"] span:text(\"${next}\")`).waitFor();\n1319 await this.page.locator(`[role=\"option\"] span:text(\"${next}\")`).click();\n1320 await this.page\n1321 .locator(`button[aria-haspopup=\"listbox\"] span:text(\"${next}\")`)\n1322 .waitFor();\n1323 }\n1324 \n1325 async verifyHeading(heading) {\n1326 await expect(\n1327 this.page\n1328 .getByRole('heading', {\n1329 name: heading\n1330 })\n1331 .first()\n1332> ).toBeVisible();\n1333 }\n1334 \n1335 async verifyButton(buttonText) {\n1336 await expect(\n1337 this.page.getByRole('button', { name: buttonText }).first()\n1338 ).toBeVisible();\n1339 logger.info(`Verified title ${buttonText}`);\n1340 }\n1341 \n1342 async selectSiteFromOrg(orgName, siteName) {\n1343 await this.selectOrgDropdown.click();\n1344 await this.page.getByRole('option', { name: orgName }).click();" }
Commits in the window
{ "between": "build 753 (last pass, started 2026-09-12T01:32:06Z) and build 763 (first failure of the streak, started 2026-09-20T01:32:40Z)", "test_repo": { "repo": "tildabio/cleopatra", "range": "2026-09-12T01:32 to 2026-09-20T01:32 UTC", "note": "by date: the runs did not record their commits, so these are the commits to the files involved between the last passing run and the first failing one", "commits": [] } }
The issue as the agent wrote it
**Fix is in:** not known yet. **What failed:** `expect(locator).toBeVisible() failed` **On screen when it failed:** The TBUT quiz dialog is open again with all five questions unanswered and 'This field is required.' under each; no result heading is shown. ![The page when the test failed](https://uploads.linear.app/d1b9dc36-3ae8-49c0-8ea8-02f9d1566efc/a70db7f7-b282-44d5-8e97-4f92295dd5f4/e47931e9-ec3a-4126-b1ec-aa72e0148d08) **Cause not clear**, confidence low. Found in `e2e-tests-master` build 880: [run in X-ray](https://xray.tilda.pizza/tests/run/e2e-tests-master/880). **Root cause in X-ray:** [the verdict, each test's history and the evidence the agent read](https://xray.tilda.pizza/test-triage/cd77f9de5399f2) On the second quiz attempt the page still shows the quiz form, with 'This field is required.' under all 5 questions. The side panel says Attempts 2 of 3 used. The test clicked Continue (it matches 'Save & Continue') without any answer registering, so no result page appeared. The first attempt worked (the fail result and 'Attempts used: 1 of 3' were verified). So the failure is the second answer pass after Retry, in visitExecStudy.page.js:4840-4844. I could not tell whether the clicks missed the re-rendered form (test) or the product cleared the answers (Sense). History is chronic with 11 failures, and this is the first run with this error. No commit in the bundle's range touches the failing files. The recent training edits (4901909b7, 450fde1f8) did not change the quiz-answering code. Next: open the trace or video for the second pass of answerQuizQuestion. Check whether the radios were clicked and then reset, or never clicked. Compare with regular.spec.js TC-07, which also failed in this run. I did not find the Sense retry handler, so I have no evidence on the product side. **Service:** sense **Assigned to:** [email protected] (last changed base.page.js (9595e30aa)). ### Steps to reproduce 1. Use a study on a TBUT training protocol. Make a Principal investigator training task, 'Complete <training> training for Test Pi', assigned to a user. 2. Sign in as that Principal investigator, open the study, go to the Tasks tab and open the training task. 3. Click Start training, then Continue past the introduction. Wait about 20 seconds on 'TBUT Training Video', then click Continue. 4. On the quiz, pick the second option for each of the 5 questions and click Continue. Expected: 'TBUT Quiz Result' with 'You did not meet the passing' and 'Attempts used: 1 of 3'. 5. Click Retry. 6. Pick the first option for each of the 5 questions, waiting about 1 second between clicks, and click Continue. 7. Expected: heading 'TBUT Quiz Result' with "Great job! You've passed the quiz." and 'Attempts used: 2 of 3'; actual: the quiz form stays open with 'This field is required.' under all 5 questions. **Failing tests (1):** - [tbut::TC-07: Verify completing training activity as PI](https://xray.tilda.pizza/tests/case/7b410f51cadf744a) (failing since build 803) **Error:** ``` expect(locator).toBeVisible() failed ``` +++ Agent notes Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 19 lookups in the code and its history. Group `triage:cd77f9de5399f2` (one issue per root cause). A wrong verdict can be corrected on the run page in X-ray. +++