Skip to content
Snippets Groups Projects
Verified Commit 2b71e939 authored by Julien Wittouck's avatar Julien Wittouck
Browse files

:recycle: : use better assertion

parent 440e0c9f
No related branches found
No related tags found
No related merge requests found
Pipeline #36271 passed
...@@ -87,11 +87,9 @@ public class AssertionMethods extends SelectElementByType implements BaseTest { ...@@ -87,11 +87,9 @@ public class AssertionMethods extends SelectElementByType implements BaseTest {
String elementText = getElementText(accessType, accessName); String elementText = getElementText(accessType, accessName);
if (testCase) { if (testCase) {
if (!elementText.equals(actualValue)) assertThat(elementText).isEqualTo(actualValue);
fail("Text Not Matched");
} else { } else {
if (elementText.equals(actualValue)) assertThat(elementText).isNotEqualTo(actualValue);
fail("Text Matched");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment