]
Work on ARQGRA-472 stopped by Matous Jobanek.
---------------------------------------------
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
Assignee: Matous Jobanek
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}