Skip to content

Commit

Permalink
Add swipe to fix webview_stackoverflow_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
piotruela committed Sep 20, 2024
1 parent 08ed8ef commit 9617e52
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dev/e2e_app/integration_test/webview_stackoverflow_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ void main() {

// bug: using `Email` and `Password` selectors doesn't work (#1554)
await $.native.enterTextByIndex('[email protected]', index: 0);

await $.native.swipe(
from: Offset(0.5, 0.5),
to: Offset(0.5, 0.1),
);

await $.native.enterTextByIndex('ny4ncat', index: 1);
await $.native.tap(Selector(text: 'Log in'));
},
Expand Down Expand Up @@ -52,6 +58,12 @@ void main() {

// bug: using `Email` and `Password` selectors doesn't work (#1554)
await $.native2.enterTextByIndex('[email protected]', index: 0);

await $.native.swipe(
from: Offset(0.5, 0.5),
to: Offset(0.5, 0.1),
);

await $.native2.enterTextByIndex('ny4ncat', index: 1);
await $.native2.tap(
NativeSelector(
Expand Down

0 comments on commit 9617e52

Please sign in to comment.