mirror of
https://dev.azure.com/Foster-X/CMP329%20CW2/_git/CMP329%20CW2
synced 2025-07-27 04:33:31 +00:00
Deletion verification now attempts to visit deleted page (Fix)
This commit is contained in:
parent
4ab8d94741
commit
a336996c73
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ public class TestPoster {
|
|||
driver.get(editURL);
|
||||
WebElement deleteButton = driver.findElement(By.id(DELETE_BUTTON_ID));
|
||||
deleteButton.click();
|
||||
driver.get(POST_URL);
|
||||
postedTitle= driver.getTitle();
|
||||
assertTrue(postedTitle.startsWith("Page not found"));
|
||||
} else { //if there's no permission to post
|
||||
|
|
Loading…
Add table
Reference in a new issue