protected void assertJavascriptErrors() {
        LogEntries logEntries = getLogsForType(LogType.BROWSER);
        if (logEntries == null) {
            return;
        }
        System.out.println(logEntries.toJson());
        List<LogEntry> severe = logEntries.getAll().stream()
                    .filter(l -> l.getLevel() == Level.SEVERE)
                    .collect(Collectors.toList());
        assertFalse(severe.isEmpty(), "No Javascript errors were found but they were expected. Was bug #8765 fixed???.\r\n" + severe.toString());
    }
Checks the browse console and asserts there are SEVERE level messages.
primefaces-integration-tests/src/test/java/org/primefaces/integrationtests/selectonemenu/SelectOneMenu012Test.java