Skip to content

Commit

Permalink
fixing flaky ui test...
Browse files Browse the repository at this point in the history
  • Loading branch information
gtiwari333 committed Oct 9, 2023
1 parent ad52473 commit 60f8b4d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void loadIndexPageAndVerifyResultIsCached(@Autowired MockMvc mvc) throws Excepti
.andReturn();

String content = result.getResponse().getContentAsString();
assertTrue(content.contains("<title>Article App - HOME</title>"));
assertTrue(content.contains("Article App - HOME"));
assertTrue(content.contains("User2 Article"));
assertTrue(content.contains("Ganesh Tiwari"));

Expand All @@ -68,7 +68,7 @@ void testCacheAndDBBothAreResetBetweenTests(@Autowired MockMvc mvc) throws Excep
.andReturn();

String content = result.getResponse().getContentAsString();
assertTrue(content.contains("<title>Article App - HOME</title>"));
assertTrue(content.contains("Article App - HOME"));
assertTrue(content.contains("User2 Article"));
assertTrue(content.contains("Ganesh Tiwari"));

Expand Down

0 comments on commit 60f8b4d

Please sign in to comment.