-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove excess check in iOS input transparency checks (#21883)
* Remove extra input transparent check * - rework scroll a bit * Update Issue18716.cs
- Loading branch information
Showing
7 changed files
with
95 additions
and
40 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
12 changes: 12 additions & 0 deletions
12
src/Controls/samples/Controls.Sample.UITests/Issues/Issue18716.xaml
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Maui.Controls.Sample.Issues.Issue18716"> | ||
<Grid> | ||
<WebView | ||
x:Name="WaitForStubControl" | ||
AutomationId="WaitForStubControl"> | ||
</WebView> | ||
</Grid> | ||
</ContentPage> |
19 changes: 19 additions & 0 deletions
19
src/Controls/samples/Controls.Sample.UITests/Issues/Issue18716.xaml.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample.Issues | ||
{ | ||
[Issue(IssueTracker.Github, 18716, "Touch events are not working on WebView when a PDF is displayed", PlatformAffected.iOS)] | ||
public partial class Issue18716 : ContentPage | ||
{ | ||
public Issue18716() | ||
{ | ||
InitializeComponent(); | ||
var urlWebViewSource = new UrlWebViewSource | ||
{ | ||
Url = $"dotnetmaui.pdf" | ||
}; | ||
|
||
WaitForStubControl.Source = urlWebViewSource; | ||
} | ||
} | ||
} |
Binary file added
BIN
+294 KB
src/Controls/samples/Controls.Sample.UITests/Resources/Raw/dotnetmaui.pdf
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using NUnit.Framework; | ||
using UITest.Appium; | ||
using UITest.Core; | ||
|
||
namespace Microsoft.Maui.AppiumTests.Issues | ||
{ | ||
public class Issue18716 : _IssuesUITest | ||
{ | ||
public Issue18716(TestDevice device) | ||
: base(device) | ||
{ } | ||
|
||
public override string Issue => "Touch events are not working on WebView when a PDF is displayed"; | ||
|
||
/* | ||
There's an issue getting the mouse interactions to work with Appium. | ||
[Test] | ||
[Category(UITestCategories.WebView)] | ||
public async Task CanScrollWebView() | ||
{ | ||
this.IgnoreIfPlatforms(new TestDevice[] { TestDevice.Android, TestDevice.Windows, TestDevice.iOS }); | ||
await Task.Delay(1000); // Wait WebView to load. | ||
App.WaitForElement("WaitForStubControl"); | ||
App.ScrollDown("WaitForStubControl", ScrollStrategy.Gesture, 0.75); | ||
App.Screenshot("Scrolling has been done correctly."); | ||
}*/ | ||
|
||
} | ||
} |
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