BES-26 | adding new test

This commit is contained in:
Dawid Majsnerowski 2019-11-30 11:47:49 +01:00
parent 4a63d7df46
commit d2de735937

View File

@ -7,7 +7,7 @@ const Login = require('../../components/login');
const Subject = require('../../components/subject'); const Subject = require('../../components/subject');
const testName = 'test'; const testName = 'test';
const corrrectName = 'admin'; const correctName = 'admin';
describe('Login page in BestNotes', () => { describe('Login page in BestNotes', () => {
it('should be displayed', () => { it('should be displayed', () => {
@ -49,8 +49,8 @@ it('should logged user with correct credentials', () => {
expect(login.isLoginFormDisplayed(), 'Login form should be displayed').to.be.true; expect(login.isLoginFormDisplayed(), 'Login form should be displayed').to.be.true;
addStep('Fill credentials and try to login'); addStep('Fill credentials and try to login');
login.fillCredentials(login.emailField, corrrectName); login.fillCredentials(login.emailField, correctName);
login.fillCredentials(login.passwordField, corrrectName); login.fillCredentials(login.passwordField, correctName);
login.clickLoginButton(); login.clickLoginButton();
addStep('Check if the page is displayed and URL matches'); addStep('Check if the page is displayed and URL matches');