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
writing a test for navigating between different tabs
bsatarnejadd8345d50cd0a
diff --git a/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts b/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.tsindex 275d0f8f9b7..2cc934cabbe 100644--- a/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts+++ b/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts@@ -110,26 +110,20 @@ export class KeepTabService {protected isCurrentState(stateName:string):boolean {if (stateName === 'show') {- return this.$state.includes('work-packages.show.*');+ let isShowState = this.$state.includes('work-packages.show.*') ||+ this.$state.includes('bims.show.*');+ return isShowState;}-if (stateName === 'details') {- return this.$state.includes('work-packages.partitioned.list.details.*');+ let isDetailsState = this.$state.includes('bim.partitioned.split.details.*') ||+ this.$state.includes('work-packages.partitioned.list.details.*');+ return isDetailsState;}return false;}public updateTabs(stateName?:string) {-- // Ignore the switch from show#activity to details#activity- // and show details#overview instead-- if (stateName === 'work-packages.show.activity') {- this.currentTab = 'overview';- return this.notify();- }-this.updateTab('show');this.updateTab('details');}diff --git a/frontend/src/app/modules/common/back-routing/back-routing.service.ts b/frontend/src/app/modules/common/back-routing/back-routing.service.tsindex fc8a14ea5cc..9cd98504535 100644--- a/frontend/src/app/modules/common/back-routing/back-routing.service.ts+++ b/frontend/src/app/modules/common/back-routing/back-routing.service.ts@@ -60,7 +60,7 @@ export class BackRoutingService {if (preferListOverSplit) {this.$state.go(baseRoute, this.$state.params);} else {- this.$state.go(baseRoute + this.keepTab.currentDetailsSubState, this.backRoute.params);+ this.$state.go(baseRoute + this.keepTab.currentDetailsSubState, this.$state.params);}} else {this.$state.go(this.backRoute.name, this.backRoute.params);diff --git a/modules/bim/spec/features/bim_navigation_spec.rb b/modules/bim/spec/features/bim_navigation_spec.rbindex d5b1c45c1a1..83d0dc1abb6 100644--- a/modules/bim/spec/features/bim_navigation_spec.rb+++ b/modules/bim/spec/features/bim_navigation_spec.rb@@ -139,6 +139,20 @@ describe 'BIM navigation spec',details_view.expect_closedcard_view.expect_work_package_not_listed work_packageend++ it 'after going to the full view with a selected tab, the same tab shoud be opened in full screen view and after going back to details view(see #33747)' do+ card_view.open_full_screen_by_details(work_package)++ details_view.ensure_page_loaded+ details_view.expect_subject+ details_view.switch_to_tab tab: 'Relations'++ details_view.switch_to_fullscreen+ full_view.expect_tab 'Relations'++ full_view.go_back+ details_view.expect_tab 'Relations'+ endendend