Testcafe: 0.22.1-alpha.2 broke testcafe-live

Created on 2 Oct 2018  路  8Comments  路  Source: DevExpress/testcafe

Are you requesting a feature or reporting a bug?

Bug.

What is the current behavior?

Reloading a test doesn't work. Changes are picked up but the test doesn't restart (it gets stuck at Test run is starting...).

What is the expected behavior?

Reloading a test in testcafe-live works.

How would you reproduce the current behavior (if this is a bug)?

Run a test with testcafe-live and press Ctrl-R when it finished.

Specify your

  • operating system: macOS
  • testcafe version: 0.22.1-alpha.2
  • node.js version: v8.12.0

The bug is not present in 0.22.1-alpha.1.

I'm reporting it here since the regression happened in testcafe.

Auto-locked bug

Most helpful comment

Hi @pciavald

Thank you for the detailed description. I've reproduced the problem.

All 8 comments

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:

  • if I place the attached test in demo.ts and run it with testcafe-live firefox demo.ts, reloading works just fine.
  • if I place the attached test it in 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

multivoltage picture multivoltage  路  3Comments

AndreyBelym picture AndreyBelym  路  3Comments

devmondo picture devmondo  路  3Comments

fnlctrl picture fnlctrl  路  3Comments

ParachuteCat picture ParachuteCat  路  3Comments