Bug.
Reloading a test doesn't work. Changes are picked up but the test doesn't restart (it gets stuck at Test run is starting...).
Reloading a test in testcafe-live works.
Run a test with testcafe-live and press Ctrl-R when it finished.
macOS0.22.1-alpha.2v8.12.0The bug is not present in 0.22.1-alpha.1.
I'm reporting it here since the regression happened in testcafe.
I was able to reproduce the issue only in two cases.
1) A test does not restart if VSCode (I run tests via integrated terminal) is opened in full screen mode.
2) If I close the browser and then press Ctrl+R in terminal.
However both these cases are reproducible with the previous TextCafe version. If you able to recreate the issue without any extra conditions, could you please clarify which macOC version you are using? In which browser are you executing the tests? Could you provide a simple test project or screencast that demonstrates the problem?
It seems to be related to the number of tests:
demo.ts and run it with testcafe-live firefox demo.ts, reloading works just fine.tests/demo.ts (where tests contains ~60 other tests, none of which have .only) and run it with testcafe-live firefox tests reload doesn't work.import { Selector } from 'testcafe';
fixture`Demo`.page('https://joinmastodon.org');
test.only('has get started button', async test => {
await test.expect(Selector('a').withText('Get started').visible).ok();
});
macOS version: 10.13.0
Firefox version: 62.0.3 (though TestCafe reports it as 62.0.0)
Thank you for providing this information. My attempts to replicate it, however, were unsuccessful. I can confirm that it works really slowly with more than 150 files, but it still does not fail.
I've attached my screencast illustrating my steps. Would you please review it and let me know what steps I need to perform in order to replicate the issue? https://drive.google.com/file/d/1WQlsjNSBOWu5CzC9vEbItFCqejlJVmYY/view?usp=sharing
I can't replicate it anymore 馃槙 (tested with exactly the same versions). Will close this now, thank you for taking the time to investigate!
I'm getting this issue too on
{
"scripts": {
"test:live": "testcafe-live chrome ./tests/functional/**/*.js"
},
"devDependencies": {
"testcafe": "^0.23.2",
"testcafe-live": "^0.1.4"
}
}
The tests run as expected, then this message appears :
Make changes in the source files or press ctrl+r to restart test run.
then when overwriting a file
Sources have been changed. Test run is starting...
but the browser does not react and no more log is outputted. Nothing happens. Pressing ctrl+r shows once and ctrl+s repeatedly :
Current test run is stopping...
ctrl+c stops correctly.
how can I help investigating ?
Hi @pciavald
Thank you for the detailed description. I've reproduced the problem.
It will be resolved in the context of issue #3215
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.
Most helpful comment
Hi @pciavald
Thank you for the detailed description. I've reproduced the problem.