Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Dec 27, 2024
1 parent da13917 commit 442e4c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public void testPage() {
public void testIndex() {
RestAssured.when().get("/bar").then().statusCode(200).log().ifValidationFails()
.body("html.head.title", equalTo("Hello, world! I'm Roq"))
.body("html.body.div.h1[1]", containsString("posts/awesome-post.html"))
.body("html.body.div.h1[0]", containsString("posts/awesome-post.html"))
.body("html.body.div.h1[1]", containsString("posts/2024-03-10-dir-post/index.html"))
.body("html.body.div.h1[2]", containsString("posts/2020-10-24-old-post.html"))
.body("html.body.div.h2", equalTo("Hello, world! I'm Roq"))
.body("html.body.div.p", equalTo("bar bar bar"));
Expand Down

0 comments on commit 442e4c3

Please sign in to comment.