fix(curriculum): make test more precise in business card lab (#59930)

This commit is contained in:
Clarence
2025-04-24 01:10:23 +01:00
committed by GitHub
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`.