Skip to content

Commit 837241e

Browse files
committed
Extend actions tests
Add a specific hover test and rename the other tests according to the test naming convention.
1 parent 63b2585 commit 837241e

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)