|
| 1 | +export const TREE_DETAILS_SELECTORS = { |
| 2 | + breadcrumbTreesLink: '[data-test-id="breadcrumb-trees-link"]', |
| 3 | + |
| 4 | + treeHeaderTable: 'table', |
| 5 | + |
| 6 | + tabs: { |
| 7 | + builds: 'button:has-text("Builds")', |
| 8 | + boots: 'button:has-text("Boots")', |
| 9 | + tests: 'button:has-text("Tests")', |
| 10 | + }, |
| 11 | + |
| 12 | + filters: { |
| 13 | + button: 'button:has-text("Filters")', |
| 14 | + drawer: 'aside', |
| 15 | + drawerContent: '[role="dialog"]', |
| 16 | + filterButton: '[data-test-id="filter-button"]', |
| 17 | + cancelButton: '[data-test-id="filter-cancel-button"]', |
| 18 | + clearAllFilters: 'text="Clear all"', |
| 19 | + }, |
| 20 | + |
| 21 | + buildHistoryGraph: 'img', |
| 22 | + |
| 23 | + statusCard: { |
| 24 | + title: '.flex-col:has(div:has-text("Build status"))', |
| 25 | + titleFirst: '.flex-col:has(div:has-text("Build status"))', |
| 26 | + statusButton: (status: string) => `[data-test-id="${status}"]`, |
| 27 | + }, |
| 28 | + |
| 29 | + summaryCards: { |
| 30 | + arch: 'text="Summary"', |
| 31 | + }, |
| 32 | + |
| 33 | + issuesCard: { |
| 34 | + title: 'text="Issues"', |
| 35 | + button: 'button[aria-label="Issues"]', |
| 36 | + }, |
| 37 | + |
| 38 | + buildTable: { |
| 39 | + table: 'table', |
| 40 | + statusFilters: { |
| 41 | + all: 'button:has-text("All:")', |
| 42 | + success: 'button:has-text("Success:")', |
| 43 | + failed: 'button:has-text("Failed:")', |
| 44 | + inconclusive: 'button:has-text("Inconclusive:")', |
| 45 | + }, |
| 46 | + searchInput: 'input[placeholder*="Search"]', |
| 47 | + detailsButton: '[data-test-id="details-button"]', |
| 48 | + }, |
| 49 | + |
| 50 | + bootsTable: { |
| 51 | + statusFilters: { |
| 52 | + all: 'button:has-text("All:")', |
| 53 | + success: 'button:has-text("Success:")', |
| 54 | + failed: 'button:has-text("Failed:")', |
| 55 | + inconclusive: 'button:has-text("Inconclusive:")', |
| 56 | + }, |
| 57 | + detailsButton: '[data-test-id="details-button"]', |
| 58 | + }, |
| 59 | + |
| 60 | + testsTable: { |
| 61 | + statusFilters: { |
| 62 | + all: 'button:has-text("All:")', |
| 63 | + success: 'button:has-text("Success:")', |
| 64 | + failed: 'button:has-text("Failed:")', |
| 65 | + inconclusive: 'button:has-text("Inconclusive:")', |
| 66 | + }, |
| 67 | + testItem: 'tr', |
| 68 | + expandedRows: 'tr:has(td[colspan])', |
| 69 | + detailsButton: '[data-test-id="details-button"]', |
| 70 | + }, |
| 71 | + |
| 72 | + configTable: { |
| 73 | + link: (config: string) => `a:has-text("${config}")`, |
| 74 | + }, |
| 75 | + |
| 76 | + commitGraph: { |
| 77 | + container: '[data-test-id="commit-navigation-graph"]', |
| 78 | + svg: '[data-test-id="commit-navigation-graph"] svg', |
| 79 | + marks: '[data-test-id="commit-navigation-graph"] [class*="MuiMarkElement"]', |
| 80 | + }, |
| 81 | +} as const; |
0 commit comments