Skip to content

Commit 4b32154

Browse files
committed
Move server init menus after authentication is ready
1 parent 43e4f9d commit 4b32154

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cypress/e2e/item-statistics.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('Item Statistics Page', () => {
77
it('should load if you click on "Statistics" from an Item/Entity page', () => {
88
cy.visit('/entities/publication/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION')));
99
cy.get('ds-navbar ds-link-menu-item a[data-test="link-menu-item.menu.section.statistics"]').click();
10-
cy.location('pathname').should('eq', '/entities/publication/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION')));
10+
cy.location('pathname').should('eq', '/statistics/entities/publication/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION')));
1111
});
1212

1313
it('should contain element ds-item-statistics-page when navigating to an item statistics page', () => {

src/modules/app/server-init.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ export class ServerInitService extends InitService {
8383
this.initAngulartics();
8484
this.initRouteListeners();
8585
this.themeService.listenForThemeChanges(false);
86-
this.menuProviderService.initPersistentMenus();
8786

8887
await lastValueFrom(this.authenticationReady$());
88+
this.menuProviderService.initPersistentMenus();
8989

9090
return true;
9191
};

0 commit comments

Comments
 (0)