feat(curriculum): add test to check anchor text (#57375)

This commit is contained in:
Ilenia 2024-12-02 11:18:59 +01:00 committed by GitHub
parent f1d5f2ea41
commit eb775d45db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -17,6 +17,12 @@ You should use the existing anchor element, do not create a new one.
assert.lengthOf(document.querySelectorAll('a'), 1);
```
The text inside the anchor element should not change, it must be `cat photos`.
```js
assert.strictEqual(document.querySelector('a').innerText, "cat photos");
```
You should have the words `See more ` before the anchor element. Make sure you include the space after the last word.
```js

View File

@ -17,6 +17,12 @@ You should use the existing anchor element, do not create a new one.
assert.lengthOf(document.querySelectorAll('a'), 1);
```
The text inside the anchor element should not change, it must be `cat photos`.
```js
assert.strictEqual(document.querySelector('a').innerText, "cat photos");
```
You should have the words `See more ` before the anchor element.
```js