message: Correctly fail tests if running js in browser fails.
diff: @@ -17,6 +17,9 @@ const checkForErrors = (browser, cb) => {
  }, result => {
  const {windowError, windowErrors} = result.value;
  browser.assert.equal(result.status, 0, 'Fetched windowErrors.');
  + if (result.status) {
  + return cb();
  + }
  browser.assert.notEqual(windowError, true, 'No unhandled JavaScript errors.');
  browser.assert.equal(windowErrors.length, 0, 'No unhandled JavaScript errors.');
  if (windowErrors.length) {
  @@ -170,6 +173,9 @@ const deleteExamples = (page, browser, cb) => {
  return Array.from(document.querySelectorAll('div.co-m-cog-wrapper--enabled')).map(d => d.getAttribute('id'));
  }, ({status, value}) => {
  browser.assert.equal(status, 0, 'Cogs for delete.');
  + if (status) {
  + return cb('Failed to get ids of delete cogs.');
  + }
  deleteExample(value);
  });
  });
  @@ -181,6 +187,9 @@ const updateYamlEditor = (browser, override, addLabels, cb) => {
  return window.ace.getValue();
  }, ({value, status}) => {
  browser.assert.equal(status, 0, 'Updated Yaml Editor.');
  + if (status) {
  + return cb('Failed to get Yaml Editor value.');
  + }
  const defaultExtends = {metadata: {name: NAME}};
  if (addLabels) {
  defaultExtends.metadata.labels = {automatedTest: 'yes', [TEST_LABEL]: NAME};
  @@ -191,7 +200,7 @@ const updateYamlEditor = (browser, override, addLabels, cb) => {
  return window.ace.setValue(text);
  }, [yaml], result => {
  browser.assert.equal(result.status, 0, 'Updated name and label via ace.');
  - cb();
  + cb(result.status || false);
  });
  });
  };
  @@ -343,7 +352,7 @@ TESTS.CRDs = browser => {
  return Array.from(document.querySelectorAll('div.co-m-cog-wrapper--enabled')).map(d => d.getAttribute('id'));
  }, ({value, status}) => {
  browser.assert.equal(status, 0, 'Fetched CRD cogs.');
  - return cb(null, value);
  + return cb(status || false, value);
  });
  })],
  edit: ['list', ({list: ids}, cb) => {
  