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:19:23.
› →|
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] Study Trainings test expects the table before picking a study, but the empty default study shows 'No trainings

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

The verdict

Fix is in
the automation suite (e2e): the test is wrong
Issue
ENG-8922 · Completed
Owner
[email protected] (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
new, this error since build 882
Suspect commit
f9b005e8b [E2E] Cover the Trainings module's Study Trainings, Study Team and Site Training Logs and Reports (ENG-8870) (#16859) (tilda-gitbot[bot])
On screen
The Study Trainings list with the scope picker and tabs visible, and an empty-state heading 'No trainings' where the table should be.
Branches
fails on master; this test is not in the production suite (e2e-tests-production build 860).
The test fails at trainingsStudyViews.spec.js:63, `expect(trainings.trainingsTable).toBeVisible()`. That locator is `getByTestId('trainings-table')`. The page shows a 'No trainings' heading instead. Before any pick, the Study Trainings list uses the default scope. `useTeamScopeValue` in scope-select.tsx picks the first study via `pickTeamScope`, not the study the test seeded. That study has no trainings. The trainings request returned 200 with no rows. When a DataTable has no rows, `LoadedContent` in packages/ui/data-table/data-table.tsx:780-788 renders only the placeholder. Its testId is `trainings-table-empty-state`, so `trainings-table` never exists. The spec was added on 2026-11-16 in f9b005e8b. This is its first run, so it has never passed. The retry failed the same way. The cluster findings do not touch this request. I did not check what the default study is on the automation cluster.

Proposed fix

In trainingsStudyViews.spec.js, delete the `expect(trainings.trainingsTable).toBeVisible()` at line 63. Move it to after `pickStudy(seed.studyName, studyId)` at line 65, and keep the `trainingRow` check there. If you want a check before the pick, use `trainings.trainingsTable.or(page.getByTestId('trainings-table-empty-state'))`.

History of this root cause

  • filed ENG-8922 · build 882 6d ago
    The test is wrong, confidence high; 1 test; to nobody in Backlog

Tests 1

Oldest to newest, up to 30 runs. Green passed, red failed with this error, amber failed with another error. Skipped and collapsed runs are left out. Newest build: 882.

How the agent decided

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

What it looked up (18, in order)

1. search_code repo=cleopatra, text=trainings-table · 933 chars back
e2e/pages/training/training.page.js 12: this.trainingsSearchInput = page.getByTestId('trainings-table-search'); 23: this.activeTab = page.getByTestId('trainings-table-tabs-active'); 24: this.inactiveTab = page.getByTestId('trainings-table-tabs-inactive'); 25: this.archivedTab = page.getByTestId('trainings-table-tabs-archived'); e2e/pages/training/trainingsModule.page.js 39: this.trainingsTable = page.getByTestId('trainings-table'); 40: this.trainingsSearch = page.getByTestId('trainings-table-search'); e2e/pages/training/orgTrainings.page.js 24: this.trainingsTable = page.getByTestId('trainings-table'); apps/sense/src/modules/studio/routes/trainings.tsx 201: testId="trainings-table" apps/sense/src/components/trainings/trainings-list.tsx 221: testId="trainings-table" apps/sense/src/modules/settings/routes/organizations/organization/tmf-templates/tmf-template/ai-training.tsx 53: testId="trainings-table"
2. search_code repo=cleopatra, text=No trainings · 478 chars back
apps/sense/src/components/trainings/my-trainings.tsx 232: title: 'No trainings', apps/sense/src/components/trainings/trainings-list.tsx 217: title: 'No trainings', apps/sense/src/modules/studio/routes/trainings.tsx 205: title: 'No trainings found', apps/sense/src/components/actor-slideover/trainings.tsx 97: title="No trainings assigned" e2e/pages/platform/userProfile/licenseTabData.js apps/sense/src/modules/studies/routes/studies/study/trainings-log-export-modal.tsx
3. read_file repo=cleopatra, path=apps/sense/src/components/trainings/trainings-list.tsx, start_line=150, end_line=260 · 2615 chars back
apps/sense/src/components/trainings/trainings-list.tsx (225 lines), lines 150-225: 150 ]; 151 }, [allColumns, scope.type, scopeLabel]); 152 const menu = useTrainingsMenu(scope, logPath); 153 const { openTrainingSlideover } = useTrainingSlideover(); 154 useLinkedTrainingSlideover(scope, query.data.trainings, query.isLoading); 155 const { openTrainingModal } = useTrainingModal(); 156 const canAddTraining = useCanManageTrainings(scope); 157 158 const tabs = useMemo( 159 () => [ 160 { 161 value: 'active', 162 label: 'Active', 163 count: query.isLoading ? undefined : query.data.categoryCounts.active 164 }, 165 { 166 value: 'inactive', 167 label: 'Inactive', 168 count: query.isLoading ? undefined : query.data.categoryCounts.inactive 169 }, 170 { 171 value: 'archived', 172 label: 'Archived', 173 count: query.isLoading ? undefined : query.data.categoryCounts.archived 174 } 175 ], 176 [query.data.categoryCounts, query.isLoading] 177 ); 178 179 const actions = canAddTraining && ( 180 <Button 181 testId={`${testIdPrefix}.add-training`} 182 variant="primary" 183 label="Add training" 184 onClick={() => openTrainingModal({ scope })} 185 /> 186 ); 187 188 return ( 189 <PageContent> 190 <DataTable 191 actionsStart={actionsStart} 192 tabActions={embedded ? actionsEnd : actions} 193 … (1115 more characters not kept)
4. commits repo=cleopatra, path=apps/sense/src/components/trainings/trainings-list.tsx, since=2026-10-01T00:00:00Z · 1865 chars back
8f5c78a67 2026-11-13T21:14 ramyala: Trainings: Org and Study Trainings tabs with logs (ENG-8591) (#16814) beac1f8a3 2026-11-13T17:02 ramyala: Trainings: split Team Trainings into Org Trainings and Study Trainings (ENG-8591) (#16777) a3ce2a6d0 2026-11-13T08:51 ramyala: Trainings: tab counts, progress bars, and training log and slideover nits (#16776) b3907af6c 2026-11-12T11:51 varuntilda: Varun/move scope select to filter bar (#16490) e7c09e324 2026-11-11T02:38 ramyala: Gate org Team Trainings on the Training Management license (#16668) c10379fa4 2026-11-10T16:10 poojalodhi: Delete the old Studio graph editor (ENG-8575) (#16630) 7a0d10ac5 2026-11-10T12:56 arzatskis: Save the tasks, trainings, templates, patients, finance, events, studies and staff tables' state and restore it from their route loaders (#16620) 2a57f2e7d 2026-11-03T07:54 arzatskis: Remove the newFilters toggle and the old table toolbar it gated (#16331) 0f65aaf32 2026-10-30T13:59 danherberttilda: Filter Team Trainings by study and drop the My Trainings scope picker (ENG-8289) (#16334) 8e43ebde6 2026-10-27T11:37 arzatskis: Show My and Team Trainings as header tabs and move the Training Log toolbar into DataTable (#16159) 50f132b46 2026-10-27T09:06 arzatskis: Point remaining trainings icons at graduation-cap (#16172) 8be894f41 2026-10-27T08:27 gedi-tilda: feat(ui): outlined object icons, 24px list size, training icons (#16167) b0133a773 2026-10-26T07:48 arzatskis: Drop the tableV9 feature toggle and render DataTab … (365 more characters not kept)
5. commits repo=cleopatra, path=e2e/tests/training/trainingsStudyViews.spec.js · 163 chars back
f9b005e8b 2026-11-16T13:03 tilda-gitbot[bot]: [E2E] Cover the Trainings module's Study Trainings, Study Team and Site Training Logs and Reports (ENG-8870) (#16859)
6. page_snapshot text=scope · 2108 chars back
225: 58 | await trainings.openTrainingsModule(); 226: 59 | await trainings.studyTrainingsTab.click(); 227: 60 | await expect(trainings.page).toHaveURL(/\/trainings\/study\/list/); 228: 61 | await expect(trainings.studyListTab).toBeVisible(); 229: 62 | await expect(trainings.scopePicker).toBeVisible(); 230: > 63 | await expect(trainings.trainingsTable).toBeVisible(); 231: | ^ Error: expect(locator).toBeVisible() failed 232: 64 | 233: 65 | await trainings.pickStudy(seed.studyName, studyId); 234: 66 | await expect(trainings.scopePicker).toContainText(seed.studyName); 235: 67 | await expect(trainings.trainingRow(seed.trainingName)).toBeVisible(); 236: 68 | logger.info('Study Trainings list shows the seeded training'); 237: 69 | }); 238: 70 | … 244: 76 | await trainings.studyTeamLogTab.click(); 245: 77 | await expect(trainings.page).toHaveURL(/\/trainings\/study\/team-log/); 246: 78 | 247: 79 | await trainings.pickStudy(seed.studyName, studyId); 248: 80 | await expect(trainings.scopePicker).toContainText(seed.studyName); 249: 81 | await expect(trainings.logGrid).toBeVisible(); 250: 82 | await expect(trainings.logTrainingColumn(seed.trainingName)).toBeVisible(); 251: 83 | await expect(trainings.logTraineeRow(seed.trainee)).toBeVisible(); 252: 84 | logger.info('Study Team Training Log lists the trai … (608 more characters not kept)
7. read_file repo=cleopatra, path=e2e/tests/training/trainingsStudyViews.spec.js, start_line=1, end_line=54 · 1989 chars back
e2e/tests/training/trainingsStudyViews.spec.js (114 lines), lines 1-54: 1 import logger from '../../lib/logger/log'; 2 import commonData from '../../pages/common/commonData'; 3 import trainingsModuleData from '../../pages/training/trainingsModuleData'; 4 import { expect, test } from '../../utils/fixtures/trainingsModule'; 5 6 test.describe.configure({ mode: 'serial' }); 7 test.describe('Trainings module - Study Trainings, its logs and Reports', () => { 8 const croOrg = commonData.croOrg; 9 const seed = trainingsModuleData.tc(); 10 let studyId; 11 12 test.beforeAll( 13 async ({ 14 studyApiUtility, 15 studioApiUtility, 16 trainingApiUtility, 17 orgApiUtility, 18 userApiUtility 19 }) => { 20 const study = await studyApiUtility.createStudy(seed.studyName, croOrg); 21 studyId = study.studyId; 22 await studioApiUtility.createRegularTraining(croOrg, { 23 name: seed.activityName 24 }); 25 const activity = await studioApiUtility.getStudioActivities( 26 croOrg, 27 seed.activityName, 28 { trainingFlag: true } 29 ); 30 await studioApiUtility.publishActivity(croOrg, seed.activityName, { 31 trainingFlag: true 32 }); 33 const training = await trainingApiUtility.createStudyTraining( 34 croOrg, 35 study.studyId, 36 { name: seed.trainingName, activityId: activity.tildaid } 37 ); 38 const trainee = await userApiUtility. … (489 more characters not kept)
8. search_code repo=cleopatra, text=placeholder, path_prefix=apps/sense/src/components/data-table · 30 chars back
no match on the default branch
9. read_file repo=cleopatra, path=apps/sense/src/components/trainings/trainings-list.tsx, start_line=1, end_line=150 · 4946 chars back
apps/sense/src/components/trainings/trainings-list.tsx (225 lines), lines 1-150: 1 import { useMemo } from 'react'; 2 import pluralize from 'pluralize'; 3 import { AxiosError } from 'axios'; 4 import { 5 Button, 6 ColumnDef, 7 DataTable, 8 IconThumbnail, 9 FetchDataProps, 10 Media, 11 PageContent, 12 defineDataTable, 13 useDataTableState 14 } from 'ui'; 15 import { TrainingScope, useCanManageTrainings } from 'api'; 16 import { 17 Training, 18 useTrainingsColumns, 19 useTrainingsMenu, 20 useTrainingsQuery 21 } from 'modules/studies/hooks'; 22 import { getAudienceLabel } from 'modules/studies/hooks/trainingAudience'; 23 import { useTrainingSlideover, useTrainingModal } from 'hooks'; 24 import { useLinkedTrainingSlideover } from './useLinkedTrainingSlideover'; 25 26 export const trainingsTable = defineDataTable({ 27 id: 'trainings', 28 tabs: ['active', 'inactive', 'archived'], 29 urlKeys: { tab: 'category' }, 30 defaults: { tab: 'active' }, 31 toQueryParams: (state): FetchDataProps => ({ 32 pageIndex: state.page, 33 pageSize: state.pageSize, 34 sort: state.sort?.id, 35 desc: state.sort?.desc, 36 search: state.search 37 }) 38 }); 39 40 // Org trainees are the org's own members: no audience scope, no sites. 41 const ORG_EXCLUDED_COLUMNS = ['scope', 'sites']; 42 // Both lists lead with name, status, version, roles / labels, overdue and completed; the rest are a column toggle away. 43 const LEADING_COLUMNS = [ 44 'name', … (3446 more characters not kept)
10. search_code repo=cleopatra, text=TrainingsList, path_prefix=apps/sense/src · 407 chars back
apps/sense/src/components/trainings/trainings-list.tsx 118: export const TrainingsList: React.FC<Props> = ({ apps/sense/src/modules/trainings/routes/org/list.tsx 4: TrainingsList, 12: <TrainingsList apps/sense/src/modules/trainings/routes/study/list.tsx 3: TrainingsList, 22: <TrainingsList apps/sense/src/modules/studies/routes/studies/study/trainings.tsx 6: TrainingsList, 19: <TrainingsList
11. read_file repo=cleopatra, path=e2e/pages/training/trainingsModule.page.js, start_line=1, end_line=140 · 3574 chars back
e2e/pages/training/trainingsModule.page.js (89 lines), lines 1-89: 1 import { expect } from '@playwright/test'; 2 import logger from '../../lib/logger/log'; 3 import BasePage from '../common/base.page'; 4 5 export default class TrainingsModulePage extends BasePage { 6 constructor(page) { 7 super(page, 'trainings'); 8 9 this.trainingsNav = page.getByTestId('org-trainings-nav'); 10 11 // Module header tabs 12 this.studyTrainingsTab = page.getByTestId( 13 'app-header-org-trainings-study-tab' 14 ); 15 this.reportsTab = page.getByTestId('app-header-org-trainings-reports-tab'); 16 17 // Second row of tabs under Study Trainings; each tab's testId ends in its path 18 this.studySubTabs = page.getByTestId('study-trainings-tabs'); 19 this.studyListTab = this.studySubTabs.locator( 20 '[data-testid^="org-trainings-study-list-tab-tab"]' 21 ); 22 this.studyTeamLogTab = this.studySubTabs.locator( 23 '[data-testid^="org-trainings-study-team-log-tab-tab"]' 24 ); 25 this.studySiteLogTab = this.studySubTabs.locator( 26 '[data-testid^="org-trainings-study-site-log-tab-tab"]' 27 ); 28 29 // Scope picker shared by the list and both logs 30 this.scopePicker = page.getByTestId('org-trainings.scope'); 31 this.scopeMenu = page.getByRole('dialog').filter({ 32 has: page.getByRole('menu') 33 }); 34 this.scopeSearch = this.scopeMenu.getByRole('searchbox'); 35 this.scopeOptions = this.scopeMe … (2074 more characters not kept)
12. read_file repo=cleopatra, path=apps/sense/src/modules/trainings/routes/study/list.tsx, start_line=1, end_line=60 · 1034 chars back
apps/sense/src/modules/trainings/routes/study/list.tsx (32 lines), lines 1-32: 1 import { restoreDataTables } from 'app/data-table-storage'; 2 import { 3 TrainingsList, 4 trainingsTable 5 } from 'components/trainings/trainings-list'; 6 import { 7 ScopeSelect, 8 useTeamScopeLabel, 9 useTeamTrainingScope 10 } from '../../components/scope-select'; 11 import { TeamActions } from '../../components/team-actions'; 12 import { getTrainingLogPath } from '../../components/training-log-path'; 13 14 export const loader = restoreDataTables(trainingsTable); 15 16 export const Component: React.FC = () => { 17 const scope = useTeamTrainingScope(); 18 const scopeLabel = useTeamScopeLabel(); 19 if (!scope) return null; 20 21 return ( 22 <TrainingsList 23 scope={scope} 24 testIdPrefix="org-trainings" 25 logPath={getTrainingLogPath} 26 scopeLabel={scopeLabel} 27 actionsStart={<ScopeSelect />} 28 actionsEnd={<TeamActions scope={scope} />} 29 embedded 30 /> 31 ); 32 };
13. search_code repo=cleopatra, text=placeholder, path_prefix=packages/ui/src · 30 chars back
no match on the default branch
14. search_code repo=cleopatra, text=export const DataTable · 774 chars back
packages/ui/data-table/state/storage.ts 14: export const DataTableStorageContext = createContext<DataTableStorage | null>( packages/ui/data-table/data-table-row.tsx 19: export const DataTableRowsContext = 43: export const DataTableRow: React.FC<DataTableRowProps> = ({ 64: export const DataTableGroupCell: React.FC<DataTableGroupCellProps> = ({ 93: export const DataTableSpanCell: React.FC<DataTableSpanCellProps> = ({ packages/ui/data-table/state/context.tsx 25: export const DataTableProvider = < apps/sense/src/app/data-table-storage.tsx 39: export const DataTableStorageProvider: React.FC<{ packages/ui/data-table/data-table-filters.tsx 39: export const DataTableFilters: React.FC<DataTableFiltersProps> = ({ packages/ui/data-table/data-table.features.ts
15. read_file repo=cleopatra, path=apps/sense/src/modules/trainings/components/scope-select.tsx, start_line=1, end_line=120 · 4547 chars back
apps/sense/src/modules/trainings/components/scope-select.tsx (191 lines), lines 1-120: 1 import { useCallback, useMemo, useState } from 'react'; 2 import { atom, useAtomValue, useSetAtom } from 'jotai'; 3 import { DropdownElement, FilterDropdown, useDebounce } from 'ui'; 4 import { useSearchParams } from 'router'; 5 import { useStoredOrganization } from 'common'; 6 import { useTrainingSlideover } from 'hooks'; 7 import { LINKED_TRAINING_PARAM } from 'components/trainings/url-params'; 8 import { 9 studyTrainingScope, 10 TrainingScope, 11 useCurrentUserRoles, 12 useAppVisibilityQuery, 13 useStudiesInfiniteQuery 14 } from 'api'; 15 import { pickTeamScope } from './pick-team-scope'; 16 17 // Shared by the Study Trainings tabs, so the chosen study carries from the 18 // list to its logs. Tagged with its org so switching orgs falls back to the 19 // first study instead of querying the previous org's study. 20 interface TeamScope { 21 orgAlias: string; 22 value: string; 23 name: string; 24 } 25 26 const teamScopeAtom = atom<TeamScope | undefined>(undefined); 27 28 interface ScopeOption { 29 label: string; 30 value: string; 31 } 32 33 // A non-org-admin is here as a study admin, so only the studies they administer, which the 34 // backend sends in name order so the default stays put. Org admins have no list. 35 const useAdministeredStudies = () => { 36 const { isAdmin, orgId } = useCurrentUserRoles(); 37 const { data: apps } = useAppVisibilityQuery(); 38 … (3047 more characters not kept)
16. search_code repo=cleopatra, text=placeholder, path_prefix=packages/ui/data-table · 699 chars back
packages/ui/data-table/editable-cell.tsx 8: placeholder?: string; 21: placeholder = 'Add...', 36: label={isSet ? value : placeholder} packages/ui/data-table/data-table-toolbar.tsx 71: placeholder={searchPlaceholder} packages/ui/data-table/data-table-filters.types.ts 35: placeholder?: string; 44: placeholder?: string; packages/ui/data-table/data-table.tsx 115: placeholder?: EmptyStateProps; 235: placeholder, 786: placeholder={ 787: placeholder && { packages/ui/data-table/data-table.types.ts 158: placeholder?: string; 165: placeholder?: string; packages/ui/data-table/data-table-filter-chips.tsx 483: placeholder={item.placeholder} 541: placeholder={item.placeholder}
17. read_file repo=cleopatra, path=packages/ui/data-table/data-table.tsx, start_line=700, end_line=830 · 4781 chars back
packages/ui/data-table/data-table.tsx (1108 lines), lines 700-830: 700 if (isSelectColumnClick && selectable) { 701 event.stopPropagation(); 702 if (lockedRowIds?.includes(row.id)) return; 703 row.toggleSelected(!row.getIsSelected()); 704 return; 705 } 706 707 if (target.closest('[data-row-expand-control]')) { 708 return; 709 } 710 711 if (row.getCanExpand() && expandRow) { 712 row.toggleExpanded(); 713 } else if (hasRowClick) { 714 onRowClick(row.original, rowsData); 715 } else if (selectable) { 716 if (lockedRowIds?.includes(row.id)) return; 717 row.toggleSelected(!row.getIsSelected()); 718 } 719 } 720 }; 721 }; 722 723 const renderSelectCell = (rowId: string, content?: React.ReactNode) => { 724 const selectCell = rowsById 725 .get(rowId) 726 ?.getAllCells() 727 .find((cell) => cell.column.id === 'select'); 728 if (!selectCell) return null; 729 730 return ( 731 <td {...getCellAttributes(selectCell.getContext())}> 732 {content ?? ( 733 <div className={s.cell}> 734 {flexRender( 735 selectCell.column.columnDef.cell, 736 selectCell.getContext() 737 )} 738 </div> 739 )} 740 </td> 741 ); 742 }; 743 744 const renderGroupLabel = (row: Row<T>) => { 745 const cell = row 746 … (3281 more characters not kept)
18. json · 30 chars back
repo must be cleopatra or main

What it was shown (build 882, 38.6 KB)

The run
{ "job": "e2e-tests-master", "build": 882, "kind": "ui-tests", "result": "UNSTABLE", "started": "2026-11-17T01:35:54Z", "tests": 742, "failed": 40, "test_commit": "e0858153f", "branch": "master", "cluster_prepared": { "mode": "verify", "result": "ready", "product_commit": "e770fbf" }, "deployed_build_shown_on_the_page": { "frontend": "main-405c5f3", "backend": "master-c5bdd62" } }
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": "job.failing", "severity": "warning", "subject": "pubsub.org-soft-delete-automation-authz-sub", "title": "pubsub.org-soft-delete-automation-authz-sub: 6 failed runs in the last 6 h \u2014 Neo4jError: Neo.TransientError.Transaction.DeadlockDetected (ForsetiClient[transactionId=?, clientId", "opened_minutes_after_run_start": 144 }, { "kind": "service.silent", "severity": "warning", "subject": "workplansvc", "title": "workplansvc on automation has served nothing for 1.2 h; at this hour it normally serves about 318 calls/hour", "opened_minutes_after_run_start": 171 }, { "kind": "endpoint.4xx_spike", "severity": "warning", "subject": "feedsvc", "title": "feedsvc GET /studies/:id/feed/news: 4xx \u2014 23 of 23 calls (100 %; other 4xx\u00d723) in the last 15 min \u2014 it usually has none", "opened_minutes_after_run_start": 69 }, { "kind": "error.novel", "severity": "warning", "subject": "finsvc", "title": "finsvc: a new error shape, 6\u00d7 in the last hour, never seen in 90 days (error in pubsub handler \u2014 failed to get budget (siteId=?, studyId=?): )", "opened_minutes_after_run_start": 160 } ], "long_standing_findings_left_out": 19, "pods_in_trouble_during_the_run": [], "deploys_during_the_run": [] }
The group
{ "tests": 1, "suite": "trainingsStudyViews", "members": [ { "test": "trainingsStudyViews::TC-01: Study Trainings lists the picked study trainings", "pattern": "new", "meaning": "first seen failing", "newest_first": "F", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 882, "failing_since_build": 882, "last_passed_build": null } ] }
The failure
{ "test": "trainingsStudyViews::TC-01: Study Trainings lists the picked study trainings", "status": "failed", "message": "expect(locator).toBeVisible() failed", "traceback_tail": " reports/trainingsStudyViews-Traini-a27c8--the-picked-study-trainings-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/trainingsStudyViews-Traini-a27c8--the-picked-study-trainings-training/error-context.md\n\n Retry #1 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\n Error: expect(locator).toBeVisible() failed\n\n Locator: getByTestId('trainings-table')\n Expected: visible\n Timeout: 50000ms\n Error: element(s) not found\n\n Call log:\n - Expect \"toBeVisible\" getByTestId('trainings-table') with timeout 50000ms\n - waiting for getByTestId('trainings-table')\n\n\n 61 | await expect(trainings.studyListTab).toBeVisible();\n 62 | await expect(trainings.scopePicker).toBeVisible();\n > 63 | await expect(trainings.trainingsTable).toBeVisible();\n | ^\n 64 |\n 65 | await trainings.pickStudy(seed.studyName, studyId);\n 66 | await expect(trainings.scopePicker).toContainText(seed.studyName);\n at /home/jenkins/agent/workspace/ui-tests-master/e2e/tests/training/trainingsStudyViews.spec.js:63:44\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/trainingsStudyViews-Traini-a27c8--the-picked-study-trainings-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/trainingsStudyViews-Traini-a27c8--the-picked-study-trainings-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/trainingsStudyViews-Traini-a27c8--the-picked-study-trainings-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/trainingsStudyViews-Traini-a27c8--the-picked-study-trainings-training-retry1/trace.zip\n Usage:\n\n yarn playwright show-trace reports/trainingsStudyViews-Traini-a27c8--the-picked-study-trainings-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": "e2e7e579e75dda83fd3a8a20093a2627", "method": "GET", "path": "/api/roles", "status": "200", "error": "None" }, { "trace_id": "e2e7e579e75dda83fd3a8a2b47c996d2", "method": "GET", "path": "/api/myprofile/visibility/v2/study/2e9afea6-aee9-45fb-b8c8-dbc71353ec71", "status": "200", "error": "None" }, { "trace_id": "e2e7e579e75dda83fd3a8a228cae7230", "method": "GET", "path": "/api/trialexec/v2/study/2e9afea6-aee9-45fb-b8c8-dbc71353ec71/training", "status": "200", "error": "None" }, { "trace_id": "e2e7e579e75dda83fd3a8a2d2c3fc8ee", "method": "POST", "path": "/api/journey", "status": "204", "error": "None" }, { "trace_id": "e2e7e579e75dda83fd3a8a21b5fb2356", "method": "GET", "path": "/api/studio/events", "status": "200", "error": "None" } ], "errors_the_services_logged_for_these_requests": "none: no service logged an error under these requests' trace ids", "raised_at": "e2e/tests/training/trainingsStudyViews.spec.js:63", "code_frame": " 61 | await expect(trainings.studyListTab).toBeVisible();\n 62 | await expect(trainings.scopePicker).toBeVisible();\n> 63 | await expect(trainings.trainingsTable).toBeVisible();\n | ^\n 64 |\n 65 | await trainings.pickStudy(seed.studyName, studyId);\n 66 | await expect(trainings.scopePicker).toContainText(seed.studyName);", "playwright_call_log": [ "- Expect \"toBeVisible\" getByTestId('trainings-table') with timeout 50000ms", "- waiting for getByTestId('trainings-table')" ], "attempts": { "errors": [ "Error: expect(locator).toBeVisible() failed", "Error: expect(locator).toBeVisible() failed" ], "note": "every attempt failed the same way: deterministic, not a race" } }
Console lines about this test
{ "from": "console.log", "lines": [ "4248: INFO Training documents uploaded and categorized", "4249: INFO Wizard opened on Recipients; site selected", "4250: INFO \u2713 347 [training] \u203a tests/training/regular.spec.js:34:3 \u203a Regular Training \u203a TC-01: Upload and categorize training document templates (1.1m)", "4251: INFO \u2718 346 [training] \u203a tests/training/trainingsStudyViews.spec.js:55:3 \u203a Trainings module - Study Trainings, its logs and Reports \u203a TC-01: Study Trainings lists the picked study trainings (1.3m)", "4252: INFO - 353 [training] \u203a tests/training/trainingsStudyViews.spec.js:71:3 \u203a Trainings module - Study Trainings, its logs and Reports \u203a TC-02: Study Team Training Log shows the study team trainee", "4253: INFO - 354 [training] \u203a tests/training/trainingsStudyViews.spec.js:87:3 \u203a Trainings module - Study Trainings, its logs and Reports \u203a TC-03: Site Training Log leaves out the study team training", "4254: INFO - 355 [training] \u203a tests/training/trainingsStudyViews.spec.js:102:3 \u203a Trainings module - Study Trainings, its logs and Reports \u203a TC-04: Reports opens the org reports table", "\u2026", "4453: INFO Studio activity Staff Training 1794882230165 found", "4454: INFO Publishing studio activity: Staff Training 1794882230165", "4455: INFO Studio activity published successfully: Staff Training 1794882230165", "4456: INFO \u2718 356 [training] \u203a tests/training/trainingsStudyViews.spec.js:55:3 \u203a Trainings module - Study Trainings, its logs and Reports \u203a TC-01: Study Trainings lists the picked study trainings (retry #1) (1.4m)", "4457: INFO Opened WO wizard (template: custom, name: WO Edit Draft Language 1794882239843)", "4458: INFO Staff training published: Staff Training 1794882230165 (doc=HRRF_template-669985.pdf)", "4459: INFO \u2713 359 [training] \u203a tests/training/staff.spec.js:77:3 \u203a Staff Doc Training \u203a TC-03: Verify document only staff training setup via training API (15.1s)", "\u2026", "14425: INFO reports/tbut-TBUT-Training-TC-02-Create-template-using-doc-builder-training-retry1/test-failed-1.png", "14426: INFO Error Context: reports/tbut-TBUT-Training-TC-02-Create-template-using-doc-builder-training-retry1/error-context.md", "14427: INFO yarn playwright show-trace reports/tbut-TBUT-Training-TC-02-Create-template-using-doc-builder-training-retry1/trace.zip", "14428: INFO 14) [training] \u203a tests/training/trainingsStudyViews.spec.js:55:3 \u203a Trainings module - Study Trainings, its logs and Reports \u203a TC-01: Study Trainings lists the picked study trainings", "14429: INFO Error: expect(locator).toBeVisible() failed", "14430: INFO Locator: getByTestId('trainings-table')", "14431: INFO Expected: visible", "\u2026", "15201: INFO [training] \u203a tests/training/regular.spec.js:81:3 \u203a Regular Training \u203a TC-02: Create two templates using doc builder", "15202: INFO [training] \u203a tests/training/staff.spec.js:212:3 \u203a Staff Doc Training \u203a TC-10: Verify Staff Training entries in Study Team Training Log", "15203: INFO [training] \u203a tests/training/tbut.spec.js:67:3 \u203a TBUT Training \u203a TC-02: Create template using doc builder", "15204: INFO [training] \u203a tests/training/trainingsStudyViews.spec.js:55:3 \u203a Trainings module - Study Trainings, its logs and Reports \u203a TC-01: Study Trainings lists the picked study trainings", "15205: 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", "15206: INFO [study] \u203a tests/study/studyFeed.spec.js:106:3 \u203a Study feed \u203a TC-05: A row shows its verb, warning, title and detail, and the whole row opens its review", "15207: 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": "new", "meaning": "first seen failing", "newest_first": "F", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 882 }
other_branch
{ "branch": "production", "job": "e2e-tests-production", "build": 860, "these_tests_there": { "absent": 1 }, "reading": "fails on master; this test is not in the production suite (`e2e-tests-production` build 860)." }
The test's source
{ "repo": "tildabio/cleopatra", "at": "e0858153f", "path": "e2e/tests/training/trainingsStudyViews.spec.js", "from_line": 55, "failing_line": 55, "code": "55> test('TC-01: Study Trainings lists the picked study trainings', async ({\n56 trainingsModulePage: trainings\n57 }) => {\n58 await trainings.openTrainingsModule();\n59 await trainings.studyTrainingsTab.click();\n60 await expect(trainings.page).toHaveURL(/\\/trainings\\/study\\/list/);\n61 await expect(trainings.studyListTab).toBeVisible();\n62 await expect(trainings.scopePicker).toBeVisible();\n63 await expect(trainings.trainingsTable).toBeVisible();\n64 \n65 await trainings.pickStudy(seed.studyName, studyId);\n66 await expect(trainings.scopePicker).toContainText(seed.studyName);\n67 await expect(trainings.trainingRow(seed.trainingName)).toBeVisible();\n68 logger.info('Study Trainings list shows the seeded training');\n69 });\n70 \n71 test('TC-02: Study Team Training Log shows the study team trainee', async ({\n72 trainingsModulePage: trainings\n73 }) => {\n74 await trainings.openTrainingsModule();\n75 await trainings.studyTrainingsTab.click();\n76 await trainings.studyTeamLogTab.click();\n77 await expect(trainings.page).toHaveURL(/\\/trainings\\/study\\/team-log/);\n78 \n79 await trainings.pickStudy(seed.studyName, studyId);\n80 await expect(trainings.scopePicker).toContainText(seed.studyName);\n81 await expect(trainings.logGrid).toBeVisible();\n82 await expect(trainings.logTrainingColumn(seed.trainingName)).toBeVisible();\n83 await expect(trainings.logTraineeRow(seed.trainee)).toBeVisible();\n84 logger.info('Study Team Training Log lists the trainee and training');\n85 });\n86 \n87 test('TC-03: Site Training Log leaves out the study team training', async ({\n88 trainingsModulePage: trainings\n89 }) => {\n90 await trainings.openTrainingsModule();\n91 await trainings.studyTrainingsTab.click();\n92 await trainings.studySiteLogTab.click();\n93 await expect(trainings.page).toHaveURL(/\\/trainings\\/study\\/site-log/);\n94 \n95 await trainings.pickStudy(seed.studyName, studyId);\n96 await expect(trainings.scopePicker).toContainText(seed.studyName);\n97 await expect(trainings.logEmptyState).toBeVisible();\n98 await expect(trainings.logTrainingColumn(seed.trainingName)).toHaveCount(0);\n99 logger.info('Site Training Log has no entries for a team-only training');\n100 });\n101 \n102 test('TC-04: Reports opens the org reports table', async ({\n103 trainingsModulePage: trainings\n104 }) => {\n105 await trainings.openTrainingsModule();\n106 await trainings.reportsTab.click();\n107 await expect(trainings.page).toHaveURL(/\\/trainings\\/reports/);\n108 await expect(\n109 trainings.reportsTable.or(trainings.reportsEmptyState)\n110 ).toBeVisible();\n111 await expect(trainings.reportsSearch).toBeVisible();\n112 logger.info('Reports table is shown');\n113 });\n114 });" }
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/trainingsStudyViews.spec.js >> Trainings module - Study Trainings, its logs and Reports >> TC-01: Study Trainings lists the picked study trainings\n- Location: tests/training/trainingsStudyViews.spec.js:55:3\n\n# Error details\n\n```\nError: expect(locator).toBeVisible() failed\n\nLocator: getByTestId('trainings-table')\nExpected: visible\nTimeout: 50000ms\nError: element(s) not found\n\nCall log:\n - Expect \"toBeVisible\" getByTestId('trainings-table') with timeout 50000ms\n - waiting for getByTestId('trainings-table')\n\n```\n\n```yaml\n- main:\n - link \"Home\":\n - /url: /\n - button \"Collapse navigation\":\n - img\n - button \"E2 E2E UI882 CRO Test Admin\":\n - text: E2 E2E UI882 CRO Test Admin\n - img\n - navigation:\n - treegrid \"Navigation\":\n - rowgroup:\n - row \"Home\" [level=1]:\n \u2026\n - heading \"No trainings\" [level=3]\n \u2026\n | ^ Error: expect(locator).toBeVisible() failed" }
Commits in the window
{ "note": "no last pass and first failure are on record for these tests, so there is no window of commits to look in" }
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 Study Trainings list with the scope picker and tabs visible, and an empty-state heading 'No trainings' where the table should be. ![The page when the test failed](https://uploads.linear.app/d1b9dc36-3ae8-49c0-8ea8-02f9d1566efc/341b5bbc-b7bd-494c-a2d0-eb6d2ff13b39/280774f1-af46-4f77-a75d-230151171ba2) **The test is wrong**, confidence high. Found in `e2e-tests-master` build 882: [run in X-ray](https://xray.tilda.pizza/tests/run/e2e-tests-master/882). **Root cause in X-ray:** [the verdict, each test's history and the evidence the agent read](https://xray.tilda.pizza/test-triage/840f45029c0725) **Branches:** fails on master; this test is not in the production suite (`e2e-tests-production` build 860). The test fails at trainingsStudyViews.spec.js:63, `expect(trainings.trainingsTable).toBeVisible()`. That locator is `getByTestId('trainings-table')`. The page shows a 'No trainings' heading instead. Before any pick, the Study Trainings list uses the default scope. `useTeamScopeValue` in scope-select.tsx picks the first study via `pickTeamScope`, not the study the test seeded. That study has no trainings. The trainings request returned 200 with no rows. When a DataTable has no rows, `LoadedContent` in packages/ui/data-table/data-table.tsx:780-788 renders only the placeholder. Its testId is `trainings-table-empty-state`, so `trainings-table` never exists. The spec was added on 2026-11-16 in f9b005e8b. This is its first run, so it has never passed. The retry failed the same way. The cluster findings do not touch this request. I did not check what the default study is on the automation cluster. **Suspect commit:** [f9b005e8b](https://github.com/tildabio/cleopatra/commit/f9b005e8bfc6a4c0c041d7c6cda605370ce611ec) [E2E] Cover the Trainings module's Study Trainings, Study Team and Site Training Logs and Reports (ENG-8870) (#16859) (tilda-gitbot[bot]) **Service:** sense **Proposed fix:** In trainingsStudyViews.spec.js, delete the `expect(trainings.trainingsTable).toBeVisible()` at line 63. Move it to after `pickStudy(seed.studyName, studyId)` at line 65, and keep the `trainingRow` check there. If you want a check before the pick, use `trainings.trainingsTable.or(page.getByTestId('trainings-table-empty-state'))`. **Failing tests (1):** - [trainingsStudyViews::TC-01: Study Trainings lists the picked study trainings](https://xray.tilda.pizza/tests/case/db20da085646053f) (first time seen) **Error:** ``` expect(locator).toBeVisible() failed ``` The test agent picks this ticket up and opens the pull request. ```yaml suite: ui feature: fix-trainingsstudyviews find: true fix: true target_file: e2e/tests/training/trainingsStudyViews.spec.js failing_tests: - 'trainingsStudyViews::TC-01: Study Trainings lists the picked study trainings' 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 fails at trainingsStudyViews.spec.js:63, `expect(trainings.trainingsTable).toBeVisible()`. That locator is `getByTestId(''trainings-table'')`. The page shows a ''No trainings'' heading instead. Before any pick, the Study Trainings list uses the default scope. `useTeamScopeValue` in scope-select.tsx picks the first study via `pickTeamScope`, not the study the test seeded. That study has no trainings. The trainings request returned 200 with no rows. When a DataTable has no rows, `LoadedContent` in packages/ui/data-table/data-table.tsx:780-788 renders only the placeholder. Its testId is `trainings-table-empty-state`, so `trainings-table` never exists. The spec was added on 2026-11-16 in f9b005e8b. This is its first run, so it has never passed. The retry failed the same way. The cluster findings do not touch this request. I did not check what the default study is on the automation cluster. Proposed change: In trainingsStudyViews.spec.js, delete the `expect(trainings.trainingsTable).toBeVisible()` at line 63. Move it to after `pickStudy(seed.studyName, studyId)` at line 65, and keep the `trainingRow` check there. If you want a check before the pick, use `trainings.trainingsTable.or(page.getByTestId(''trainings-table-empty-state''))`.' ``` +++ Agent notes Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 18 lookups in the code and its history. Group `triage:840f45029c0725` (one issue per root cause). A wrong verdict can be corrected on the run page in X-ray. +++