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" "wdio-chromedriver-service": "^5.0.2"
}, },
"dependencies": { "dependencies": {
"wdio-video-reporter": "^1.4.4",
"webdriverio": "^5.16.7" "webdriverio": "^5.16.7"
} }
} }

View File

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

View File

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

View File

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

979
yarn.lock

File diff suppressed because it is too large Load Diff