I would like to check if '64' exists on the page which I have created.
const x = Selector('.FilterCockpit--header--count').withText('64');
The following test fails.
test('x', async t => {
await t
.expect((x).exists).ok()
});
HTML code:
<div class="FilterCockpit--header--results">
<span class="FilterCockpit--header--count">
64
</span>
Results
</div>
What I am doing wrong? Thank you in advance for your help.