Skip to content

Commit

Permalink
Delete newly created movie to make test idempotent.
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarthez committed Oct 12, 2015
1 parent cb54b30 commit 24ed38d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ public void createMovieTest() {
$(By.linkText("Find")).click();
// there should be only one match
$$(".ListMovieObjRow").shouldHaveSize(1);
// delete the movie
$(".ListMovieObjRow").find(".DeleteObjButton").click();
$(By.linkText("Delete")).click();
$(".ERMDEmptyListMessage").shouldHave(text("No matching Movie records found."));
}

}

0 comments on commit 24ed38d

Please sign in to comment.