MCPcopy Index your code
hub / github.com/angular/angular / verifyNoBrowserErrors

Function verifyNoBrowserErrors

modules/utilities/e2e_util.ts:37–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 * @experimental This API will be moved to Protractor.
36 */
37export function verifyNoBrowserErrors() {
38 // TODO(tbosch): Bug in ChromeDriver: Need to execute at least one command
39 // so that the browser logs can be read out!
40 browser.executeScript('1+1');
41 browser
42 .manage()
43 .logs()
44 .get('browser')
45 .then(function (browserLog: any) {
46 const filteredLog = browserLog.filter(function (logEntry: any) {
47 if (logEntry.level.value >= webdriver.logging.Level.INFO.value) {
48 console.log('>> ' + logEntry.message);
49 }
50 return logEntry.level.value > webdriver.logging.Level.WARNING.value;
51 });
52 expect(filteredLog).toEqual([]);
53 });
54}

Callers

nothing calls this directly

Calls 6

thenMethod · 0.65
getMethod · 0.65
logMethod · 0.65
executeScriptMethod · 0.45
logsMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…