diff --git a/client/src/views/sidebar-menu/SidebarMenuPage.vue b/client/src/views/sidebar-menu/SidebarMenuPage.vue index 2dc2d6ab1a5..ba899ad89e2 100644 --- a/client/src/views/sidebar-menu/SidebarMenuPage.vue +++ b/client/src/views/sidebar-menu/SidebarMenuPage.vue @@ -16,12 +16,13 @@ class="sidebar" > -
+
{{ userInfo ? userInfo.organizationId.substring(0, 2) : '' }} @@ -42,6 +43,21 @@ /> +
+
+ + + {{ $msTranslate('SideMenu.back') }} + +
+
+
-
-
- - - {{ $msTranslate('SideMenu.back') }} - -
-
-
diff --git a/client/tests/e2e/specs/sidebar.spec.ts b/client/tests/e2e/specs/sidebar.spec.ts index 70ca4f73a90..3de124542eb 100644 --- a/client/tests/e2e/specs/sidebar.spec.ts +++ b/client/tests/e2e/specs/sidebar.spec.ts @@ -5,6 +5,13 @@ import { expect, msTest } from '@tests/e2e/helpers'; msTest('Sidebar in organization management', async ({ organizationPage }) => { const sidebar = organizationPage.locator('.sidebar'); + await expect(sidebar.locator('.back-button')).toBeVisible(); + + const mainButtons = sidebar.locator('.organization-card-buttons').locator('.organization-card-buttons__item'); + await expect(mainButtons).toHaveText(['Manage my organization', 'My workspaces']); + await expect(mainButtons.nth(0)).toHaveTheClass('active'); + await expect(mainButtons.nth(1)).not.toHaveTheClass('active'); + await expect(sidebar.locator('.file-workspaces')).toBeHidden(); await expect(sidebar.locator('.favorites')).toBeHidden(); await expect(sidebar.locator('.workspaces')).toBeHidden(); @@ -18,6 +25,13 @@ msTest('Sidebar in organization management', async ({ organizationPage }) => { msTest('Sidebar in workspaces page', async ({ connected }) => { const sidebar = connected.locator('.sidebar'); + await expect(sidebar.locator('.back-button')).toBeHidden(); + + const mainButtons = sidebar.locator('.organization-card-buttons').locator('.organization-card-buttons__item'); + await expect(mainButtons).toHaveText(['Manage my organization', 'My workspaces']); + await expect(mainButtons.nth(0)).not.toHaveTheClass('active'); + await expect(mainButtons.nth(1)).toHaveTheClass('active'); + await expect(sidebar.locator('.file-workspaces')).toBeVisible(); await expect(sidebar.locator('.favorites')).toBeHidden(); await expect(sidebar.locator('.workspaces')).toBeVisible();