From 157ac509a8d9d3f4efe82eb74299570033b2a517 Mon Sep 17 00:00:00 2001 From: Anssi Juvonen Date: Thu, 19 Dec 2024 12:30:08 +0200 Subject: [PATCH 1/5] Add new QA section --- src/components/QAComponent.vue | 1 + src/components/__tests__/QAComponent.spec.ts | 2 +- .../__snapshots__/QAComponent.spec.ts.snap | 22 ++++++++++++++++--- .../__snapshots__/SettingsView.spec.ts.snap | 9 +++++++- src/i18n/en.json | 6 ++++- src/i18n/fi.json | 8 +++++-- 6 files changed, 40 insertions(+), 8 deletions(-) diff --git a/src/components/QAComponent.vue b/src/components/QAComponent.vue index 0245744..431c036 100644 --- a/src/components/QAComponent.vue +++ b/src/components/QAComponent.vue @@ -10,6 +10,7 @@ const questions = [ 'categories', 'isItFree', 'isMyDataSafe', + 'howToInstall', 'contact', ]; diff --git a/src/components/__tests__/QAComponent.spec.ts b/src/components/__tests__/QAComponent.spec.ts index 92ed4a2..0028cd0 100644 --- a/src/components/__tests__/QAComponent.spec.ts +++ b/src/components/__tests__/QAComponent.spec.ts @@ -7,7 +7,7 @@ describe('QAComponent', () => { it('renders', () => { const wrapper = mount(QAComponent); expect(wrapper.html()).toMatchSnapshot(); - expect(wrapper.findAll('[aria-expanded="false"]').length).toBe(7); + expect(wrapper.findAll('[aria-expanded="false"]').length).toBe(8); }); it('renders answers', async () => { diff --git a/src/components/__tests__/__snapshots__/QAComponent.spec.ts.snap b/src/components/__tests__/__snapshots__/QAComponent.spec.ts.snap index d052b9c..1f895cf 100644 --- a/src/components/__tests__/__snapshots__/QAComponent.spec.ts.snap +++ b/src/components/__tests__/__snapshots__/QAComponent.spec.ts.snap @@ -44,7 +44,14 @@ exports[`QAComponent > renders 1`] = ` - + + + + +
+
You can install the app from a browser such as Google Chrome that supports Progressive Web Apps (PWAs). Select "add to start screen" from your browser's menu or click the install icon on the location bar. On mobile Safari, click "Share" and then "Add to home screen". Installing on device allows offline use, but keeps the app within your browser's sandbox.
+
+
-
+
You can find the project page in GitHub. The page has separate boards for reporting issues and engaging in other discussion. Thank you for your interest towards the project!
diff --git a/src/components/__tests__/__snapshots__/SettingsView.spec.ts.snap b/src/components/__tests__/__snapshots__/SettingsView.spec.ts.snap index a3c174b..2be1588 100644 --- a/src/components/__tests__/__snapshots__/SettingsView.spec.ts.snap +++ b/src/components/__tests__/__snapshots__/SettingsView.spec.ts.snap @@ -55,7 +55,14 @@ exports[`SettingsView > renders 1`] = ` - + + +