Coder Social home page Coder Social logo

Comments (11)

no-stack-dub-sack avatar no-stack-dub-sack commented on August 12, 2024

@sa-mm This is one of the few suites I did not write, so this is just speculation without diving in further - but your app seems to be functioning exactly as it should, except for one small thing - when you reset, or change the session time, it is a whole number rather than 25:00 - between each test, the reset button is being called, and that expects values of 5, 25, and 25:00 respectively for break, session, and timer. I'll take a closer look, but see if this changes anything?

from testable-projects-fcc.

no-stack-dub-sack avatar no-stack-dub-sack commented on August 12, 2024

That could also explain the match issue, there's no colon for the regex to match

from testable-projects-fcc.

no-stack-dub-sack avatar no-stack-dub-sack commented on August 12, 2024

But then, it should be calling getSeconds when the timer is paused, so not sure...

from testable-projects-fcc.

sa-mm avatar sa-mm commented on August 12, 2024

@no-stack-dub-sack Thanks for the reply! Changing the timer text to 25:00 instead of 25 helped. The tests also want me to start counting down from say, 25:00, instead of 24:59. This was the cause of several of the errors. I now have all of the tests working expect 11. It fails the first time I run it but passes after that.

In fact, the same is true for any of the tests that make use of promises. If that particular test is the first test with a promise to be run, then it will fail the first time and pass the second. (I checked this by running each of them individually.) So, it's not so much a problem specific to 11 as it is the order in which 11 appears.

I guess I'll keep poking around.

from testable-projects-fcc.

sa-mm avatar sa-mm commented on August 12, 2024

OK, got it. Thanks for the help!

from testable-projects-fcc.

sa-mm avatar sa-mm commented on August 12, 2024

Closing it.

from testable-projects-fcc.

no-stack-dub-sack avatar no-stack-dub-sack commented on August 12, 2024

@sa-mm Glad to help! What did you have to end up doing to get everything working? Any suggestions on how we can change the user stories / test case instructions in a way that would have helped you get this right the first time around? I'd like to learn from this and improve if possible, this has been one of the trickier projects to test from the get go and I anticipate we will continue to run into problems unless we really get this down. Open to suggestions...

Reopening the issue for now while the conversation is ongoing, but glad you were able to work through this.

from testable-projects-fcc.

no-stack-dub-sack avatar no-stack-dub-sack commented on August 12, 2024

@sa-mm Also, kudos for going straight up vanilla JS! And glad to see you running the suite outside of codepen.

from testable-projects-fcc.

sa-mm avatar sa-mm commented on August 12, 2024

Thx!

One thing might be to explicitly state that the value of 'time-left' should start with the format 'mm:ss'. It seems that some of the tests rely on that, but that initial value differs from that of the non-beta example of the project. That might trip up some people as they move to the new version. Also, fwiw, I spent a lot of time looking at the code in the tests to understand how to fix things. I'm not sure if that is intended.

I don't remember everything I changed. However, I feel like I had a project that would have passed muster for the non-beta version of the site, and yet I had to make a significant amount of changes to get all of the tests passing. I think that once the site goes live, you should be prepared for a lot of questions… :)

I'll post here if I can think of any specific issues I had.

from testable-projects-fcc.

no-stack-dub-sack avatar no-stack-dub-sack commented on August 12, 2024

@sa-mm

However, I feel like I had a project that would have passed muster for the non-beta version of the site, and yet I had to make a significant amount of changes to get all of the tests passing. I think that once the site goes live, you should be prepared for a lot of questions… :)

I agree with this feeling quite strongly, and have had these exact same concerns for quite some time as we've worked on this (which is why I'd like to try to get them as smoothed out as possible), but all things considered, Quincy determined that this was the best course of action to keep things consistent, to help eliminate the need for Core Team member review (as we grow in active user base), etc. etc.

I'm afraid some users may be turned off by this, but it has been decided that this is the direction we're going in, so best thing to do is make them as good as we possibly can! So the feedback is helpful, I will make that change to the tests, especially since, as you pointed out, the non-beta version is different. Though I expect most people will never see that version if they are going through all of this the first time once the site goes live

from testable-projects-fcc.

no-stack-dub-sack avatar no-stack-dub-sack commented on August 12, 2024

Also, fwiw, I spent a lot of time looking at the code in the tests to understand how to fix things. I'm not sure if that is intended.

Nope, not intended 😄 . Albeit a bit distracting, this is not necessarily a bad thing either — extra exposure to testing and things like promises can't hurt!

from testable-projects-fcc.

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.