Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add drag until visible #59

Merged
merged 7 commits into from
Jun 19, 2024
Merged

Add drag until visible #59

merged 7 commits into from
Jun 19, 2024

Conversation

danielmolnar
Copy link
Collaborator

@danielmolnar danielmolnar commented Jun 19, 2024

This PR adds dragUntilVisible to spot

final firstItem = spotText('Item at index: 3', exact: true)..existsOnce();
final secondItem = spotText('Item at index: 27', exact: true)..doesNotExist();
await act.dragUntilVisible(
  dragStart: firstItem,
  dragTarget: secondItem,
  maxIteration: 30,
   moveStep: const Offset(0, -100),
);
secondItem.existsOnce();

@danielmolnar danielmolnar requested a review from passsy June 19, 2024 12:29
@passsy passsy merged commit 387b49e into main Jun 19, 2024
4 checks passed
@passsy passsy deleted the add-drag-until-visible branch June 19, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants