forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue28440.cs
More file actions
29 lines (26 loc) · 780 Bytes
/
Issue28440.cs
File metadata and controls
29 lines (26 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;
namespace Microsoft.Maui.TestCases.Tests.Issues;
public class Issue28440 : _IssuesUITest
{
public override string Issue => "FlyoutPage IsPresented not updated properly in windows";
public Issue28440(TestDevice device)
: base(device)
{ }
[Test]
[Category(UITestCategories.FlyoutPage)]
public void CheckFlyoutPageIsPresentedState()
{
var buttonElement = App.WaitForElement("Button");
var buttonRect = buttonElement.GetRect();
App.Tap("Button");
App.WaitForElement("flyoutMenu");
float tapX = buttonRect.X + buttonRect.Width - 10;
float tapY = buttonRect.CenterY();
App.TapCoordinates(tapX, tapY);
App.WaitForElement("Button");
App.Tap("Button");
App.WaitForElement("flyoutMenu");
}
}