Skip to content

Commit

Permalink
Added unit test for reported issue #254
Browse files Browse the repository at this point in the history
  • Loading branch information
filipcynarski committed Jun 26, 2016
1 parent c8036cd commit 55d29f8
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -133,6 +133,12 @@ public void testSubstringKo() throws Exception {
fluentWebElementAssert.hasClass("yolo");
}

@Test
public void testHasTextOk() throws Exception {
when(fluentWebElement.getText()).thenReturn("There is a 5% increase");
fluentWebElementAssert.hasText("There is a 5% increase");
}

@Test
public void testHasMultipleClassesOk() throws Exception {
when(fluentWebElement.getAttribute("class")).thenReturn("yolokitten mark");
Expand Down

0 comments on commit 55d29f8

Please sign in to comment.