Protractor plugin

To validate browser source from protractor:

npm install --save-dev protractor-html-validate

In protractor.conf.js:

module.exports = {
  plugins: [
    /* load plugin */
    { package: "protractor-html-validate" },
  ],

  onPrepare: () => {
    /* load jasmine helper */
    require("protractor-html-validate/jasmine");
  },
};

See protractor-html-validate for details.