Skip to content
Snippets Groups Projects
Commit 1cf14954 authored by JiggyJinjo's avatar JiggyJinjo
Browse files

Added new ESLint Rules

parent 7eb38a1e
No related branches found
Tags V1.0
No related merge requests found
Pipeline #30030 canceled
......@@ -2,6 +2,9 @@ module.exports = {
"extends": "google",
"parser": "babel-eslint",
"rules": {
"linebreak-style": 0
"linebreak-style": 0,
"indent": ["error", 4],
"max-len" : [2, 160, 4, {"ignoreUrls": true}]
}
};
\ No newline at end of file
This is where DOM elements should be referenced to ensure tests maintainability
\ No newline at end of file
let HtmlReporter = require('protractor-beautiful-reporter');
var path = require('path');
const HtmlReporter = require('protractor-beautiful-reporter');
const path = require('path');
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
......@@ -10,14 +10,14 @@ exports.config = {
seleniumArgs: [],
specs: [
'./specs/*.spec.js'
'./specs/*.spec.js',
],
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: ["--window-size=1910,1080"]
}
args: ['--window-size=1910,1080'],
},
},
// A base URL for your application under test. Calls to protractor.get()
......@@ -26,7 +26,7 @@ exports.config = {
framework: 'jasmine',
onPrepare: function () {
onPrepare: function() {
// Add a screenshot reporter:
jasmine.getEnv().addReporter(new HtmlReporter({
preserveDirectory: false,
......@@ -36,26 +36,26 @@ exports.config = {
baseDirectory: 'reports-tmp',
clientDefaults: {
columnSettings: {
displaySessionId:false
}
displaySessionId: false,
},
},
pathBuilder: function pathBuilder(spec, descriptions, results, capabilities) {
// Return '<30-12-2016>/<browser>/<specname>' as path for screenshots:
// Example: '30-12-2016/firefox/list-should work'.
var currentDate = new Date(),
day = currentDate.getDate(),
month = currentDate.getMonth() + 1,
year = currentDate.getFullYear();
const currentDate = new Date();
const day = currentDate.getDate();
const month = currentDate.getMonth() + 1;
const year = currentDate.getFullYear();
var validDescriptions = descriptions.map(function (description) {
const validDescriptions = descriptions.map(function(description) {
return description.replace('/', '@');
});
return path.join(
day + "-" + month + "-" + year,
day + '-' + month + '-' + year,
// capabilities.get('browserName'),
validDescriptions.join('-'));
}
},
}).getJasmine2Reporter());
},
......@@ -64,5 +64,5 @@ exports.config = {
showColors: true,
// Default time to wait in ms before a test fails.
defaultTimeoutInterval: 30000,
}
};
\ No newline at end of file
},
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment