mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): make test more precise in business card lab (#59930)
This commit is contained in:
parent
db07c718b9
commit
ef6d965d55
@ -222,7 +222,7 @@ assert.match(document.querySelectorAll(".business-card p")[4].textContent,/.+/);
|
||||
After the phone number `p` element, there should be an `a` element with the text `Portfolio`
|
||||
|
||||
```js
|
||||
assert.equal(document.querySelector('.business-card a')?.textContent, 'Portfolio');
|
||||
assert.equal(document.querySelector('.business-card > a')?.textContent, 'Portfolio');
|
||||
```
|
||||
|
||||
Your portfolio `a` element should have a valid `href`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user