MCPcopy Create free account
hub / github.com/angular/angular / verifyNoBrowserErrors

Function verifyNoBrowserErrors

integration/platform-server/e2e/src/util.ts:50–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50export 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
64export async function navigateTo(url: string): Promise<void> {
65 const baseUrl = process.env['E2E_BASE_URL'] || 'http://localhost:4206/';

Calls 5

getWebDriverFunction · 0.70
getMethod · 0.65
logMethod · 0.65
logsMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected