()
| 48 | } |
| 49 | |
| 50 | export async function verifyNoBrowserErrors(): Promise<void> { |
| 51 | const browserLog = await getWebDriver().manage().logs().get('browser'); |
| 52 | const errors: string[] = []; |
| 53 | |
| 54 | for (const {message, level} of browserLog) { |
| 55 | console.log('>> ' + message); |
| 56 | if (level.value >= webdriver.logging.Level.INFO.value) { |
| 57 | errors.push(message); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | expect(errors).toEqual([]); |
| 62 | } |
| 63 | |
| 64 | export async function navigateTo(url: string): Promise<void> { |
| 65 | const baseUrl = process.env['E2E_BASE_URL'] || 'http://localhost:4206/'; |
no test coverage detected