feat(curriculum): test for extensions (#48297)

* feat: test for extensions

* fix: one of the tags isn't injected always?
This commit is contained in:
Naomi Carrigan
2022-10-31 16:26:04 -07:00
committed by GitHub
parent 5ef777973a
commit 756013372e
@@ -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--