Skip to content
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Controls/tests/TestCases.HostApp/Issues/Issue11962.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{

[Issue(IssueTracker.Github, 11962, "[iOS] Cannot access a disposed object. Object name: 'WkWebViewRenderer",
PlatformAffected.iOS)]
PlatformAffected.iOS, isInternetRequired: true)]
public class Issue11962 : TestShell
{
protected override void Init()
Expand Down
4 changes: 2 additions & 2 deletions src/Controls/tests/TestCases.HostApp/Issues/Issue14825.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
x:DataType="local:Issue14825">

<VerticalStackLayout>
<Label Text="WebView"/>
<WebView x:Name="myWebView" WidthRequest="400" HeightRequest="150">
<Label Text="WebView" AutomationId="TestLabel"/>
<WebView x:Name="myWebView" WidthRequest="400" HeightRequest="150" HorizontalOptions="Start">
<WebView.Source>
<HtmlWebViewSource>
<HtmlWebViewSource.Html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ private async void CaptureButton_Clicked(object sender, EventArgs e)
Stream stream = await result.OpenReadAsync(ScreenshotFormat.Png, 100);

screenshotResult.Add(new Label() { Text = $"Your screenshot ({myWebView.Width}x{myWebView.Height}):" });
screenshotResult.Add(new Image() { Source = ImageSource.FromStream(() => stream), WidthRequest = myWebView.Width, HeightRequest = myWebView.Height });
screenshotResult.Add(new Image() { Source = ImageSource.FromStream(() => stream), WidthRequest = myWebView.Width, HeightRequest = myWebView.Height, HorizontalOptions = LayoutOptions.Start });
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#if TEST_FAILS_ON_WINDOWS // EmptyView Elements not accessible via Automation on Windows, Issue Link: https://github.com/dotnet/maui/issues/28022
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

namespace Microsoft.Maui.TestCases.Tests
{
#if IOS
public class CollectionViewEmptyViewTests : CollectionViewUITests
{
protected override bool ResetAfterEachTest => true;
Expand Down Expand Up @@ -38,5 +39,6 @@ public void EmptyViewItemsSourceNullViewWorks()
App.WaitForElement("Nothing to display.");
}
}
#endif
}

}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Microsoft.Maui.TestCases.Tests
{
#if IOS
public class CollectionViewGroupingTests : CollectionViewUITests
{
protected override bool ResetAfterEachTest => true;
Expand All @@ -30,5 +30,5 @@ public void GroupingAndHeaderWorks()
App.WaitForElement("Total members: 12");
}
}
#endif
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if TEST_FAILS_ON_IOS && TEST_FAILS_ON_CATALYST // Multiselection not working in Catalyst and iOS, Issue: https://github.com/dotnet/maui/issues/26942 & https://github.com/dotnet/maui/issues/26943
#if TEST_FAILS_ON_CATALYST // Multiselection not working in Catalyst , Issue: https://github.com/dotnet/maui/issues/26942
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public Issue11962(TestDevice testDevice) : base(testDevice)
[Category(UITestCategories.Compatibility)]
public void WebViewDisposesProperly()
{
VerifyInternetConnectivity();
App.WaitForElement("NextButton");
App.Tap("NextButton");
App.WaitForElement("BackButton");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if WINDOWS
using NUnit.Framework;
using NUnit.Framework;
using UITest.Appium;
using UITest.Core;

Expand All @@ -18,11 +17,10 @@ public Issue14825(TestDevice device) : base(device)
public void ValidateWebViewScreenshot()
{
App.WaitForElement("TestInstructions");

Thread.Sleep(2000); // Wait for the WebView to load
// Click the capture button to capture a WebView screenshot.
App.Click("Capture");

App.WaitForElement("TestInstructions", timeout: TimeSpan.FromSeconds(2));
VerifyScreenshot();
}
}
#endif
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading