Giter Club home page Giter Club logo

Comments (4)

rquellh avatar rquellh commented on August 12, 2024

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.

joemewes avatar joemewes commented on August 12, 2024

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.

bhreinb avatar bhreinb commented on August 12, 2024

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.

joemewes avatar joemewes commented on August 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.