Skip to content

Commit

Permalink
Add failing for test for mobile + cross process navigation (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Mar 9, 2019
1 parent c96e89b commit 6e19161
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/PuppeteerSharp.Tests/InputTests/InputTests.cs
Expand Up @@ -552,6 +552,32 @@ public async Task ShouldTweenMouseMovement()
}, await Page.EvaluateExpressionAsync<int[][]>("result"));
}

[Fact(Skip = "see https://crbug.com/929806")]
public async Task ShouldWorkWithMobileViewportsAndCrossProcessNavigations()
{
await Page.GoToAsync(TestConstants.EmptyPage);
await Page.SetViewportAsync(new ViewPortOptions
{
Width = 360,
Height = 640,
IsMobile = true
});
await Page.GoToAsync(TestConstants.CrossProcessUrl + "/mobile.html");
await Page.EvaluateFunctionAsync(@"() => {
document.addEventListener('click', event => {
window.result = { x: event.clientX, y: event.clientY };
});
}");

await Page.Mouse.ClickAsync(30, 40);

Assert.Equal(new DomPointInternal()
{
X = 30,
Y = 40
}, await Page.EvaluateExpressionAsync<DomPointInternal>("result"));
}

[Fact]
public async Task ShouldTapTheButton()
{
Expand Down

0 comments on commit 6e19161

Please sign in to comment.