fix(curriculum): allow spaces in book catalog table lab inside elements (#62258)

This commit is contained in:
Ilenia
2025-09-19 14:47:09 +02:00
committed by GitHub
parent 2e5d3e86e8
commit 80f8b6ffcd

View File

@@ -50,10 +50,10 @@ Your four `th` elements should have the text `Title`, `Author`, `Genre`, and `Pu
```js
const ths = document.querySelectorAll('thead tr th');
assert.equal(ths[0]?.textContent, 'Title');
assert.equal(ths[1]?.textContent, 'Author');
assert.equal(ths[2]?.textContent, 'Genre');
assert.equal(ths[3]?.textContent, 'Publication Year');
assert.equal(ths[0]?.textContent.trim(), 'Title');
assert.equal(ths[1]?.textContent.trim(), 'Author');
assert.equal(ths[2]?.textContent.trim(), 'Genre');
assert.equal(ths[3]?.textContent.trim(), 'Publication Year');
```
You should have one `tbody` element within your `table` element.
@@ -87,7 +87,7 @@ const tds = document.querySelectorAll('tbody tr td');
assert.isAtLeast(tds.length, 1);
tds.forEach(td => {
assert.isAtLeast(td.textContent.length, 1);
assert.isAtLeast(td.textContent.trim().length, 1);
});
```