chore: upgrade tests to current standards in palindrome checker lab (#59843)

This commit is contained in:
Ilenia
2025-04-22 19:06:48 +02:00
committed by GitHub
parent 37028f2bb8
commit 5a1cb8ee2a

View File

@@ -54,7 +54,7 @@ You should have a `div`, `span`, or `p` element with an `id` of `"result"`.
```js
const el = document.getElementById('result');
assert(['div', 'span', 'p'].includes(el?.nodeName?.toLowerCase()));
assert.oneOf(el?.nodeName?.toLowerCase(), ['div', 'span', 'p']);
```
When you click on the `#check-btn` element without entering a value into the `#text-input` element, an alert should appear with the text `Please input a value`.