From ef1adecc1224949f09610d97613265a22502ab6e Mon Sep 17 00:00:00 2001 From: Laurent GAY Date: Thu, 26 Jun 2025 11:16:47 +0200 Subject: [PATCH] correct assessible name for link - issue #1780 --- src/components/NavBar.vue | 1 + src/components/PageFooter.vue | 10 +--- .../ParticipationWithoutAccount.spec.ts | 2 + .../__snapshots__/footer.spec.ts.snap | 51 ++++++++++++++++ .../__snapshots__/navbar.spec.ts.snap | 2 +- tests/unit/specs/components/footer.spec.ts | 58 +++++++++++++++++++ 6 files changed, 116 insertions(+), 8 deletions(-) create mode 100644 tests/unit/specs/components/__snapshots__/footer.spec.ts.snap create mode 100644 tests/unit/specs/components/footer.spec.ts diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index e348446c5..ee37db80d 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -6,6 +6,7 @@
diff --git a/src/components/PageFooter.vue b/src/components/PageFooter.vue index b800736f4..e8923e662 100644 --- a/src/components/PageFooter.vue +++ b/src/components/PageFooter.vue @@ -54,8 +54,9 @@ @@ -63,12 +64,7 @@ >{{ new Date().getFullYear() }}
diff --git a/tests/unit/specs/components/Participation/ParticipationWithoutAccount.spec.ts b/tests/unit/specs/components/Participation/ParticipationWithoutAccount.spec.ts index 123848436..9a664c92b 100644 --- a/tests/unit/specs/components/Participation/ParticipationWithoutAccount.spec.ts +++ b/tests/unit/specs/components/Participation/ParticipationWithoutAccount.spec.ts @@ -138,6 +138,7 @@ describe("ParticipationWithoutAccount", () => { wrapper.find("form").trigger("submit"); await flushPromises(); + expect(wrapper.vm.error).toBe(false); expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith( expect.objectContaining(joinEventMock) @@ -215,6 +216,7 @@ describe("ParticipationWithoutAccount", () => { wrapper.find("form").trigger("submit"); await flushPromises(); + expect(wrapper.vm.error).toBe(false); expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith( expect.objectContaining(joinEventMock) diff --git a/tests/unit/specs/components/__snapshots__/footer.spec.ts.snap b/tests/unit/specs/components/__snapshots__/footer.spec.ts.snap new file mode 100644 index 000000000..44cc5b631 --- /dev/null +++ b/tests/unit/specs/components/__snapshots__/footer.spec.ts.snap @@ -0,0 +1,51 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`App component > renders a Vue component 1`] = ` +"" +`; diff --git a/tests/unit/specs/components/__snapshots__/navbar.spec.ts.snap b/tests/unit/specs/components/__snapshots__/navbar.spec.ts.snap index 58d868dbc..31ba911af 100644 --- a/tests/unit/specs/components/__snapshots__/navbar.spec.ts.snap +++ b/tests/unit/specs/components/__snapshots__/navbar.spec.ts.snap @@ -3,7 +3,7 @@ exports[`App component > renders a Vue component 1`] = ` "