Skip to content

Commit 9355c75

Browse files
minor type fixes
1 parent 2c8c269 commit 9355c75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

react-typescript-vite/src/tests/LoginForm.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ describe('LoginForm', () => {
3535

3636
beforeEach(async () => {
3737
const { container } = render(<LoginForm onLogin={onLogin} />)
38-
$username = await $('input[name="username"]')
39-
$password = await $('input[name="password"]')
40-
$btnLogin = await $('button=Login')
41-
$form = await $(container)
38+
$username = await $('input[name="username"]') as unknown as WebdriverIO.Element
39+
$password = await $('input[name="password"]') as unknown as WebdriverIO.Element
40+
$btnLogin = await $('button=Login') as unknown as WebdriverIO.Element
41+
$form = await $(container) as unknown as WebdriverIO.Element
4242
onLogin.mockClear()
4343
})
4444

0 commit comments

Comments
 (0)