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 - 46 (…
…dotnet#26570) * Enabled 46th set of UITests migrated from XamarinUITest into Appium (dotnet#44) * Migrated the Bugzilla44096, Issue10608 and 1414 * Migrated the Issues 11523, 2951 and 7167 * Addressed the feedbacks * Addressed the feedbacks * Modified the enabled tests * Update Issue2951 * Migrated 4138 --------- Co-authored-by: nivetha-nagalingam <[email protected]> * Added UITest images for Android and iOS platforms (dotnet#45) * Migrated the Bugzilla44096, Issue10608 and 1414 * Migrated the Issues 11523, 2951 and 7167 * Addressed the feedbacks * Addressed the feedbacks * Modified the enabled tests * Update Issue2951 * Migrated 4138 * Updated images for android and iOS --------- Co-authored-by: nivetha-nagalingam <[email protected]> * Added windows images and resolved test failures on CI --------- Co-authored-by: nivetha-nagalingam <[email protected]>
- Loading branch information
1 parent
c0bd0b3
commit 833856c
Showing
11 changed files
with
132 additions
and
146 deletions.
There are no files selected for viewing
Binary file added
BIN
+18.7 KB
src/Controls/tests/TestCases.Android.Tests/snapshots/android/Issue2951Test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
67 changes: 36 additions & 31 deletions
67
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue10608.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,46 +1,51 @@ | ||
using NUnit.Framework; | ||
#if TEST_FAILS_ON_WINDOWS //Pending Navigations still processing exception when navigating to the page on windows. Issue Link: https://github.com/dotnet/maui/issues/17608 | ||
using NUnit.Framework; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.TestCases.Tests.Issues; | ||
|
||
public class Issue10608 : _IssuesUITest | ||
{ | ||
const string OpenLeftId = "OpenLeftId"; | ||
const string OpenRightId = "OpenRightId"; | ||
const string OpenTopId = "OpenTopId"; | ||
const string OpenBottomId = "OpenBottomId"; | ||
const string CloseId = "CloseId"; | ||
#if ANDROID | ||
const string Tab1 = "TAB 1"; | ||
const string Tab2 = "TAB 2"; | ||
const string FlyoutItem6 = "Let me click for you"; | ||
#else | ||
const string Tab1 = "Tab1AutomationId"; | ||
const string Tab2 = "Tab2AutomationId"; | ||
const string FlyoutItem6 = "FlyoutItem6"; | ||
#endif | ||
|
||
public Issue10608(TestDevice testDevice) : base(testDevice) | ||
{ | ||
} | ||
|
||
public override string Issue => "[Bug] [Shell] [iOS] Locked flyout causes application to freezes when quickly switching between tabs"; | ||
|
||
// [Test] | ||
// [Category(UITestCategories.Shell)] | ||
// public void ShellWithTopTabsFreezesWhenNavigatingFlyoutItems() | ||
// { | ||
// App.Tap("FlyoutItem6"); | ||
// App.Tap("FlyoutItem0"); | ||
// for (int i = 0; i < 5; i++) | ||
// { | ||
// App.WaitForElement("Tab1AutomationId"); | ||
// App.WaitForElement("LearnMoreButton"); | ||
// App.Tap("FlyoutItem0"); | ||
// App.Tap("FlyoutItem1"); | ||
// App.Tap("FlyoutItem0"); | ||
// App.WaitForElement("LearnMoreButton"); | ||
// } | ||
|
||
// App.WaitForElement("Tab1AutomationId"); | ||
// App.WaitForElement("LearnMoreButton"); | ||
// App.Tap("FlyoutItem1"); | ||
// App.WaitForElement("Tab2AutomationId"); | ||
// App.WaitForElement("LearnMoreButton"); | ||
// App.Tap("FlyoutItem0"); | ||
// App.WaitForElement("Tab1AutomationId"); | ||
// App.WaitForElement("LearnMoreButton"); | ||
// } | ||
[Test] | ||
[Category(UITestCategories.Shell)] | ||
public void ShellWithTopTabsFreezesWhenNavigatingFlyoutItems() | ||
{ | ||
App.Tap(FlyoutItem6); | ||
App.Tap("FlyoutItem0"); | ||
for (int i = 0; i < 5; i++) | ||
{ | ||
App.WaitForElement(Tab1); | ||
App.WaitForElement("LearnMoreButton"); | ||
App.Tap("FlyoutItem0"); | ||
App.Tap("FlyoutItem1"); | ||
App.Tap("FlyoutItem0"); | ||
App.WaitForElement("LearnMoreButton"); | ||
} | ||
App.WaitForElement(Tab1); | ||
App.WaitForElement("LearnMoreButton"); | ||
App.Tap("FlyoutItem1"); | ||
App.WaitForElement(Tab2); | ||
App.WaitForElement("LearnMoreButton"); | ||
App.Tap("FlyoutItem0"); | ||
App.WaitForElement(Tab1); | ||
App.WaitForElement("LearnMoreButton"); | ||
} | ||
} | ||
#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
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
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
Binary file added
BIN
+6.68 KB
src/Controls/tests/TestCases.WinUI.Tests/snapshots/windows/Issue2951Test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.1 KB
src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/Issue2951Test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12 KB
src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/TitleIconIsCentered.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.