Skip to content

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

Fix keep tab service spec

Oliver Günther732ce24f0d51
diff --git a/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.spec.ts b/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.spec.ts
index 92b8cf04558..b2ec0583b39 100644
--- a/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.spec.ts
+++ b/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.spec.ts
@@ -102,7 +102,7 @@ describe('keepTab service', () => {
});
it('should correctly change when switching back', () => {
- currentPathPrefix = 'work-packages.partitioned.list.details.*';
+ currentPathPrefix = '**.details.*';
$state.current.name = 'work-packages.partitioned.list.details.overview';
keepTab.updateTabs();
@@ -132,7 +132,7 @@ describe('keepTab service', () => {
describe('when opening a details route', () => {
beforeEach(() => {
spyOn($state, 'includes').and.callFake((path:string) => {
- return path === 'work-packages.partitioned.list.details.*';
+ return path === '**.details.*';
});
$state.current.name = 'work-packages.partitioned.list.details.activity';