diff --git a/e2e/playwright/navigation/src/tests/details-reduced-panel-navigation.e2e.ts b/e2e/playwright/navigation/src/tests/details-reduced-panel-navigation.e2e.ts index 5a86a1b7e..642c24911 100644 --- a/e2e/playwright/navigation/src/tests/details-reduced-panel-navigation.e2e.ts +++ b/e2e/playwright/navigation/src/tests/details-reduced-panel-navigation.e2e.ts @@ -57,6 +57,7 @@ test.describe('Search → Full Details → Reduced Panel navigation', () => { await fileActionsApi.waitForNodes(fileName, { expect: 1 }); } catch (error) { console.error(`beforeAll failed: ${error}`); + throw error; } }); diff --git a/projects/aca-playwright-shared/src/page-objects/components/adf-info-drawer.component.ts b/projects/aca-playwright-shared/src/page-objects/components/adf-info-drawer.component.ts index 5266de368..8a708305e 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/adf-info-drawer.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/adf-info-drawer.component.ts @@ -51,7 +51,7 @@ export class AdfInfoDrawerComponent extends BaseComponent { public commentUsername = this.getChild('.adf-comment-user-name'); public commentTextContent = this.getChild('.adf-comment-message'); public commentTimestamp = this.getChild('.adf-comment-message-time'); - public infoDrawerPanel = this.page.locator(AdfInfoDrawerComponent.rootElement); + public infoDrawerPanel = this.page.locator('#adf-right-sidebar adf-info-drawer'); public headerTitle = this.getChild('.adf-info-drawer-layout-header-title').getByRole('heading'); public editButton = this.page.getByRole('button', { name: 'Edit' }); public cancelButton = this.page.getByRole('button', { name: 'Cancel' }); diff --git a/projects/aca-playwright-shared/src/page-objects/components/viewer.component.ts b/projects/aca-playwright-shared/src/page-objects/components/viewer.component.ts index 78e34e8fa..9d45d6aa9 100644 --- a/projects/aca-playwright-shared/src/page-objects/components/viewer.component.ts +++ b/projects/aca-playwright-shared/src/page-objects/components/viewer.component.ts @@ -53,7 +53,7 @@ export class ViewerComponent extends BaseComponent { public nextFileButton = this.getChild('[data-automation-id="adf-toolbar-next-file"]'); public previousFileButton = this.getChild('[data-automation-id="adf-toolbar-pref-file"]'); public noPermissionsView = this.getChild('aca-generic-error'); - public viewDetailsButton = this.page.locator('#adf-viewer-toolbar [title="View Details"]'); + public viewDetailsButton = this.getChild('#adf-viewer-toolbar [title="View Details"]'); toolbar = new AcaHeader(this.page);