electron now closes after each e2e path completed.

This commit is contained in:
Carlos Jimenez 2018-02-19 20:50:01 +01:00
parent 20229cf3e1
commit 9e4d03ecf3
12 changed files with 96 additions and 0 deletions

View File

@ -230,4 +230,12 @@ describe('create client path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -279,4 +279,12 @@ describe('Edit basicData path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -563,4 +563,12 @@ describe('Edit fiscalData path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -267,4 +267,12 @@ describe('Edit pay method path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -285,4 +285,12 @@ describe('Add address path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -96,4 +96,12 @@ describe('Add address notes path', () => {
// })
// .catch(catchErrors(done));
// });
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -131,4 +131,12 @@ describe('Edit web access path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -107,4 +107,12 @@ describe('Add notes path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -108,4 +108,12 @@ describe('Add credit path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -165,4 +165,12 @@ describe('Add greuge path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -83,4 +83,12 @@ describe('mandate path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});

View File

@ -98,4 +98,12 @@ describe('create item barcodes path', () => {
})
.catch(catchErrors(done));
});
describe('closing browser', () => {
it('should close the browser', done => {
nightmare
.end()
.then(done);
});
});
});