Skip to content

Commit f5032de

Browse files
committed
updates
1 parent 046871d commit f5032de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// <reference types="@wdio/globals/types" />
12
import 'react'
23
import { $, expect } from '@wdio/globals'
34
import { render } from '@testing-library/react'
@@ -8,7 +9,7 @@ describe('React Component Testing', () => {
89
// The render method returns a collection of utilities to query your component.
910
render(<App />)
1011

11-
const button = $('button*=count is')
12+
const button = await $('button*=count is')
1213

1314
// Dispatch a native click event to our button element.
1415
await button.click()

0 commit comments

Comments
 (0)