removed ms wait to check selector waits on windows

This commit is contained in:
Carlos 2017-09-18 16:01:52 +02:00
parent e31e2269f8
commit 59a533473c
1 changed files with 1 additions and 6 deletions

View File

@ -4,15 +4,12 @@ import selectors from '../helpers/selectors.js';
import {catchErrors} from '../../services/utils/jasmineHelpers'; import {catchErrors} from '../../services/utils/jasmineHelpers';
const nightmare = createNightmare(); const nightmare = createNightmare();
let longWait = 3000; jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
// jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
describe('Clients path', () => { describe('Clients path', () => {
it('should log in', done => { it('should log in', done => {
nightmare nightmare
.login() .login()
.wait(longWait)
.wait(selectors.globalItems.topBar) .wait(selectors.globalItems.topBar)
.url() .url()
.then(url => { .then(url => {
@ -25,7 +22,6 @@ describe('Clients path', () => {
it('should access to the clients index by clicking the clients button', done => { it('should access to the clients index by clicking the clients button', done => {
nightmare nightmare
.click(selectors.moduleAccessView.clientsSectionButton) .click(selectors.moduleAccessView.clientsSectionButton)
.wait(longWait)
.wait(selectors.clientsView.createClientButton) .wait(selectors.clientsView.createClientButton)
.url() .url()
.then(url => { .then(url => {
@ -52,7 +48,6 @@ describe('Clients path', () => {
it('should access to the create client view by clicking the create-client floating button', done => { it('should access to the create client view by clicking the create-client floating button', done => {
nightmare nightmare
.click(selectors.clientsView.createClientButton) .click(selectors.clientsView.createClientButton)
.wait(longWait)
.wait(selectors.createClientView.createButton) .wait(selectors.createClientView.createButton)
.url() .url()
.then(url => { .then(url => {