From 60f8b4d0aa08a94fa7b75ccf7eea3c4b45ac5ca7 Mon Sep 17 00:00:00 2001 From: Ganesh T Date: Sun, 8 Oct 2023 19:39:56 -0500 Subject: [PATCH] fixing flaky ui test... --- .../main-webapp/src/test/java/gt/app/e2e/PublicPageIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main-app/main-webapp/src/test/java/gt/app/e2e/PublicPageIT.java b/main-app/main-webapp/src/test/java/gt/app/e2e/PublicPageIT.java index a2a7432..e518db4 100644 --- a/main-app/main-webapp/src/test/java/gt/app/e2e/PublicPageIT.java +++ b/main-app/main-webapp/src/test/java/gt/app/e2e/PublicPageIT.java @@ -43,7 +43,7 @@ void loadIndexPageAndVerifyResultIsCached(@Autowired MockMvc mvc) throws Excepti .andReturn(); String content = result.getResponse().getContentAsString(); - assertTrue(content.contains("Article App - HOME")); + assertTrue(content.contains("Article App - HOME")); assertTrue(content.contains("User2 Article")); assertTrue(content.contains("Ganesh Tiwari")); @@ -68,7 +68,7 @@ void testCacheAndDBBothAreResetBetweenTests(@Autowired MockMvc mvc) throws Excep .andReturn(); String content = result.getResponse().getContentAsString(); - assertTrue(content.contains("Article App - HOME")); + assertTrue(content.contains("Article App - HOME")); assertTrue(content.contains("User2 Article")); assertTrue(content.contains("Ganesh Tiwari"));