fix: replace innerText with textContent in book inventory lab tests (#65074)

This commit is contained in:
Yashwanth Konnuru
2026-01-13 13:36:52 +05:30
committed by GitHub
parent 8226212060
commit 26f20d25d2
@@ -64,31 +64,31 @@ for (const row of rows) {
Your first column should have the text `Title` as the heading.
```js
assert.equal(document.querySelectorAll('th')[0]?.innerText.trim(), 'Title');
assert.equal(document.querySelectorAll('th')[0]?.textContent.trim(), 'Title');
```
Your second column should have the text `Author` as the heading.
```js
assert.equal(document.querySelectorAll('th')[1]?.innerText.trim(), 'Author');
assert.equal(document.querySelectorAll('th')[1]?.textContent.trim(), 'Author');
```
Your third column should have the text `Category` as the heading.
```js
assert.equal(document.querySelectorAll('th')[2]?.innerText.trim(), 'Category');
assert.equal(document.querySelectorAll('th')[2]?.textContent.trim(), 'Category');
```
Your fourth column should have the text `Status` as the heading.
```js
assert.equal(document.querySelectorAll('th')[3]?.innerText.trim(), 'Status');
assert.equal(document.querySelectorAll('th')[3]?.textContent.trim(), 'Status');
```
Your fifth column should have the text `Rate` as the heading.
```js
assert.equal(document.querySelectorAll('th')[4]?.innerText.trim(), 'Rate');
assert.equal(document.querySelectorAll('th')[4]?.textContent.trim(), 'Rate');
```
Your table should have at least four rows.