Comments (4)
Hey @andrepm06
You could try to closing the browser more forcibly using cafeRunner.close()
.
If you could send me your code that would be helpful. Also, what browser, os, and ide are you using?
from testcafe-cucumber.
a combination of both of these resolved this issue for me...
ie.
After(() => {
fs.unlinkSync('test.js');
cafeRunner.close();
testControllerHolder.free();
});
...and yes, thanks @rquellh . great stuff!
from testcafe-cucumber.
Hi @andrepm06 & @joemewes
I think I may be encountering the same described above as detailed here #17
I did variations of the workarounds mentioned above (albeit post those changes it became an issue that occurred every time to happening intermittently).
Would either of you mind posting your full solution above to the issue described above and I will see if that fixes things for me? Many thanks in advance with any help on the above.
from testcafe-cucumber.
@bhreinb
in my hooks.js file I have the above for closing test sessions
// TODO: Amend to check for actual testCafe events.
/**
* WaitFor helper function.
*/
function waitFor() {
return new Promise(resolve => {
setTimeout(() => {
resolve();
}, 3000);
});
}
After(async () => {
fs.unlinkSync('test.js');
cafeRunner.close();
testControllerHolder.free();
await waitFor();
});
NB : my work on this has been limited to "..get something working && in CI." so no nuanced solution or advice on top of what's written above.
from testcafe-cucumber.
Related Issues (20)
- Sample Tests Consistently Fails On Before Hook With Chrome (Mac) & Edge (Win) Browsers HOT 2
- Changing port HOT 3
- setLocalStorageItem(key, value) Example
- setLocalStorageItem(key, value) Example HOT 3
- [Testcafe-cucumber] steps with multiple examples runs only once HOT 2
- Adding TestCafe Command Line Interface when running my OSX tests throw error: unknown option HOT 3
- running test cases behind a proxy
- Using JQuery functions HOT 1
- Parallel Run is not working HOT 12
- Passing parameters HOT 2
- Mocking HTTP Requests HOT 1
- test cafe port already in use
- Help with verifying the list row values HOT 1
- HTML Report is not generating HOT 1
- Skip Features and Scenarios HOT 1
- Overriding step definitions HOT 1
- test to capture testCafeController fails if file already exists.
- Second scenario tests not triggering after completing first scenario. HOT 2
- Page is loading differently each time execution HOT 1
- Support for Allure-JS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testcafe-cucumber.