-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled 44th Set of UITests migrated from XamarinUITest into Appium (#42
) (#26563) * Migrated Issues : Issue55555, Issue4138, Issue3840, Issue3292 * Modified code changes * Modified the migrated tests * Updated Issue55555 sample * reverted 4138 --------- Co-authored-by: HarishKumarSF4517 <harish.kumar@syncfusion.com>
- Loading branch information
1 parent
38b3c64
commit bc098bf
Showing
5 changed files
with
40 additions
and
38 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
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
38 changes: 18 additions & 20 deletions
38
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue3840.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,32 +1,30 @@ | ||
using NUnit.Framework; | ||
#if TEST_FAILS_ON_IOS && TEST_FAILS_ON_CATALYST // In iOS and Catalyst, WaitForNoElement throws a timeout exception eventhough the text is not visible on the screen by scrolling. | ||
using NUnit.Framework; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.TestCases.Tests.Issues; | ||
|
||
public class Issue3840 : _IssuesUITest | ||
{ | ||
const string FailedText = "Test Failed if Visible"; | ||
const string FirstButton = "FirstClick"; | ||
const string SecondButton = "SecondClick"; | ||
public Issue3840(TestDevice testDevice) : base(testDevice) | ||
{ | ||
{ | ||
} | ||
|
||
public override string Issue => "[iOS] Translation change causes ScrollView to reset to initial position (0, 0)"; | ||
|
||
// TODO: The _ variables need to be AutomationId values | ||
// [Test] | ||
// [FailsOnIOSWhenRunningOnXamarinUITest] | ||
// [Category(UITestCategories.ScrollView)] | ||
// public void TranslatingViewKeepsScrollViewPosition() | ||
// { | ||
// App.WaitForElement(_failedText); | ||
// App.Tap(_button1); | ||
// App.Tap(_button2); | ||
//#if WINDOWS | ||
// var label = App.WaitForElement(_failedText); | ||
// Assert.AreEqual(0, label[0].Rect.Height); | ||
// Assert.AreEqual(0, label[0].Rect.Width); | ||
//#else | ||
// var result = App.QueryUntilNotPresent(() => App.Query(_failedText)); | ||
//#endif | ||
// } | ||
} | ||
[Test] | ||
[Category(UITestCategories.ScrollView)] | ||
public void TranslatingViewKeepsScrollViewPosition() | ||
{ | ||
App.WaitForElement(FailedText); | ||
App.Tap(FirstButton); | ||
App.WaitForElement(SecondButton); | ||
App.Tap(SecondButton); | ||
App.WaitForNoElement(FailedText); | ||
} | ||
} | ||
#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