Skip to content

Commit 42e2dc1

Browse files
author
Anandhan Rajagopal
authored
[Testing] Fix for flaky UITests in CI that occasionally fail - 5 (#28583)
* fixedflakytest18751 * fix for flaky test Issue19500 * fix Issue19509 * Added mac image from CI
1 parent 609499c commit 42e2dc1

File tree

7 files changed

+10
-4
lines changed

7 files changed

+10
-4
lines changed

src/Controls/tests/TestCases.HostApp/Issues/Issue18751.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Maui.Controls.Sample.Issues
66
{
7-
[Issue(IssueTracker.ManualTest, "C2", "Can scroll CollectionView inside RefreshView", PlatformAffected.All)]
7+
[Issue(IssueTracker.ManualTest, "C2", "Can scroll CollectionView inside RefreshView", PlatformAffected.All, isInternetRequired: true)]
88
public partial class Issue18751 : ContentPage
99
{
1010
public Issue18751()

src/Controls/tests/TestCases.HostApp/Issues/Issue19500.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
x:Class="Maui.Controls.Sample.Issues.Issue19500">
5-
<Editor
5+
<Editor x:Name ="editor"
66
HeightRequest="100"
77
IsReadOnly="True"
88
AutomationId="editor"

src/Controls/tests/TestCases.HostApp/Issues/Issue19500.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ public partial class Issue19500 : ContentPage
66
public Issue19500()
77
{
88
InitializeComponent();
9+
#if MACCATALYST
10+
// Adding extra text to make the editor scrollable on Catalyst
11+
editor.Text += " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla porttitor mauris non ornare ultrices. Ut semper ultrices justo eget semper. Ut imperdiet dolor ut vestibulum molestie. Duis a libero ex. Etiam mi urna, lobortis sed tincidunt in, tempus eget magna. Aenean quis malesuada eros. Phasellus felis eros, condimentum et tortor sed, condimentum convallis turpis. Sed in varius metus, at auctor orci. Maecenas luctus nibh nibh, nec aliquam est fermentum in. Etiam consectetur lectus erat, sed placerat sapien rutrum eu. Suspendisse tincidunt fermentum tempor. Maecenas egestas neque nec lacinia fringilla.";
12+
#endif
913
}
1014
}
1115
}

src/Controls/tests/TestCases.HostApp/Issues/Issue19509.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Maui.Controls.Sample.Issues
22
{
3-
[Issue(IssueTracker.Github, 19509, "Entry TextColor property not working when the Text value is bound after some time", PlatformAffected.iOS)]
3+
[Issue(IssueTracker.Github, 19509, "The entry text color property not working when the text value is bound after some time", PlatformAffected.iOS)]
44
public partial class Issue19509 : ContentPage
55
{
66
string _text;
12.4 KB
Loading

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18751.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public Issue18751(TestDevice device) : base(device)
1818
[FailsOnAndroidWhenRunningOnXamarinUITest("Currently fails on Android; see https://github.com/dotnet/maui/issues/15994")]
1919
public async Task Issue18751Test()
2020
{
21+
VerifyInternetConnectivity();
22+
2123
App.WaitForElement("WaitForStubControl");
2224

2325
// Load images.

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19509.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public Issue19509(TestDevice device) : base(device)
1010
{
1111
}
1212

13-
public override string Issue => "Entry TextColor property not working when the Text value is bound after some time";
13+
public override string Issue => "The entry text color property not working when the text value is bound after some time";
1414

1515
[Test]
1616
[Category(UITestCategories.Entry)]

0 commit comments

Comments
 (0)