Skip to content

Commit 82edc36

Browse files
author
Ali Nasserzadeh
committed
extended waitFor tests to better cover for the waitForOptions type
1 parent 70d0975 commit 82edc36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/__tests__/type-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async function testWaitFors() {
116116

117117
element.innerHTML = '<span>apple</span>'
118118

119-
await waitForElementToBeRemoved(() => getByText(element, 'apple'))
119+
await waitForElementToBeRemoved(() => getByText(element, 'apple'), {interval: 3000, container: element, timeout: 5000})
120120
await waitForElementToBeRemoved(getByText(element, 'apple'))
121121
await waitForElementToBeRemoved(getAllByText(element, 'apple'))
122122
}

0 commit comments

Comments
 (0)