Skip to content

Commit

Permalink
add a test for string selector arg
Browse files Browse the repository at this point in the history
  • Loading branch information
nichoth committed Feb 29, 2024
1 parent db2294e commit f85c454
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ test('dom.waitFor', async t => {

t.equal(foundP!.textContent, 'testing', 'should find the element by tag')

const pViaString = await dom.waitFor('p')
t.equal(pViaString!.textContent, 'testing',
'should take a string selector as arg')

const a = document.body.appendChild(document.createElement('a'))
a.id = 'hello'
a.textContent = 'hello'
Expand Down

0 comments on commit f85c454

Please sign in to comment.