Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey28 committed Aug 24, 2023
1 parent 3fa7aff commit aa4d450
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/functional/fixtures/live/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ if (config.useLocalBrowsers) {
const runCount = 2;

console.log(`${new Date()} -> file: test.js:87 -> it.only -> before createTestCafeInstance`);
let runner;
return createTestCafeInstance()
.then(() => {
const runner = createLiveModeRunner(cafe, '/testcafe-fixtures/smoke.js');
runner = createLiveModeRunner(cafe, '/testcafe-fixtures/smoke.js');

console.log(`${new Date()} -> file: test.js:90 -> helper.emitter.once -> helper.counter:`, helper.counter);
helper.emitter.once('tests-completed', () => {
Expand All @@ -112,7 +113,15 @@ if (config.useLocalBrowsers) {
})
.finally(() => {
console.log('finally');
return cafe.close();
runner.stop();
return runner.stop()
.then(() => {
console.log('runner stopped')
})
.then( () => cafe.close())
.then(() => {
console.log('cafe closed')
});
});
});

Expand Down

0 comments on commit aa4d450

Please sign in to comment.