Use IconBox for menu item tapping
This commit is contained in:
Родитель
54087e86d1
Коммит
ff97654e83
|
@ -27,10 +27,10 @@
|
|||
<PackageReference Update="Microsoft.TypeScript.MSBuild" Version="3.1.5" />
|
||||
<PackageReference Update="NUnit" Version="3.12.0" />
|
||||
<PackageReference Update="NUnit3TestAdapter" Version="3.16.0" />
|
||||
<PackageReference Update="Uno.UITest" Version="1.0.0-dev.105" />
|
||||
<PackageReference Update="Uno.UITest.Selenium" Version="1.0.0-dev.105" />
|
||||
<PackageReference Update="Uno.UITest.Xamarin" Version="1.0.0-dev.105" />
|
||||
<PackageReference Update="Uno.UITest.Helpers" Version="1.0.0-dev.105" />
|
||||
<PackageReference Update="Uno.UITest" Version="1.0.0-dev.107" />
|
||||
<PackageReference Update="Uno.UITest.Selenium" Version="1.0.0-dev.107" />
|
||||
<PackageReference Update="Uno.UITest.Xamarin" Version="1.0.0-dev.107" />
|
||||
<PackageReference Update="Uno.UITest.Helpers" Version="1.0.0-dev.107" />
|
||||
<PackageReference Update="System.ValueTuple" Version="4.5.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@ namespace SamplesApp.UITests.Windows_UI_Xaml_Controls.NavigationViewTests
|
|||
{
|
||||
Run("SamplesApp.Samples.Windows_UI_Xaml_Controls.NavigationViewTests.NavigationView_Pane_Automated");
|
||||
|
||||
var itemPlay = _app.Marked("Item Play");
|
||||
var itemSave = _app.Marked("Item Save");
|
||||
var itemPlay = _app.Marked("Item Play").Descendant().Marked("IconBox");
|
||||
var itemSave = _app.Marked("Item Save").Descendant().Marked("IconBox");
|
||||
var selectedItemText = _app.Marked("selectedItemText");
|
||||
|
||||
_app.Tap(itemPlay);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
</Grid.RowDefinitions>
|
||||
|
||||
<Border
|
||||
x:Name="Parent"
|
||||
x:Name="_Parent"
|
||||
BorderThickness="10"
|
||||
BorderBrush="DeepSkyBlue"
|
||||
Background="Red"
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace UITests.Shared.Windows_UI_Input.GestureRecognizerTests
|
|||
private void OnParentPointerMoved(object sender, PointerRoutedEventArgs e)
|
||||
{
|
||||
var parentRelToTarget = e.GetCurrentPoint(Target).Position;
|
||||
var parentRelToParent = e.GetCurrentPoint(Parent).Position;
|
||||
var parentRelToParent = e.GetCurrentPoint(_Parent).Position;
|
||||
|
||||
ParentRelToTarget.Text = F(parentRelToTarget);
|
||||
ParentRelToParent.Text = F(parentRelToParent);
|
||||
|
@ -29,7 +29,7 @@ namespace UITests.Shared.Windows_UI_Input.GestureRecognizerTests
|
|||
private void OnTargetPointerMoved(object sender, PointerRoutedEventArgs e)
|
||||
{
|
||||
var targetRelToTarget = e.GetCurrentPoint(Target).Position;
|
||||
var targetRelToParent = e.GetCurrentPoint(Parent).Position;
|
||||
var targetRelToParent = e.GetCurrentPoint(_Parent).Position;
|
||||
|
||||
TargetRelToTarget.Text = F(targetRelToTarget);
|
||||
TargetRelToParent.Text = F(targetRelToParent);
|
||||
|
|
Загрузка…
Ссылка в новой задаче