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 09:09:06.
› →|
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] Training closes after certificate sign-off; test still expects Finish and 'Reviewed and signed.'

The test is wrong confidence medium · medium priority · e2e-tests-master, last seen in build 880

The verdict

Fix is in
the automation suite (e2e): the test is wrong
Issue
ENG-8859 · In Development
Owner
[email protected] (last changed visitExecStudy.page.js (450fde1f8); the test agent opens the pull request once this is in Ready for Development)
Filed in
Backlog, Test Agent Automation
Service
sense
History when filed
regression, this error since build 852
Suspect commit
61adba3a2 Reviewing the training certificate completes the training (#16820) (taylorfutral)
On screen
The page showed a 'No records' list, not the training summary with the certificate and Finish button.
Branches
fails on master; on production (e2e-tests-production build 858) 0 of 1 fail the same way, 0 pass.
The test's post-sign steps are out of date. `verifyAndSignCertificate` (visitExecStudy.page.js:5022-5025) still expects to stay on the Summary page after signing. It waits for 'Reviewed and signed.', checks the button reads 'View certificate', then clicks Finish. Commit 61adba3a2 (Nov 14, 'Reviewing the training certificate completes the training') changed that. `training-final-results.tsx` `reviewCertificate` now calls `completeTraining()` once the review saves, and that ends with `runtime.closeTraining()`. That fits the screen: the page showed 'No records' (the task list), not the certificate. It also fits the retry, where Finish was inert or detached. This is an intended change, and the e2e helper was not updated. Verified: the code and the diff. Assumed: the 'No records' page is the closed training. I did not open the trace. The exportsvc 'Cache not found' errors and the 'not_ready' cluster prep are unrelated to this failure. The `/api/studio/events` 404s were not investigated. TBUT TC-07 and the second `verifyAndSignCertificate` call at regular.spec.js:339 probably fail the same way.

Proposed fix

In `verifyAndSignCertificate` (visitExecStudy.page.js), end after `this.sign(userName)`. Remove the `trainingCertificateSignedText` check, the 'View certificate' check, and `finishButton.click()` (lines 5022-5025). Instead, assert that the training closed, for example that the task list shows again or the training status is Completed or Passed. In regular.spec.js:193, drop `expect(pi.trainingPassStatement).not.toBeVisible()` or change it to assert the closed state. Check the same flow in tbut.spec.js:154 and :304, and regular.spec.js:339.

History of this root cause

  • filed ENG-8859 · build 880 7d ago
    The test is wrong, confidence medium; 1 test; to [email protected] in Backlog
  • branches ENG-8859 6d ago

Tests 4

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.

How the agent decided

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

What it looked up (20, in order)

1. page_snapshot text=Reviewed and signed · 400 chars back
14: ``` 15: Error: expect(locator).toBeVisible() failed 17: Locator: getByText('Reviewed and signed.', { exact: true }) 18: Expected: visible 19: Timeout: 50000ms 20: Error: element(s) not found 22: Call log: 23: - Expect "toBeVisible" getByText('Reviewed and signed.', { exact: true }) with timeout 50000ms 24: - waiting for getByText('Reviewed and signed.', { exact: true }) 26: ``` 28: ```yaml
2. page_snapshot text=dialog · 38 chars back
no line of the page contains that text
3. search_code repo=cleopatra, text=trainingCertificateSignedText · 179 chars back
e2e/pages/visitExecution/visitExecStudy.page.js 205: this.trainingCertificateSignedText = page.getByText( 5022: await expect(this.trainingCertificateSignedText).toBeVisible();
4. commits repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, since=2026-10-20T00: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)
5. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=4950, end_line=5000 · 2415 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 4950-5000: 4950 await this.waitForTime(1000); 4951 } 4952 await this.stopTimeButton.click(); 4953 await this.waitForTime(1000); 4954 } 4955 } 4956 4957 async startDocumentTrainingActivity(trainingName, introTitle) { 4958 logger.info(`Starting document training "${trainingName}"`); 4959 await this.verifyHeading(trainingName); 4960 await this.startTrainingButton.click(); 4961 } 4962 /** 4963 * Completes a document-only TRAINING activity (Documents section only): 4964 * review the training document, sign it and finish. 4965 */ 4966 async completeDocumentTrainingActivity(trainingName, introTitle, userName) { 4967 await this.startDocumentTrainingActivity(trainingName, introTitle); 4968 logger.info('Reviewing and signing training document'); 4969 await this.reviewButton.click(); 4970 await this.page 4971 .getByTestId('document-modal') 4972 .getByText('template') 4973 .waitFor({ state: 'visible' }); 4974 await this.markAsReviewedButton.click(); 4975 await this.waitForTime(2000); 4976 await this.sign(userName); 4977 await this.finishButton.first().waitFor({ state: 'visible' }); 4978 await this.finishButton.click(); 4979 logger.info(`Document training "${trainingName}" completed`); 4980 } 4981 4982 async verifyAndSignCertificate(userName) { 4983 await expect(this.trainingPassedBadge).toBeVis … (915 more characters not kept)
6. read_file repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, start_line=195, end_line=225 · 1412 chars back
e2e/pages/visitExecution/visitExecStudy.page.js (5027 lines), lines 195-225: 195 this.trainingDetailsToggle = page 196 .getByRole('dialog') 197 .getByRole('main') 198 .getByRole('button', { name: 'Details', exact: true }); 199 this.trainingStartTimeValue = page.getByTestId( 200 'data-item-start-time-value' 201 ); 202 this.trainingDocumentsContinueButton = page.getByTestId( 203 'object.document-set.continue-2' 204 ); 205 this.trainingCertificateSignedText = page.getByText( 206 'Reviewed and signed.', 207 { 208 exact: true 209 } 210 ); 211 212 // SDV — visit execution (EDC); used by sdv.spec.js 213 this.edcViewButton = page.locator('button').filter({ hasText: 'EDC' }); 214 this.edcOverviewNav = page 215 .locator('div span') 216 .filter({ hasText: 'Overview' }); 217 this.edcActivitiesNav = page 218 .locator('div span') 219 .filter({ hasText: 'Activities' }) 220 .first(); 221 this.singlePageActivityForm = page.locator('#single-page-activity-form'); 222 // ObjectSDV sits above the form (sibling), not inside it. Do not use 223 // `main span span`: PrintPreviewLayout renders a <main class="contents"> 224 // (`display: contents`) and `.last()` is order-dependent when other 225 // "questions verified" banners (header / table) are also in the overlay.
7. service_errors service=exportsvc · 7799 chars back
+83m exportsvc handlers/activity_update_handler_wrapper.py:86: Cache not found for activity update: Cache not found for study 150e06a9-dc6e-441d-904b-c730f2348a0d. Expected locally: /tmp/exports/responses_150e06a9-dc6e-441d-904b-c730f2348a0d.parquet. Expected in GCS: automation/cache/responses_150e06a9-dc6e-441d-904b-c730f2348a0d.parquet. Run full export first to generate parquet cache. +83m exportsvc handlers/activity_update_handler_wrapper.py:86: Cache not found for activity update: Cache not found for study 150e06a9-dc6e-441d-904b-c730f2348a0d. Expected locally: /tmp/exports/responses_150e06a9-dc6e-441d-904b-c730f2348a0d.parquet. Expected in GCS: automation/cache/responses_150e06a9-dc6e-441d-904b-c730f2348a0d.parquet. Run full export first to generate parquet cache. +84m exportsvc handlers/activity_update_handler_wrapper.py:86: Cache not found for activity update: Cache not found for study 150e06a9-dc6e-441d-904b-c730f2348a0d. Expected locally: /tmp/exports/responses_150e06a9-dc6e-441d-904b-c730f2348a0d.parquet. Expected in GCS: automation/cache/responses_150e06a9-dc6e-441d-904b-c730f2348a0d.parquet. Run full export first to generate parquet cache. +84m exportsvc handlers/activity_update_handler_wrapper.py:86: Cache not found for activity update: Cache not found for study 150e06a9-dc6e-441d-904b-c730f2348a0d. Expected locally: /tmp/exports/responses_150e06a9-dc6e-441d-904b-c730f2348a0d.parquet. Expected in GCS: automation/cache/responses_150e06a9-dc6e-441d-904b-c730f2348a0 … (6299 more characters not kept)
8. 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)
9. commits repo=cleopatra, path=e2e/tests/training/regular.spec.js, since=2026-10-20T00:00:00Z · 813 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) 29817b18b 2026-11-11T17:24 Harsh-Tilda: [E2E] build the shared studies per study, only for the specs that ask (#16701) 6fa3ebc48 2026-11-11T10:44 sbadiger: [E2E]: Simplify execution (#16679) 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) 02760955f 2026-10-25T02:37 avdkishore: Update app header and app sidebar (#15925) 7115f775b 2026-10-24T20:40 sbadiger: [E2E]: Trainning fixes (#16102) 85a639bab 2026-10-20T16:04 sbadiger: [E2E]: More test fixes (#15969)
10. 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)
11. search_code repo=cleopatra, text=async sign(, path_prefix=e2e/pages · 75 chars back
e2e/pages/common/base.page.js 1271: async sign(userName = 'Test Admin') {
12. read_file repo=cleopatra, path=e2e/pages/common/base.page.js, start_line=1260, end_line=1320 · 2504 chars back
e2e/pages/common/base.page.js (1978 lines), lines 1260-1320: 1260 await expect( 1261 this.page 1262 .locator('span[data-weight=medium]') 1263 .filter({ hasText: answers.past }) 1264 .last() 1265 ).toBeVisible(); 1266 logger.info( 1267 `Verified all the answers in prescreen summary for study ${studyName}` 1268 ); 1269 } 1270 1271 async sign(userName = 'Test Admin') { 1272 logger.info(`Signing user ${userName}`); 1273 await this.waitForTime(2000); 1274 if (await this.deleteButton.last().isVisible()) { 1275 await this.deleteButton.last().click(); 1276 } 1277 await this.verifyHeading('Sign Here'); 1278 const needsTypeSignature = 1279 (await this.noSignText.isVisible()) || 1280 (await this.signDocumentButton.isDisabled()) || 1281 (await this.page 1282 .locator('[class*=box]') 1283 .getByText('Enter your signature exactly as') 1284 .isVisible()); 1285 1286 if (needsTypeSignature) { 1287 await this.typeSignButton.click(); 1288 await this.typeSignInput.fill(userName); 1289 await this.waitForTime(1000); 1290 } 1291 await expect(this.signDocumentButton).toBeEnabled({ timeout: 10000 }); 1292 await this.signDocumentButton.click(); 1293 await this.waitForTime(500); 1294 logger.info(`${userName} sign success`); 1295 } 1296 1297 async selectSiteForPatient(siteName, leadName) { 1298 logger.info('Check recruiter sc … (1004 more characters not kept)
13. search_code repo=cleopatra, text=Reviewed and signed · 196 chars back
e2e/pages/visitExecution/visitExecStudy.page.js 206: 'Reviewed and signed.', apps/sense/src/modules/execution/components/training-results/training-outcome-summary.tsx 106: Reviewed and signed.
14. search_code repo=cleopatra, text=Reviewed and signed, path_prefix=e2e/knowledge · 30 chars back
no match on the default branch
15. read_file repo=cleopatra, path=apps/sense/src/modules/execution/components/training-results/training-outcome..., start_line=1, end_line=180 · 4276 chars back
apps/sense/src/modules/execution/components/training-results/training-outcome-summary.tsx (135 lines), lines 1-135: 1 import { 2 Badge, 3 Button, 4 Collapsible, 5 DataItem, 6 DataItemWrapper, 7 DetailBox, 8 DetailBoxContent, 9 FileIcon, 10 Media, 11 Text, 12 usePrint 13 } from 'ui'; 14 import { useDocumentModal } from 'doc-management'; 15 16 interface Certificate { 17 id: string; 18 label: string; 19 } 20 21 interface Props { 22 /** Undefined while the outcome is not yet known (page not reached). */ 23 outcome?: 'passed' | 'failed'; 24 certificate: Certificate | null; 25 /** The training is still executable, so opening the certificate may mark it reviewed. */ 26 certificateFill: boolean; 27 certificateReviewed: boolean; 28 onCertificateReviewed?: () => void | Promise<void>; 29 /** The template's Pass or Fail statement for the outcome. */ 30 statement?: string; 31 /** The template's Success body statement. */ 32 successBody?: string; 33 startTime: string; 34 overall?: string; 35 children?: React.ReactNode; 36 } 37 38 export const TrainingOutcomeSummary: React.FC<Props> = ({ 39 outcome, 40 certificate, 41 certificateFill, 42 certificateReviewed, 43 onCertificateReviewed, 44 statement, 45 successBody, 46 startTime, 47 overall, 48 children 49 }) => { 50 const { openDocumentModal, closeDocumentModal } = useDocumentModal(); 51 const { isPrinting } = usePrint(); 52 53 const needsReview = !!certificat … (2776 more characters not kept)
16. commits repo=cleopatra, path=apps/sense/src/modules/execution/components/training-results, since=2026-10-20T00:00:00Z · 1319 chars back
61adba3a2 2026-11-14T19:21 taylorfutral: Reviewing the training certificate completes the training (#16820) 0ed03cbd6 2026-11-05T09:54 taylorfutral: Reload the current attempt's quiz state after a training retry (#16519) ff7c89559 2026-11-04T15:49 ramyala: feat(sense): redesign the training Summary page around the certificate (#16445) a5f9cc4b0 2026-11-04T14:51 mmukkama: fix(sense): complete trainings again — doc reviews register, progress counts, close doesn't crash (ENG-8408) (#16447) 0f51d8ced 2026-11-03T14:03 arzatskis: Generate string unions instead of enums in API types and absorb latest master drift (#16411) a0263c9d9 2026-10-30T18:08 danherberttilda: Studio: Pass to continue gating on quiz blocks (ENG-7951) (#16353) 73bbf1a6d 2026-10-30T13:20 danherberttilda: ENG-7013 Fix completing a Results-off training and publishing a Results-on one (#16261) b0133a773 2026-10-26T07:48 arzatskis: Drop the tableV9 feature toggle and render DataTable on TanStack Table v9 by default (#16071) e089421a7 2026-10-26T07:41 arzatskis: Use the new Figma icon shapes under the existing icon names (#16085) f8182662d 2026-10-23T18:02 danherberttilda: fix(training): keep the certificate link after it is reviewed (ENG-7980) (#16090) e738b983a 2026-10-22T18:40 taylorfutral: Added organization-level trainings app (#15966)
17. commit_diff repo=cleopatra, sha=61adba3a2 · 8851 chars back
61adba3a2 2026-11-14T19:21 taylorfutral: Reviewing the training certificate completes the training (#16820) 3 files changed: apps/sense/src/modules/execution/components/training-results/training-final-results.test.tsx, apps/sense/src/modules/execution/components/training-results/training-final-results.tsx, apps/sense/src/modules/execution/hooks/useMarkDocReviewed.ts --- apps/sense/src/modules/execution/components/training-results/training-final-results.test.tsx @@ -15,31 +15,45 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; import { TrainingFinalResults } from './training-final-results'; const m = vi.hoisted(() => ({ - queryClient: { getQueriesData: vi.fn(), refetchQueries: vi.fn() }, + queryClient: { + getQueriesData: vi.fn(), + invalidateQueries: vi.fn(), + refetchQueries: vi.fn() + }, + complete: vi.fn(), + markDocReviewed: vi.fn(), + summaryProps: {} as Record<string, unknown>, restart: vi.fn(), runtime: { cacheActivityStatus: vi.fn(), + closeTraining: vi.fn(), + refetchStatus: vi.fn(), canExecute: true, isCompleted: false, selectObject: vi.fn(), selectedObjectId: 'final' } })); vi.mock('api', () => ({ + MY_TRAININGS_KEY: ['my-trainings'], queryClient: m.queryClient, + trainingScopeKey: () => 'study-1', useRestartActivityMutation: () => ({ mutate: m.restart }), - useStudyActivityV2CompleteMutation: () => ({ mutateAsync: vi.fn() }) + useStudyActivityV2CompleteMutation: () => ({ mutat … (7351 more characters not kept)
18. commits repo=cleopatra, path=e2e/pages/visitExecution/visitExecStudy.page.js, since=2026-11-16T01:37:00Z · 38 chars back
no commits to that path in that window
19. read_file repo=cleopatra, path=apps/sense/src/modules/execution/components/training-results/training-final-r..., start_line=85, end_line=135 · 1906 chars back
apps/sense/src/modules/execution/components/training-results/training-final-results.tsx (301 lines), lines 85-135: 85 86 const response = await completeMutation.mutateAsync({ 87 studyId: visitContext?.studyId ?? '', 88 trainingScope: runtimeScope, 89 payload: { 90 activityId: visitContext?.activity?.activityId, 91 documentSetID: selectedObjectId, 92 // @ts-ignore codegen drift (TS2561) 93 esignDetails: [], 94 participantActivityId, 95 participantDocumentSetId, 96 participantVisitId: visitContext?.participantVisitId, 97 taskId: runtime?.taskId 98 } 99 }); 100 101 if (response.currentActivity) { 102 // @ts-ignore codegen drift (TS2741) 103 runtime?.cacheActivityStatus(response.currentActivity); 104 } 105 runtime?.refetchStatus(); 106 invalidateTrainingLogQueries(trainingScopeKey(runtimeScope)); 107 runtime?.closeTraining(); 108 }; 109 110 // Reopening a certificate this user already signed re-fires the review, and 111 // a second complete on a completed activity fails with an error toast. 112 const reviewInFlight = useRef(false); 113 const reviewCertificate = async (participantDocOverlayId: string) => { 114 if (reviewInFlight.current) return; 115 reviewInFlight.current = true; 116 try { 117 const saved = await markDocReviewed(participantDocOverlayId); 118 if ( 119 findTrainingStatusEntry(saved?.objectDetails … (406 more characters not kept)
20. search_code repo=cleopatra, text=verifyAndSignCertificate, path_prefix=e2e · 401 chars back
e2e/pages/visitExecution/visitExecStudy.page.js 4982: async verifyAndSignCertificate(userName) { e2e/tests/training/tbut.spec.js 154: await pi.verifyAndSignCertificate(piUser.userName); 304: await qa.verifyAndSignCertificate(qaUser.userName); e2e/tests/training/regular.spec.js 192: await pi.verifyAndSignCertificate(piUser.userName); 339: await qa.verifyAndSignCertificate(qaUser.userName);

What it was shown (build 880, 41.5 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": 24, "pods_in_trouble_during_the_run": [], "deploys_during_the_run": [] }
The group
{ "tests": 1, "suite": "regular", "members": [ { "test": "regular::TC-07: Verify completing regular training activity as PI", "pattern": "regression", "meaning": "failed the last 6 runs in a row after passing 1 of the 1 before: something changed, so it is not flaky", "newest_first": "F F F F F F P", "failing_in_a_row": 6, "this_error_in_a_row": 1, "this_error_since_build": 880, "note": "the red streak is 6 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": 852, "last_passed_build": 849 } ] }
The failure
{ "test": "regular::TC-07: Verify completing regular training activity as PI", "status": "failed", "message": "expect(locator).toBeVisible() failed", "traceback_tail": " 2 \u00d7 waiting for element to be visible, enabled and stable\n - element is inert\n - retrying click action\n - waiting 20ms\n 2 \u00d7 waiting for element to be visible, enabled and stable\n - element is inert\n - retrying click action\n - waiting 100ms\n - waiting for element to be visible, enabled and stable\n - element is inert\n - retrying click action\n - waiting 500ms\n - waiting for element to be visible, enabled and stable\n - element was detached from the DOM, retrying\n\n\n at pages/visitExecution/visitExecStudy.page.js:5025\n\n 5023 | logger.info('Verifying the certificate can be viewed again');\n 5024 | await expect(this.trainingCertificateButton).toHaveText('View certificate');\n > 5025 | await this.finishButton.click();\n | ^\n 5026 | }\n 5027 | }\n 5028 |\n at VisitStudiesPage.verifyAndSignCertificate (/home/jenkins/agent/workspace/ui-tests-master/e2e/pages/visitExecution/visitExecStudy.page.js:5025:29)\n at /home/jenkins/agent/workspace/ui-tests-master/e2e/tests/training/regular.spec.js:192: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/regular-Regular-Training-T-ff016-lar-training-activity-as-PI-training-retry1/test-failed-1.png\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n attachment #2: video (video/webm) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n reports/regular-Regular-Training-T-ff016-lar-training-activity-as-PI-training-retry1/video.webm\n \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n Error Context: reports/regular-Regular-Training-T-ff016-lar-training-activity-as-PI-training-retry1/error-context.md\n\n attachment #5: trace (application/zip) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n reports/regular-Regular-Training-T-ff016-lar-training-activity-as-PI-training-retry1/trace.zip\n Usage:\n\n yarn playwright show-trace reports/regular-Regular-Training-T-ff016-lar-training-activity-as-PI-training-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": "e2e7e57c176f9e85fc91789910e122b6", "method": "GET", "path": "/api/studio/events", "status": "404", "error": "None" }, { "trace_id": "e2e7e57c176f9e85fc91789f6693c51b", "method": "GET", "path": "/api/studio/events", "status": "404", "error": "None" }, { "trace_id": "e2e7e57c176f9e85fc9178949b5d8273", "method": "GET", "path": "/api/studio/events", "status": "404", "error": "None" }, { "trace_id": "e2e7e57c176f9e85fc91789e4ebb87e3", "method": "GET", "path": "/api/studio/events", "status": "404", "error": "None" }, { "trace_id": "e2e7e57c176f9e85fc91789c8bc1c442", "method": "GET", "path": "/api/studio/events", "status": "404", "error": "None" }, { "trace_id": "e2e7e57c176f9e85fc917890a82eea28", "method": "GET", "path": "/api/studio/events", "status": "404", "error": "None" } ], "errors_the_services_logged_for_these_requests": "none: no service logged an error under these requests' trace ids", "raised_at": "e2e/pages/visitExecution/visitExecStudy.page.js:5025", "code_frame": " at pages/visitExecution/visitExecStudy.page.js:5025\n\n 5023 | logger.info('Verifying the certificate can be viewed again');\n 5024 | await expect(this.trainingCertificateButton).toHaveText('View certificate');\n> 5025 | await this.finishButton.click();\n | ^\n 5026 | }\n 5027 | }\n 5028 |", "playwright_call_log": [ "- waiting for getByRole('button', { name: 'Finish' })", "- locator resolved to <button data-rac=\"\" tabindex=\"0\" type=\"button\" data-size=\"normal\" data-layout=\"inline\" data-theme=\"regular\" data-variant=\"primary\" class=\"_button_1acvg_1\" data-journey-auto=\"true", "- attempting click action", "- element is inert", "- retrying click action", "- waiting 20ms", "- element is inert", "- retrying click action", "- waiting 100ms", "- waiting for element to be visible, enabled and stable", "- element is inert", "- retrying click action", "- waiting 500ms", "- waiting for element to be visible, enabled and stable" ], "attempts": { "errors": [ "Error: expect(locator).toBeVisible() failed", "TimeoutError: locator.click: Timeout 50000ms exceeded." ], "note": "the attempts failed differently: the reported error is the last one's, read the first too" } }
Console lines about this test
{ "from": "console.log", "lines": [ "2367: INFO Opening training \"Staff Training - 1794794420978\" (+1 identical, not shipped)", "2368: INFO Verified trainee \"Cro Dm\" in training side panel (+1 identical, not shipped)", "2369: INFO Generating Team member for study CRO E2E Study 1794794921190", "2370: INFO \u2718 353 [training] \u203a tests/training/regular.spec.js:180:3 \u203a Regular Training \u203a TC-07: Verify completing regular training activity as PI (5.5m)", "2371: INFO - 385 [training] \u203a tests/training/regular.spec.js:196:3 \u203a Regular Training \u203a TC-08: Verify training status and assign training manually", "2372: INFO - 386 [training] \u203a tests/training/regular.spec.js:219:3 \u203a Regular Training \u203a TC-09: Verify starting training as CRC and keeping it incomplete", "2373: INFO - 387 [training] \u203a tests/training/regular.spec.js:234:3 \u203a Regular Training \u203a TC-10: Verify failing quiz then continuing as Analyst", "\u2026", "3435: INFO Created CRO site E2E Study Site 1794795772482 with ID 42f6258c-b7f8-48b7-a2f0-6738e9e6bbdf", "3436: INFO Reject sent the reason for the ticked proposal only", "3437: INFO Adding site 42f6258c-b7f8-48b7-a2f0-6738e9e6bbdf to study 7e497016-20a0-49ea-9466-a8e355813968 with site number s-1794795772482", "3438: INFO \u2718 447 [training] \u203a tests/training/regular.spec.js:180:3 \u203a Regular Training \u203a TC-07: Verify completing regular training activity as PI (retry #1) (5.2m)", "3439: INFO [module-cards] training: red card posted at 49.9 min", "3440: INFO Confirm EDL sent one cross-EDL decision and the card emptied", "3441: INFO \u2713 463 [study] \u203a tests/study/studyFeedEdlReview.spec.js:48:3 \u203a Study feed EDL review views \u203a TC-15: Proposals show the whole site by EDL; Reject acts on the ticked ones and Confirm EDL on the rest (1.2m)", "\u2026", "13425: INFO reports/workPlanType-AI-Teammates--1ab35-tones-persists-after-reload-workplan-retry1/trace.zip", "13426: INFO yarn playwright show-trace reports/workPlanType-AI-Teammates--1ab35-tones-persists-after-reload-workplan-retry1/trace.zip", "13427: INFO reports/workPlanType-AI-Teammates--d0176-plan-type-hidden-for-in-use-workplan-retry1/trace.zip", "13428: INFO 57) [training] \u203a tests/training/regular.spec.js:180:3 \u203a Regular Training \u203a TC-07: Verify completing regular training activity as PI", "13429: INFO Locator: getByText('Reviewed and signed.', { exact: true })", "13430: INFO - Expect \"toBeVisible\" getByText('Reviewed and signed.', { exact: true }) with timeout 50000ms", "13431: INFO - waiting for getByText('Reviewed and signed.', { exact: true })", "\u2026", "14251: INFO [workplan] \u203a tests/workplan/workPlanType.spec.js:28:5 \u203a AI Teammates - Work Plans \u203a Plan Types \u203a TC-01: Create plan type lands on detail and appears in list", "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" ] }
The test's history
{ "pattern": "regression", "meaning": "failed the last 6 runs in a row after passing 1 of the 1 before: something changed, so it is not flaky", "newest_first": "F F F F F F P", "failing_in_a_row": 6, "this_error_in_a_row": 1, "this_error_since_build": 880, "note": "the red streak is 6 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/regular.spec.js", "from_line": 180, "failing_line": 180, "code": "180> test('TC-07: Verify completing regular training activity as PI', async ({\n181 pi\n182 }) => {\n183 await pi.searchStudy(studyName);\n184 await pi.selectTaskTab();\n185 const piTaskName = `Complete ${trainingDetails.name} training for ${piUser.userName}`;\n186 await pi.resetFilter();\n187 await pi.selectTask(piTaskName);\n188 await pi.completeRegularTrainingActivity(\n189 trainingDetails.name,\n190 piUser.userName\n191 );\n192 await pi.verifyAndSignCertificate(piUser.userName);\n193 await expect(pi.trainingPassStatement).not.toBeVisible();\n194 });\n195 \n196 test('TC-08: Verify training status and assign training manually', async ({\n197 trainingPage\n198 }) => {\n199 await trainingPage.searchStudy(studyName);\n200 await trainingPage.studyTrainingsTab.click();\n201 await trainingPage.allTrainingTab.click();\n202 await expect(trainingPage.trainingsSearchInput).toBeVisible();\n203 await trainingPage.openTraining(trainingDetails.name);\n204 await trainingPage.assignTrainingManually(trainingDetails.name, [\n205 recruiterUser.userName,\n206 qaUser.userName,\n207 daUser.userName\n208 ]);\n209 await trainingPage.trainingSlideoverClose.click();\n210 await trainingPage.openTraining(trainingDetails.name);\n211 await trainingPage.verifyTraineesInSidePanel([\n212 { name: piUser.userName, status: 'Passed' },\n213 { name: recruiterUser.userName, status: 'Pending' },\n214 { name: qaUser.userName, status: 'Pending' },\n215 { name: daUser.userName, status: 'Pending' }\n216 ]);\n217 });\n218 \n219 test('TC-09: Verify starting training as CRC and keeping it incomplete', async ({\n220 recruiter\n221 }) => {\n222 await recruiter.searchStudy(studyName);\n223 await recruiter.selectTaskTab();\n224 const recruiterTaskName = `Complete ${trainingDetails.name} training for ${recruiterUser.userName}`;\n225 await recruiter.resetFilter();\n226 await recruiter.selectTask(recruiterTaskName);\n227 await recruiter.startTrainingActivity(\n228 trainingDetails.name,\n229 trainingTemplateName\n230 );\n231 await recruiter.trainingBackButton.click();\n232 });\n233 \n234 test('TC-10: Verify failing quiz then continuing as Analyst', async ({\n235 qa\n236 }) => {\n237 await qa.searchStudy(studyName);\n238 await qa.selectTaskTab();\n239 const analystTaskName = `Complete ${trainingDetails.name} training for ${qaUser.userName}`;\n240 await qa.resetFilter();\n241 await qa.selectTask(analystTaskName);\n242 await qa.startTrainingActivity(trainingDetails.name, trainingTemplateName);\n243 \n244 await qa.verifyHeading('Video');\n245 await qa.waitForTime(20000);\n246 await qa.continueButton.click();\n247 \n248 logger.info('Continuing through Documents section');\n249 await qa.reviewButton.click();\n250 await expect(" }
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/regular.spec.js >> Regular Training >> TC-07: Verify completing regular training activity as PI\n- Location: tests/training/regular.spec.js:180:3\n\n# Error details\n\n```\nError: expect(locator).toBeVisible() failed\n\nLocator: getByText('Reviewed and signed.', { exact: true })\nExpected: visible\nTimeout: 50000ms\nError: element(s) not found\n\nCall log:\n - Expect \"toBeVisible\" getByText('Reviewed and signed.', { exact: true }) with timeout 50000ms\n - waiting for getByText('Reviewed and signed.', { exact: true })\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 - heading \"No records\" [level=3]\n \u2026\n | ^ Error: expect(locator).toBeVisible() failed" }
The code where it failed
{ "path": "e2e/pages/visitExecution/visitExecStudy.page.js", "failing_line": 5025, "code": "5000 await this.page\n5001 .getByRole('button', { name: 'Signer name' })\n5002 .first()\n5003 .click();\n5004 await this.waitForTime(1000);\n5005 await this.page\n5006 .getByRole('button', { name: 'Signature date' })\n5007 .first()\n5008 .click();\n5009 await this.waitForTime(1000);\n5010 await this.page\n5011 .getByRole('button', { name: 'Signature date' })\n5012 .last()\n5013 .click();\n5014 await this.waitForTime(2000);\n5015 await this.page.getByTestId('tools.template-fields-toolbar.save').click();\n5016 await this.waitForTime(2000);\n5017 await this.markAsReviewedButton.click();\n5018 logger.info('Marking documents as reviewed');\n5019 await this.waitForTime(2000);\n5020 await this.sign(userName);\n5021 await this.waitForTime(1000);\n5022 await expect(this.trainingCertificateSignedText).toBeVisible();\n5023 logger.info('Verifying the certificate can be viewed again');\n5024 await expect(this.trainingCertificateButton).toHaveText('View certificate');\n5025> await this.finishButton.click();\n5026 }\n5027 }" }
Commits in the window
{ "between": "build 849 (last pass, started 2026-10-26T01:31:57Z) and build 852 (first failure of the streak, started 2026-10-28T01:31:49Z)", "test_repo": { "repo": "tildabio/cleopatra", "range": "2026-10-26T01:31 to 2026-10-28T01:31 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:** the automation suite (e2e): the test is wrong. **What failed:** `expect(locator).toBeVisible() failed` **On screen when it failed:** The page showed a 'No records' list, not the training summary with the certificate and Finish button. ![The page when the test failed](https://uploads.linear.app/d1b9dc36-3ae8-49c0-8ea8-02f9d1566efc/6fc12740-d0f2-4d1e-8cf6-2e59991602e9/ef852fe2-5ca5-430f-8ada-8f52a3646000) **The test is wrong**, confidence medium. 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/36b9f094468f60) The test's post-sign steps are out of date. `verifyAndSignCertificate` (visitExecStudy.page.js:5022-5025) still expects to stay on the Summary page after signing. It waits for 'Reviewed and signed.', checks the button reads 'View certificate', then clicks Finish. Commit 61adba3a2 (Nov 14, 'Reviewing the training certificate completes the training') changed that. `training-final-results.tsx` `reviewCertificate` now calls `completeTraining()` once the review saves, and that ends with `runtime.closeTraining()`. That fits the screen: the page showed 'No records' (the task list), not the certificate. It also fits the retry, where Finish was inert or detached. This is an intended change, and the e2e helper was not updated. Verified: the code and the diff. Assumed: the 'No records' page is the closed training. I did not open the trace. The exportsvc 'Cache not found' errors and the 'not_ready' cluster prep are unrelated to this failure. The `/api/studio/events` 404s were not investigated. TBUT TC-07 and the second `verifyAndSignCertificate` call at regular.spec.js:339 probably fail the same way. **Suspect commit:** [61adba3a2](https://github.com/tildabio/cleopatra/commit/61adba3a228045fba8e780233652a406108d4bf9) Reviewing the training certificate completes the training (#16820) (taylorfutral) **Service:** sense **Assigned to:** [email protected] (last changed visitExecStudy.page.js (450fde1f8); the test agent opens the pull request once this is in Ready for Development). **Proposed fix:** In `verifyAndSignCertificate` (visitExecStudy.page.js), end after `this.sign(userName)`. Remove the `trainingCertificateSignedText` check, the 'View certificate' check, and `finishButton.click()` (lines 5022-5025). Instead, assert that the training closed, for example that the task list shows again or the training status is Completed or Passed. In regular.spec.js:193, drop `expect(pi.trainingPassStatement).not.toBeVisible()` or change it to assert the closed state. Check the same flow in tbut.spec.js:154 and :304, and regular.spec.js:339. **Failing tests (1):** - [regular::TC-07: Verify completing regular training activity as PI](https://xray.tilda.pizza/tests/case/bb3320fcdd1d526c) (failing since build 852) **Error:** ``` expect(locator).toBeVisible() failed ``` The test agent picks this ticket up and opens the pull request. ```yaml suite: ui feature: fix-regular find: true fix: true target_file: e2e/tests/training/regular.spec.js failing_tests: - 'regular::TC-07: Verify completing regular training activity as PI' acceptance: - Each test in failing_tests passes on the automation cluster. - 'No assertion is weakened to make a test pass: the test still checks the behaviour it was written for.' request: 'Fix existing tests that fail on master. Do not write new coverage. Error: expect(locator).toBeVisible() failed Diagnosis: The test''s post-sign steps are out of date. `verifyAndSignCertificate` (visitExecStudy.page.js:5022-5025) still expects to stay on the Summary page after signing. It waits for ''Reviewed and signed.'', checks the button reads ''View certificate'', then clicks Finish. Commit 61adba3a2 (Nov 14, ''Reviewing the training certificate completes the training'') changed that. `training-final-results.tsx` `reviewCertificate` now calls `completeTraining()` once the review saves, and that ends with `runtime.closeTraining()`. That fits the screen: the page showed ''No records'' (the task list), not the certificate. It also fits the retry, where Finish was inert or detached. This is an intended change, and the e2e helper was not updated. Verified: the code and the diff. Assumed: the ''No records'' page is the closed training. I did not open the trace. The exportsvc ''Cache not found'' errors and the ''not_ready'' cluster prep are unrelated to this failure. The `/api/studio/events` 404s were not investigated. TBUT TC-07 and the second `verifyAndSignCertificate` call at regular.spec.js:339 probably fail the same way. Proposed change: In `verifyAndSignCertificate` (visitExecStudy.page.js), end after `this.sign(userName)`. Remove the `trainingCertificateSignedText` check, the ''View certificate'' check, and `finishButton.click()` (lines 5022-5025). Instead, assert that the training closed, for example that the task list shows again or the training status is Completed or Passed. In regular.spec.js:193, drop `expect(pi.trainingPassStatement).not.toBeVisible()` or change it to assert the closed state. Check the same flow in tbut.spec.js:154 and :304, and regular.spec.js:339.' ``` +++ Agent notes Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 20 lookups in the code and its history. Group `triage:36b9f094468f60` (one issue per root cause). A wrong verdict can be corrected on the run page in X-ray. +++