forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Testing] Enabling ported UITests from Xamarin.UITests to Appium - 14 (…
…dotnet#25989) * Enabled UI Tests form XamarinUITests into Appium (dotnet#7) * Migrated the Issues 1023, 12126, 9006, 6127. * Migrated the Issue1323 * updated the test migration changes * Reverted unwanted changes --------- Co-authored-by: nivetha-nagalingam <[email protected]> * Update Issue6127 * updated the review changes * Update 9006.cs * Resolved CI failure * Updated HelperExtensions.cs * Update HelperExtensions.cs * Fixed the CI failure on Android * Skip failed tests on CI --------- Co-authored-by: nivetha-nagalingam <[email protected]>
- Loading branch information
1 parent
833856c
commit d621121
Showing
7 changed files
with
87 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue1023.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 18 additions & 13 deletions
31
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue6127.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
using NUnit.Framework; | ||
#if TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS // Secondary ToolBar still not supported of iOS and Catalyst https://github.com/dotnet/maui/issues/815 | ||
using NUnit.Framework; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.TestCases.Tests.Issues; | ||
|
||
public class Issue6127 : _IssuesUITest | ||
{ | ||
|
||
public Issue6127(TestDevice testDevice) : base(testDevice) | ||
{ | ||
} | ||
|
||
public override string Issue => "[Bug] ToolbarItem Order property ignored"; | ||
|
||
//[Test] | ||
//[Category(UITestCategories.ToolbarItem)] | ||
//public void Issue6127Test() | ||
//{ | ||
// App.WaitForElement(PrimaryToolbarIcon); | ||
|
||
// App.Tap("More options"); | ||
// App.WaitForElement(SecondaryToolbarIcon); | ||
|
||
// App.Screenshot("There is a secondary toolbar menu and item"); | ||
//} | ||
} | ||
[Test] | ||
[Category(UITestCategories.ToolbarItem)] | ||
public void Issue6127Test() | ||
{ | ||
//AutomationId for ToolBarIcon is not works in android | ||
#if ANDROID | ||
App.WaitForElement(AppiumQuery.ByXPath("//android.widget.Button[@content-desc='PrimaryToolbarIcon']")); | ||
#else | ||
App.WaitForElement("PrimaryToolbarIcon"); | ||
#endif | ||
App.TapMoreButton(); | ||
App.WaitForElement("Coffee"); | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters