mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-12391] e2e for navigation details panel with search page
This commit is contained in:
+4
@@ -60,6 +60,10 @@ export class AdfInfoDrawerComponent extends BaseComponent {
|
||||
public errorNameMessage = this.getChild('[data-automation-id="library-name-properties-wrapper"] [aria-atomic="true"]');
|
||||
public errorDescriptionMessage = this.getChild('[data-automation-id="library-description-properties-wrapper"] [aria-atomic="true"]');
|
||||
public expandDetailsButton = this.getChild(`button[title='Expand panel']`);
|
||||
public reducePanelButton = this.page.locator('[data-automation-id="close-library"]');
|
||||
public detailsTabs = this.page.locator('.aca-details-tabs');
|
||||
public metadataTab = this.page.locator('app-metadata-tab');
|
||||
public contentMetadata = this.page.locator('adf-content-metadata');
|
||||
public expandedDetailsTabs = this.page.locator('.aca-details-container [role="tab"]');
|
||||
public expandedDetailsPermissionsTab = this.expandedDetailsTabs.getByText('Permissions');
|
||||
public nameField = this.getChild('input[placeholder=Name]');
|
||||
|
||||
@@ -53,6 +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"]');
|
||||
|
||||
toolbar = new AcaHeader(this.page);
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
import { Page } from '@playwright/test';
|
||||
import { BasePage } from './base.page';
|
||||
import {
|
||||
AdfInfoDrawerComponent,
|
||||
DataTableComponent,
|
||||
FolderInformationDialogComponent,
|
||||
MatMenuComponent,
|
||||
@@ -76,6 +77,7 @@ export class SearchPage extends BasePage {
|
||||
public manageVersionsDialog = new ManageVersionsDialog(this.page);
|
||||
public folderInformationDialog = new FolderInformationDialogComponent(this.page);
|
||||
public searchMenuCard = new SearchMenuCard(this.page);
|
||||
public infoDrawer = new AdfInfoDrawerComponent(this.page);
|
||||
|
||||
async searchWithin(searchText: string, searchType?: SearchType, searchMode?: SearchMode): Promise<void> {
|
||||
if (!(await this.searchInputComponent.searchInput.isVisible())) {
|
||||
|
||||
Reference in New Issue
Block a user