[arquillian-issues] [JBoss JIRA] (ARQGRA-472) TestCases are copy-pasted

Lukáš Fryč (JIRA) issues at jboss.org
Fri Oct 16 05:36:00 EDT 2015


     [ https://issues.jboss.org/browse/ARQGRA-472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukáš Fryč updated ARQGRA-472:
------------------------------
    Fix Version/s: 2.1-Tracking


> TestCases are copy-pasted
> -------------------------
>
>                 Key: ARQGRA-472
>                 URL: https://issues.jboss.org/browse/ARQGRA-472
>             Project: Arquillian Graphene
>          Issue Type: Bug
>          Components: unit-test
>    Affects Versions: 2.1-Tracking
>            Reporter: Vitalii Grygoryuk
>             Fix For: 2.1-Tracking
>
>
> TestHandlingOfStaleElements.testDeletion() and TestHandlingOfStaleElements.testReplacement() are both testing deletion, so there is no test case for node replacement logic:
> {code}
>     @Test
>     public void testDeletion() {
>         rootElement.isDisplayed();
>         executor.executeScript("return arguments[0].parentNode.removeChild(arguments[0])", rootElement);
>         try {
>             rootElement.isDisplayed();
>             fail("rootElement should not be found");
>         } catch (NoSuchElementException e) {
>         }
>     }
>     @Test
>     public void testReplacement() {
>         rootElement.isDisplayed();
>         executor.executeScript("return arguments[0].parentNode.removeChild(arguments[0])", rootElement);
>         try {
>             rootElement.isDisplayed();
>             fail("rootElement should not be found");
>         } catch (NoSuchElementException e) {
>         }
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the arquillian-issues mailing list