Giter Site home page Giter Site logo

Comments (12)

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Hmmm could you find this file in your node_modules and comment this out:

example/node_modules/@polymer/font-roboto/roboto.js

if (!window.polymerSkipLoadingFontRoboto) {
  // const link = document.createElement('link');
  // link.rel = 'stylesheet';
  // link.type = 'text/css';
  // link.crossOrigin = 'anonymous';
  // link.href =
  //     'https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,300,300italic,400italic,500,500italic,700,700italic';
  // document.head.appendChild(link);
}

Does it make a difference if you re-run the test?

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

I've pushed a fix to master to skip loading those fonts.

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

In your node_modules is cypress-daywalker version 0.1.1 installed, right?

from cypress-daywalker.

JPtenBerge avatar JPtenBerge commented on August 17, 2024

In your node_modules is cypress-daywalker version 0.1.1 installed, right?

Yep.

"devDependencies": {
    "cypress": "^3.2.0",
    "cypress-daywalker": "^0.1.1",
    "npm-run-all": "^4.1.3"
}

I've tried commenting out those lines inside roboto.js, but that did nothing. Same inconsistencies. Buuuuut. Then I took your second suggestion:

window.polymerSkipLoadingFontRoboto = true;

And the first and second run were all green!

image

I wanted to rule out any luck, so I set out that it had to be all green for at least 10 runs. And sadly, on the third run things broke again.

image

4th run was all green, 5th run had 1 failing test, 6th and 7th run were all green, 8th run resulted in an infinite loop.

All in all, it seems that not loading fonts shaves a bit of time off, making test results more green, but timeout problems still occur. The total running time is now just under 80 seconds when they pass. When they fail, they're just under 90.

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Please confirm if this is still the case with version 0.2.1

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Closing this issue.

Tests are now succeeding consistently as per https://travis-ci.com/JaySunSyn/cypress-daywalker/builds/

Feel free to re-open.

from cypress-daywalker.

JPtenBerge avatar JPtenBerge commented on August 17, 2024

@JaySunSyn It took me a while, but I've tested it with version 0.2.1. Sadly, exactly the same results as before: inconsistent timeouts. I'd reopen, but can't if I didn't close it myself.

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

I will now run the tests daily here https://travis-ci.com/JaySunSyn/cypress-daywalker/builds so we can check if tests fail once in a while but so far, they did not.

I've also run them around 10 times locally just now and they succeed...

I guess you did this:

git checkout master && git pull && cd example && npm install && npm run test

correct?

from cypress-daywalker.

JPtenBerge avatar JPtenBerge commented on August 17, 2024

I will now run the tests daily here https://travis-ci.com/JaySunSyn/cypress-daywalker/builds so we can check if tests fail once in a while but so far, they did not.

I've also run them around 10 times locally just now and they succeed...

I'm truly curious what it could be, why it's so much slower on my machine and not on yours. Is it a software thing? A hardware thing? A Windows thing?

I guess you did this:

git checkout master && git pull && cd example && npm install && npm run test

correct?

That, and then I noticed it installed 0.2.0 of your plugin, so I explicitly installed 0.2.1 and then ran npm run test again.

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Not sure, but here are my specs:

image

With now 0.2.1 installed, same issue?

from cypress-daywalker.

JPtenBerge avatar JPtenBerge commented on August 17, 2024

Not sure, but here are my specs:

image

With now 0.2.1 installed, same issue?

Sorry for the late response, a bit busy here. But yep, I used 0.2.1 with my latest try. As for my specs:

image

And I have an SSD (Samsung PM981 512GB) and an NVIDIA GeForce MX130 video card as well as the Intel Integrated UHD Graphics.

from cypress-daywalker.

JaySunSyn avatar JaySunSyn commented on August 17, 2024

Hmm, shouldn't matter much. You can check out here how long the tests took to run on a travis runner https://travis-ci.com/JaySunSyn/cypress-daywalker/builds/127339626#L348

from cypress-daywalker.

Related Issues (7)

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.