OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
feat(onboarding): parameter to start the onboarding tour (#12463)
Andrej Sandorf4e79571b3ccf
diff --git a/frontend/src/app/core/setup/globals/onboarding/onboarding_tour_trigger.ts b/frontend/src/app/core/setup/globals/onboarding/onboarding_tour_trigger.tsindex a4dc13d8e15..6036ec9285b 100644--- a/frontend/src/app/core/setup/globals/onboarding/onboarding_tour_trigger.ts+++ b/frontend/src/app/core/setup/globals/onboarding/onboarding_tour_trigger.ts@@ -56,7 +56,8 @@ export function detectOnboardingTour():void {}// ------------------------------- Tutorial Homescreen page -------------------------------- if (currentTourPart === 'readyToStart') {+ // start the home onboarding tour (either after the intro modal or by parameter)+ if (currentTourPart === 'readyToStart' || url.searchParams.get('start_home_onboarding_tour')) {void triggerTour('homescreen');}diff --git a/spec/features/onboarding/onboarding_tour_spec.rb b/spec/features/onboarding/onboarding_tour_spec.rbindex 67bf8b07e5e..f719675628e 100644--- a/spec/features/onboarding/onboarding_tour_spec.rb+++ b/spec/features/onboarding/onboarding_tour_spec.rb@@ -63,6 +63,12 @@ describe 'onboarding tour for new users', js: true doexpect(page).to have_text "Neueste sichtbare Projekte in dieser Instanz."end+ it 'I can start the tour without selecting a language' do+ visit home_path start_home_onboarding_tour: true+ expect(page).to have_text sanitize_string(I18n.t('js.onboarding.steps.welcome')), normalize_ws: true+ expect(page).to have_selector '.enjoyhint_next_btn:not(.enjoyhint_hide)'+ end+context 'the tutorial does not start' dobefore doallow(Setting).to receive(:welcome_text).and_return("<a> #{project.name} </a>")