diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 2009e446d..fb346c79a 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -1,7 +1,7 @@ { "back": "Zurück", "community": { - "choose-another-aommunity": "Eine andere Gemeinschaft auswählen", + "choose-another-community": "Eine andere Gemeinschaft auswählen", "community": "Gemeinschaft", "communitys": { "form": { diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index a23d74dab..e5ce1f91e 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -1,7 +1,7 @@ { "back": "Back", "community": { - "choose-another-aommunity": "Choose another community", + "choose-another-community": "Choose another community", "community": "Community", "communitys": { "form": { diff --git a/frontend/src/views/Pages/ForgotPassword.vue b/frontend/src/views/Pages/ForgotPassword.vue index dce71ebd3..444e94495 100644 --- a/frontend/src/views/Pages/ForgotPassword.vue +++ b/frontend/src/views/Pages/ForgotPassword.vue @@ -32,7 +32,7 @@
- {{ $t('back') }} + {{ $t('back') }}
diff --git a/frontend/src/views/Pages/Login.spec.js b/frontend/src/views/Pages/Login.spec.js index 7218384f7..6c2dfcd6e 100644 --- a/frontend/src/views/Pages/Login.spec.js +++ b/frontend/src/views/Pages/Login.spec.js @@ -30,6 +30,14 @@ describe('Login', () => { $t: jest.fn((t) => t), $store: { dispatch: mockStoreDispach, + state: { + community: { + name: 'Gradido Entwicklung', + url: 'http://localhost:3000/vue/', + registerUrl: 'http://localhost:3000/vue/register', + description: 'Die lokale Entwicklungsumgebung von Gradido.', + }, + }, }, $loading: { show: spinnerMock, @@ -86,7 +94,7 @@ describe('Login', () => { }) it('links to /register when clicking "Create new account"', () => { - expect(wrapper.findAllComponents(RouterLinkStub).at(1).props().to).toBe('/register') + expect(wrapper.findAllComponents(RouterLinkStub).at(1).props().to).toBe('/regist-community') }) }) diff --git a/frontend/src/views/Pages/Login.vue b/frontend/src/views/Pages/Login.vue index 618d2889a..ed6a2d25a 100755 --- a/frontend/src/views/Pages/Login.vue +++ b/frontend/src/views/Pages/Login.vue @@ -44,18 +44,18 @@ - + {{ $t('settings.password.forgot_pwd') }} - + - + {{ $t('site.login.new_wallet') }} - + diff --git a/frontend/src/views/Pages/Register.spec.js b/frontend/src/views/Pages/Register.spec.js index f3f66fca9..7120ed557 100644 --- a/frontend/src/views/Pages/Register.spec.js +++ b/frontend/src/views/Pages/Register.spec.js @@ -26,6 +26,12 @@ describe('Register', () => { state: { email: 'peter@lustig.de', language: 'en', + community: { + name: 'Gradido Entwicklung', + url: 'http://localhost:3000/vue/', + registerUrl: 'http://localhost:3000/vue/register', + description: 'Die lokale Entwicklungsumgebung von Gradido.', + }, }, }, } @@ -127,6 +133,18 @@ describe('Register', () => { }) }) + describe('link Choose another community', () => { + it('has a link "Choose another community"', () => { + expect(wrapper.find('.test-button-another-community').text()).toEqual( + 'community.choose-another-community', + ) + }) + + it('links to /select-community when clicking "Choose another community"', () => { + expect(wrapper.find('.test-button-another-community').props().to).toBe('/select-community') + }) + }) + describe('API calls', () => { beforeEach(() => { wrapper.find('#registerFirstname').setValue('Max') diff --git a/frontend/src/views/Pages/Register.vue b/frontend/src/views/Pages/Register.vue index 52f86d6b7..c9905e6c7 100755 --- a/frontend/src/views/Pages/Register.vue +++ b/frontend/src/views/Pages/Register.vue @@ -10,14 +10,6 @@

{{ $t('site.signup.subtitle') }}

- - - {{ $store.state.community.name }} -

- {{ $store.state.community.description }} -

-
-
@@ -31,7 +23,11 @@
- {{ $t('signup') }} + {{ $store.state.community.name }} +

+ {{ $store.state.community.description }} +

+
{{ $t('signup') }}
@@ -128,7 +124,9 @@
- {{ $t('back') }} + + {{ $t('back') }} +
- - {{ $t('community.choose-another-aommunity') }} + + {{ $t('community.choose-another-community') }}
diff --git a/frontend/src/views/Pages/RegisterCommunity.vue b/frontend/src/views/Pages/RegisterCommunity.vue index bd41a5223..2ae90883b 100644 --- a/frontend/src/views/Pages/RegisterCommunity.vue +++ b/frontend/src/views/Pages/RegisterCommunity.vue @@ -27,7 +27,7 @@ - {{ $t('community.choose-another-aommunity') }} + {{ $t('community.choose-another-community') }} diff --git a/frontend/src/views/Pages/ResetPassword.vue b/frontend/src/views/Pages/ResetPassword.vue index 110f7cc01..81b3d7df7 100644 --- a/frontend/src/views/Pages/ResetPassword.vue +++ b/frontend/src/views/Pages/ResetPassword.vue @@ -40,7 +40,7 @@ - {{ $t('back') }} + {{ $t('back') }}