Skip to content

Commit

Permalink
Refactor locator dispatch test to constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Jan 26, 2024
1 parent a6eb856 commit 9759015
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/locator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ func TestLocator(t *testing.T) {
return asBool(t, v)
}
require.False(t, result(), "should not be clicked first")
opts := &common.FrameDispatchEventOptions{
FrameBaseOptions: &common.FrameBaseOptions{},
}
opts := common.NewFrameDispatchEventOptions(0) // no timeout
err := p.Locator("#link", nil).DispatchEvent("click", "mouseevent", opts)
require.NoError(t, err)
require.True(t, result(), "cannot not dispatch event")
Expand Down

0 comments on commit 9759015

Please sign in to comment.