Sass Challenges intermittently report failed tests for correct solutions
See original GitHub issueDescribe your problem and - if possible - how to reproduce it
The test cases for this challenge do not accept valid formatted code which follows the instructions and example given.
Note: The example I give is one specific challenge, but this issue is NOT unique to the challenge, it happens throughout the Sass Challenges.
Frequently in the sass challenges, valid solutions are not accepted. However, submitting the challenge again (making no changes whatsoever) a few times will cause the challenge to pass.
Steps to reproduce:
- Go to Sass: Use @each to Map Over Items in a List
- Solve the challenge, the following is the correct solution:
@each $color in blue, black, red {
.#{$color}-bg {background-color: $color;}
}
- Submit the solution multiple times
Sometimes, the solution will pass, other times, it will fail. There are no errors to the console, and whether the challenge will accept a correct solution seems completely random. Just press submit a few times and it will finally pass.
Add a Link to the page with the problem
https://learn.freecodecamp.org/front-end-libraries/sass/use-each-to-map-over-items-in-a-list
Tell us about your browser and operating system
- Browser Name: Chrome
- Browser Version: Version 66.0.3359.181 (Official Build) (64-bit)
- Operating System: Manjaro Linux 17.1.10
If possible, add a screenshot here
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (7 by maintainers)
Top GitHub Comments
@QuincyLarson It may just wildly vary depending on OS/Browser - reproducable for me on Chrome, but not for @ipa-1 on Chrome, but I’m on linux and they’re on windows.
Thanks for confirming this was fixed, @thecodingaviator. @P1xt, I’ll close this for now, but it will take some time for the fix to be reflected on the live site. Please feel free to reopen it if you’re still having problems with this in the future.