From 21af36f56ad05a69f4e9bc5ceedfde6de6aaed39 Mon Sep 17 00:00:00 2001 From: Wieland Lindenthal Date: Wed, 14 Apr 2021 15:56:43 +0200 Subject: [PATCH] Add step for quick add menu to onboarding tour --- config/locales/js-en.yml | 1 + frontend/src/app/globals/onboarding/tours/menu_tour.ts | 5 +++++ spec/support/onboarding_helper.rb | 3 +++ 3 files changed, 9 insertions(+) diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml index 910c3bd9f1..585783cebe 100644 --- a/config/locales/js-en.yml +++ b/config/locales/js-en.yml @@ -506,6 +506,7 @@ en: help_menu: 'In the Help menu you will find a user guide and additional help resources.
Enjoy your work with OpenProject!' members: 'Invite new Members to join your project.' project_selection: 'Please click on one of the projects with useful demo data to get started.
The Demo project suits best for classical project management, while the Scrum project is better for Agile project management.' + quick_add_button: 'Create a new project or invite coworkers.' sidebar_arrow: "With the arrow you can navigate back to the project's Main menu." welcome: 'Take a three minutes introduction tour to learn the most important features.
We recommend completing the steps until the end. You can restart the tour any time.' wiki: 'Within the Wiki you can document and share knowledge together with your team.' diff --git a/frontend/src/app/globals/onboarding/tours/menu_tour.ts b/frontend/src/app/globals/onboarding/tours/menu_tour.ts index 983163ccc5..623f26c806 100644 --- a/frontend/src/app/globals/onboarding/tours/menu_tour.ts +++ b/frontend/src/app/globals/onboarding/tours/menu_tour.ts @@ -10,6 +10,11 @@ export function menuTourSteps() { 'showSkip': false, 'nextButton': { text: I18n.t('js.onboarding.buttons.next') }, }, + { + 'next .op-quick-add-menu': I18n.t('js.onboarding.steps.quick_add_button'), + 'showSkip': false, + 'nextButton': { text: I18n.t('js.onboarding.buttons.next') }, + }, { 'next .op-app-help': I18n.t('js.onboarding.steps.help_menu'), 'shape': 'circle', diff --git a/spec/support/onboarding_helper.rb b/spec/support/onboarding_helper.rb index ea8b4f8683..a4f6f619e2 100644 --- a/spec/support/onboarding_helper.rb +++ b/spec/support/onboarding_helper.rb @@ -60,6 +60,9 @@ module OnboardingHelper next_button.click expect(page).to have_text 'Within the Wiki you can document and share knowledge together with your team.' + next_button.click + expect(page).to have_text 'Create a new project or invite coworkers.' + next_button.click expect(page).to have_text 'In the Help menu you will find a user guide and additional help resources.'