BES 39 | Fixed tests

This commit is contained in:
Dawid Majsnerowski 2019-12-08 13:16:12 +01:00
parent 16f0e52ff9
commit f38e565e57
86 changed files with 974 additions and 19 deletions

View File

@ -29,6 +29,7 @@
"wdio-chromedriver-service": "^5.0.2"
},
"dependencies": {
"wdio-video-reporter": "^1.4.4",
"webdriverio": "^5.16.7"
}
}

View File

@ -1,3 +1,5 @@
const video = require('wdio-video-reporter');
exports.config = {
runner: 'local',
path: '/',
@ -35,6 +37,10 @@ exports.config = {
outputDir: 'test/allure-results',
},
],
[video, {
saveAllVideos: true,
videoSlowdownMultiplier: 3,
}],
['allure',
{
outputDir: 'test/allure-results',

View File

@ -4,8 +4,8 @@ const base = require('../base/base');
class Login {
constructor() {
this.loginForm = '.login-form-2';
this.emailField = '#id_username';
this.passwordField = '#id_password';
this.emailField = '#loginform';
this.passwordField = '#passwordform';
this.loginButton = '.btnSubmit';
this.warringMessage = '.text-warning';
}

View File

@ -4,6 +4,9 @@ const base = require('../base/base');
class Subject {
constructor() {
this.subjectNavbar = '.navbar';
this.manageButton = '.nolink';
this.textHeader = 'h1 < .text-white';
this.noteText = 'h3 < .text-white';
}
isNavbarDisplayed() {

979
yarn.lock

File diff suppressed because it is too large Load Diff