Skip to content

Commit 86943eb

Browse files
authored
chore: Fix iOS webview test with LT (#1333)
1 parent 1f3bf40 commit 86943eb

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

tests/webview-specs/ios/index.e2e.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,7 @@ describe.withBrowsersMatching(onlyIOS)('ios webview', () => {
2020
await driver.setClipboard(Buffer.from(url).toString('base64'), 'plaintext')
2121
const addressBar = await $('-ios predicate string: type == "XCUIElementTypeTextField"')
2222
await addressBar.clearValue()
23-
await driver.touchPerform([
24-
{
25-
action: 'press',
26-
options: {
27-
element: addressBar.elementId
28-
}
29-
},
30-
{
31-
action: 'wait',
32-
options: {
33-
ms: 500
34-
}
35-
},
36-
{
37-
action: 'release',
38-
options: {}
39-
}
40-
])
23+
addressBar.click({ duration: 500 })
4124
await $('-ios predicate string: type == "XCUIElementTypeMenuItem" AND label == "Paste" AND name == "Paste"')
4225
.click()
4326

0 commit comments

Comments
 (0)