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

Vitalii Grygoryuk (JIRA) issues at jboss.org
Fri Jun 26 04:58:02 EDT 2015


Vitalii Grygoryuk created ARQGRA-472:
----------------------------------------

             Summary: 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


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.3.15#6346)


More information about the arquillian-issues mailing list