mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(curriculum): test for extensions (#48297)
* feat: test for extensions * fix: one of the tags isn't injected always?
This commit is contained in:
+8
@@ -47,6 +47,14 @@ Your `h1` element's text should be `CatPhotoApp`. You have either omitted the te
|
||||
assert(document.querySelector('h1').innerText.toLowerCase() === 'catphotoapp');
|
||||
```
|
||||
|
||||
You appear to be using a browser extension that is modifying the page. Be sure to turn off all browser extensions.
|
||||
|
||||
```js
|
||||
assert.isAtMost(document.querySelectorAll('script').length, 2);
|
||||
assert.equal(document.querySelectorAll('style').length, 0);
|
||||
assert.equal(document.querySelectorAll('link').length, 0);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
## --seed-contents--
|
||||
|
||||
Reference in New Issue
Block a user