Skip to content

Commit

Permalink
Trying scrolling to Shepherd target in tests to prevent
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Aug 29, 2024
1 parent 9f9f612 commit 6f47e65
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ void AssertStep(string header, string text, bool assertShepherdTargetIsNotBody =
context.Exists(assertShepherdTargetIsNotBody ? _byShepherdTargetNotBody : _byShepherdTarget);
}

Task ClickShepherdTargetAsync() => context.ClickReliablyOnUntilUrlChangeAsync(_byShepherdTarget);
Task ClickShepherdTargetAsync()
{
context.ScrollTo(_byShepherdTarget);
return context.ClickReliablyOnUntilUrlChangeAsync(_byShepherdTarget);
}

Task FillInShepherdTargetWithRetriesAsync(string text) => context.FillInWithRetriesAsync(_byShepherdTarget, text);

Expand Down

0 comments on commit 6f47e65

Please sign in to comment.