nightmare will wait 3seconds uppon a change for safe navigation on windows until docker database is implemented.

This commit is contained in:
Carlos 2017-09-17 18:36:44 +02:00
parent 725815678d
commit d51351a2d7
1 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@ describe('Clients path', () => {
it('should log in', done => { it('should log in', done => {
nightmare nightmare
.login() .login()
.wait(200) .wait(3000)
.wait(selectors.globalItems.topBar) .wait(selectors.globalItems.topBar)
.url() .url()
.then(url => { .then(url => {
@ -21,6 +21,7 @@ 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(3000)
.wait(selectors.clientsView.createClientButton) .wait(selectors.clientsView.createClientButton)
.url() .url()
.then(url => { .then(url => {
@ -33,7 +34,8 @@ 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() .wait(3000)
.wait(selectors.createClientView.createButton)
.url() .url()
.then(url => { .then(url => {
expect(url).toBe(config.url + '#!/create'); expect(url).toBe(config.url + '#!/create');