Skip to content

Commit ae9a0f4

Browse files
committed
Extend actions tests
Add a specific hover test and rename the other tests according to the test naming convention.
1 parent e592c58 commit ae9a0f4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/FlaUI.WebDriver.UITests/ActionsTest.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void ReleaseActions_Default_ReleasesKeys()
5050
}
5151

5252
[Test]
53-
public void PerformActions_MoveToElement_Click()
53+
public void PerformActions_MoveToElementAndClick_SelectsElement()
5454
{
5555
var element = _driver.FindElement(ExtendedBy.AccessibilityId("TextBox"));
5656

@@ -60,7 +60,17 @@ public void PerformActions_MoveToElement_Click()
6060
}
6161

6262
[Test]
63-
public void PerformActions_MoveToElement_MoveByOffset_Click()
63+
public void PerformActions_MoveToElement_IsSupported()
64+
{
65+
var element = _driver.FindElement(ExtendedBy.AccessibilityId("LabelWithHover"));
66+
67+
new Actions(_driver).MoveToElement(element).Perform();
68+
69+
Assert.That(element.Text, Is.EqualTo("Hovered!"));
70+
}
71+
72+
[Test]
73+
public void PerformActions_MoveToElementMoveByOffsetAndClick_SelectsElement()
6474
{
6575
var element = _driver.FindElement(ExtendedBy.AccessibilityId("TextBox"));
6676

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy