diff --git a/e2e/tests/functional/recentObjects.e2e.spec.js b/e2e/tests/functional/recentObjects.e2e.spec.js index fcfce41d9c..ca1e3ce80d 100644 --- a/e2e/tests/functional/recentObjects.e2e.spec.js +++ b/e2e/tests/functional/recentObjects.e2e.spec.js @@ -298,7 +298,7 @@ test.describe('Recent Objects', () => { // Assert that the list is empty expect(await recentObjectsList.locator('.c-recentobjects-listitem').count()).toBe(0); }); - test('Ensure clear recent objects button is active or inactive', async ({ page }) => { + test('Verify functionality of "clear" and "collapse pane" buttons', async ({ page }) => { // Assert that the list initially contains 3 objects (clock, folder, my items) expect(await recentObjectsList.locator('.c-recentobjects-listitem').count()).toBe(3); @@ -331,6 +331,24 @@ test.describe('Recent Objects', () => { expect(await page.getByRole('button', { name: 'Clear Recently Viewed' }).isEnabled()).toBe( true ); + + // Assert initial state of pane and collapse the Recent Objects panel + await expect(page.getByLabel('Expand Recently Viewed Pane')).toBeHidden(); + await expect(page.getByLabel('Collapse Recently Viewed Pane')).toBeVisible(); + await page.getByLabel('Collapse Recently Viewed Pane').click(); + + // Assert that the "Expand Recently Viewed Pane" button is visible + // and that the "Collapse Recently Viewed Pane" button is hidden + await expect(page.getByLabel('Expand Recently Viewed Pane')).toBeVisible(); + await expect(page.getByLabel('Collapse Recently Viewed Pane')).toBeHidden(); + + // Expand the Recent Objects panel by clicking on the "Expand Recently Viewed Pane" button + await page.getByLabel('Expand Recently Viewed Pane').click(); + + // Assert that the "Expand Recently Viewed Pane" button is hidden + // and that the "Collapse Recently Viewed Pane" button is visible + await expect(page.getByLabel('Expand Recently Viewed Pane')).toBeHidden(); + await expect(page.getByLabel('Collapse Recently Viewed Pane')).toBeVisible(); }); function assertInitialRecentObjectsListState() { diff --git a/src/ui/layout/AppLayout.vue b/src/ui/layout/AppLayout.vue index 73c86b5155..e57cbac5e6 100644 --- a/src/ui/layout/AppLayout.vue +++ b/src/ui/layout/AppLayout.vue @@ -105,7 +105,13 @@ class="l-shell__tree" /> - + .l-pane__handle { cursor: col-resize; @@ -256,7 +288,7 @@ } /************************** Horizontal Splitter After */ - // Example: Tree pane + // Example: Tree pane and Recent Objects &[class*='-after'] { margin-right: nth($shellPanePad, 2); padding-right: nth($shellPanePad, 2); @@ -292,7 +324,7 @@ } /************************** Vertical Splitter Before */ - // Pane collapses downward. Used by Elements pool in Inspector + // Pane collapses downward. Used by Recent Objects in Tree &[class*='-before'] { $m: $interiorMarginLg; margin-top: $m; @@ -303,7 +335,7 @@ } .l-pane__collapse-button:before { - content: $glyph-icon-arrow-down; + content: $glyph-icon-line-horz; } &.l-pane--collapsed {