Showing 2 of 17 total issues
Function assertion
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports.assertion = function (context, options) {
options = Object.assign({ meta: true, titleRegExp: /.* - TELUS.com/ }, options)
if (!(options.titleRegExp instanceof RegExp)) throw new TypeError('`titleRegExp` should be type RegExp')
Function command
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.command = (done) => {
const assert = this.api.assert
this.api.elements('tag name', `${context} h1`, (result) => {
assert.ok(result.value.length <= 1, '<h1/> should be unique and found only once per page')