(page, name)
| 207 | } |
| 208 | |
| 209 | async function openNavigationEntry(page, name) { |
| 210 | const links = page.locator(`#app-navigation .app-navigation-entry > a[data-name="${name.replace(/"/g, '\\"')}"]`); |
| 211 | await links.first().waitFor({ state: 'attached', timeout: 20000 }); |
| 212 | |
| 213 | let link = links.filter({ visible: true }).first(); |
| 214 | if (!(await link.count())) { |
| 215 | await ensureNavigationSection(page, 'reports'); |
| 216 | link = links.filter({ visible: true }).first(); |
| 217 | } |
| 218 | if (!(await link.count())) { |
| 219 | link = links.first(); |
| 220 | } |
| 221 | |
| 222 | await link.waitFor({ state: 'visible', timeout: 20000 }); |
| 223 | await link.click(); |
| 224 | await waitForIdle(page, 15000); |
| 225 | } |
| 226 | |
| 227 | async function assertReportHeader(page, reportName) { |
| 228 | const header = reportHeaderLocator(page); |
no test coverage detected