Skip to content

Commit

Permalink
commit for test case changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SuthiYuvaraj authored and jsuarezruiz committed Oct 23, 2024
1 parent b84890d commit b3b1189
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ContentPage.Content>
<Grid BackgroundColor="Red" Margin="5">
<Grid.GestureRecognizers>
<PanGestureRecognizer PanUpdated="PanGestureRecognizer_PanUpdated" />
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" />
</Grid.GestureRecognizers>
<Frame x:Name="getStartedFrame"
Margin="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ public Issue16978()
{
InitializeComponent();
}
private void PanGestureRecognizer_PanUpdated(object sender, PanUpdatedEventArgs e)

private void TapGestureRecognizer_Tapped(object sender, TappedEventArgs e)
{
FrameLabel.Text = "Pan Gesture Recognized";
FrameLabel.Text = "Tap Gesture Recognized";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if !WINDOWS
using NUnit.Framework;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -19,12 +18,10 @@ public Issue16978(TestDevice device) : base(device)
public void GestureNotRecogonizedForFrame()
{
// Is a Android issue; see https://github.com/dotnet/maui/issues/16978
App.WaitForElement("FrameGesturePage");
App.DragCoordinates(100, 100, 200, 200);
App.WaitForElement("FrameLabelTest");
App.Tap("FrameLabelTest");
var result = App.WaitForElement("FrameLabelTest").GetText();
Assert.That(result, Is.EqualTo("Pan Gesture Recognized"));
Assert.That(result, Is.EqualTo("Tap Gesture Recognized"));
}
}
}
#endif

0 comments on commit b3b1189

Please sign in to comment.