Comments (5)
@christophherr that really is unexpected, I had been under the impression that innerText
would target the text content of the inner most node. Very strange. Looking into alternatives
from testable-projects-fcc.
And yeah, to your other point, I have to admit I never once even came close to thinking about that in designing these tests
Not sure what the best thing to do about it is though. I have to think on that one
from testable-projects-fcc.
Ok, so both tests 3 and 4 were failing for me when I made this change to my project, and I figured out why. In mine at least, the problem has to do with react and how babel compiles a <p>
element vs. a <span>
- I THINK (but not totally sure). Ultimately, I believe a span is kept inline, while a <p>
ends up on a new line, and innerText was picking up these newline characters, i.e. \n
. So in the end, I just added a regex, which eliminates any white space, so that all we will get is the text content itself. This fixed it on my project, but again, this is React and not sure what you're using. I'm pushing the changes in a few, and feel free to use the DEV cdn to see if the changes fixed it on your end.
Thanks!
from testable-projects-fcc.
@christophherr Ok, the changes should be live in a few minutes on the DEV cdn and a few hours on the PROD cdn - can you check and let me know if this fixes the issue on your end and if not re-open?
from testable-projects-fcc.
@no-stack-dub-sack
Thank you!
The test is passing with p
tags now. (using vanilla JS)
Regarding the keyboard layout, QWERTY is by far the most common.
Iยดm not sure if a change would be necessary or even more confusing.
(Looks like ert - dfg - cvb
should be the same for QWERTY, QWERTZ, AZERTY and QZERTY.)
from testable-projects-fcc.
Related Issues (20)
- test issue when i'm working with survey project , test shows test failed list of tribute page HOT 1
- Test failing but test requirement has been met HOT 1
- getting an error on product landing page #landing test. it says the navbar should always be at the top of the page. the navbar is at the top of my page but i am still receiving the error. HOT 1
- FCC Personal Portfolio - Can't get Layout #3 test to pass regarding navbar and viewport HOT 2
- project verification script not detecting required id tags in my code HOT 1
- User Story #11: Within the form, there is a submit input with a corresponding id="submit" HOT 1
- Test scripts are not correct HOT 1
- Personal Portfolio Project Bugs
- i think this is bog, 3 hour i am trying HOT 1
- Pomodoro Clock #15 Test of "25 + 5" Test Suite May Be Yielding Incorrect Results HOT 3
- Survey Form Test Issues
- FCC: Tribute Page
- Potrfolio tests: typo in #Content test number 4
- the test is not running HOT 1
- Markdown Preview tests not compatible with Vue HOT 1
- TypeError: Cannot read property '1' of null for Pomodoro clock. Why?????!!!!!!! HOT 1
- Issue with image running Tribute Page tests HOT 2
- Dependency Dashboard
- Build a JavaScript Calculator tests typo HOT 3
- incomplete fix for 25+5 with React@18 in #1485
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testable-projects-fcc.