You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mahmoud Ali edited this page Mar 4, 2021
·
1 revision
Right now the only implemented interaction is the Tap gesture. If your View has a TapGestureRecognizer, you can trigger a Tap using the Renderer:
[Test]publicvoidTapShouldSetTheLabelTextToTrueWhenTappedTwice(){varrenderer=newRenderer<App>();varscreen=renderer.Render<MainPage>();// Just to show that there is a Label representing if the user Tapped.Assert.NotNull(screen.GetByText<Label>("False"));// Tries to tap on the Button with text "Tappable Button" twice.renderer.Tap(screen.GetByText("Tappable Button"),2);// The "Tappable Button" triggers a command that updates the other Label propertyAssert.NotNull(screen.GetByText<Label>("True"));}