From 655ae4f9a11d723f55ba441fedf19926e165183a Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 21 Sep 2022 08:35:22 +0200 Subject: [PATCH] Fix js unit test for report modal Signed-off-by: Thomas Citharel --- js/src/components/Report/ReportModal.vue | 4 ++-- js/tests/unit/specs/components/Report/ReportModal.spec.ts | 2 +- .../components/Report/__snapshots__/ReportModal.spec.ts.snap | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/src/components/Report/ReportModal.vue b/js/src/components/Report/ReportModal.vue index ac6f113b1..aa148d800 100644 --- a/js/src/components/Report/ReportModal.vue +++ b/js/src/components/Report/ReportModal.vue @@ -49,9 +49,9 @@ - +
diff --git a/js/tests/unit/specs/components/Report/ReportModal.spec.ts b/js/tests/unit/specs/components/Report/ReportModal.spec.ts index 87911b2f7..cd3926446 100644 --- a/js/tests/unit/specs/components/Report/ReportModal.spec.ts +++ b/js/tests/unit/specs/components/Report/ReportModal.spec.ts @@ -63,7 +63,7 @@ describe("ReportModal", () => { }, }); - const commentContainer = wrapper.find("article.media"); + const commentContainer = wrapper.find("article"); expect(commentContainer.find("strong").text()).toContain( "I am the comment author" ); diff --git a/js/tests/unit/specs/components/Report/__snapshots__/ReportModal.spec.ts.snap b/js/tests/unit/specs/components/Report/__snapshots__/ReportModal.spec.ts.snap index d7bf4b08c..d85250eba 100644 --- a/js/tests/unit/specs/components/Report/__snapshots__/ReportModal.spec.ts.snap +++ b/js/tests/unit/specs/components/Report/__snapshots__/ReportModal.spec.ts.snap @@ -9,8 +9,8 @@ exports[`ReportModal > renders report modal with basic informations and submits
-
-
+
+