Skip to content

Commit

Permalink
perf: adjust when_disabled test because sometimes it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
TopProgrammer77 committed Jul 19, 2023
1 parent 2f5776b commit fb2cd06
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ public async Task When_Disabled()
// Disable re-ordering
mode.SetDependencyPropertyValue("IsChecked", "False");

// Tap outside the ListView to get rid of PointerOver visual from the step above
var sutBounds = _app.Query(sut).Single().Rect;
_app.TapCoordinates(sutBounds.CenterX, sutBounds.Bottom + 10);

var before = TakeScreenshot("Before", ignoreInSnapshotCompare: true);

// Attempt to re-order by dragging from item1 (orange) to item3 (green)
var sutBounds = _app.Query(sut).Single().Rect;
var x = sutBounds.X + 50;
var srcY = Item(sutBounds, 1);
var dstY = Item(sutBounds, 3);
Expand Down

0 comments on commit fb2cd06

Please sign in to comment.