Skip to content

Commit

Permalink
disable HtmlDropdownTest
Browse files Browse the repository at this point in the history
  • Loading branch information
krschau committed Feb 8, 2022
1 parent 6c69538 commit 65f8bc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev/WebView2/InteractionTests/WebView2Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2121,26 +2121,26 @@ public void CreateWebView2OffTreeTest()

[TestMethod]
[TestProperty("TestSuite", "D")]
[TestProperty("Ignore", "True")] // Passes locally, test can be run manually
public void HtmlDropdownTest()
{
using (var setup = new WebView2TestSetupHelper(new[] { "WebView2 Tests", "navigateToBasicWebView2" }))
{
ChooseTest("HtmlDropdownTest");

// Click on the select (dropdown) element, which is huge and covers the center of the WebView2
// Click on the select (dropdown) element, which covers the center of the WebView2
var webview = FindElement.ById("MyWebView2");
Rectangle bounds = webview.BoundingRectangle;
// TODO_WebView2Input - Task 30555367 - Stack Overflow in WebView2 pointer tests when (MUXC) test infra calls WV2.GetClickablePoint()
// Workaround to avoid any calls to WebView2.GetClickablePoint
var point = new Point(bounds.X + bounds.Width / 2, bounds.Y + bounds.Height / 2);
Log.Comment("Move mouse to ({0}, {1})", bounds.X + bounds.Width / 2, bounds.Y + bounds.Height / 2);
Log.Comment("Move mouse to ({0}, {1})", point.X, point.Y);
PointerInput.Move(point);
PointerInput.Press(PointerButtons.Primary);
PointerInput.Release(PointerButtons.Primary);

var newPoint = new Point(point.X, point.Y + 110);
Log.Comment("Move mouse to another dropdown option");
PointerInput.Move(newPoint);
Log.Comment("Click other option");
PointerInput.Press(PointerButtons.Primary);
PointerInput.Release(PointerButtons.Primary);

Expand Down

0 comments on commit 65f8bc6

Please sign in to comment.