mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6666] e2e migration for info drawer file folder properties tests (#3623)
* [ACS-5882] infoDrawer comments tests migrated to Playwright * [ACS-5882] fixed issues from pull request comments * [ACS-5882] 2nd part of fixed issues from pull request comments * [ACS-6666] E2E test migration - infoDrawer - File Folder Properties * [ACS-6666] Few changes + small test fixes * [ACS-6666] Deleted unused method * [ACS-5882] infoDrawer comments tests migrated to Playwright * [ACS-5882] fixed issues from pull request comments * [ACS-5882] 2nd part of fixed issues from pull request comments * [ACS-6666] Sonar fix * [ACS-6666] Small locators change + timeout increased
This commit is contained in:
@@ -36,8 +36,9 @@ export class AdfInfoDrawerComponent extends BaseComponent {
|
||||
public getIdField = (labelText: string) => this.getChild('[data-automation-id="library-id-properties-wrapper"]', { hasText: labelText });
|
||||
public getVisibilityField = (labelText: string) => this.getChild('[data-automation-id="library-visibility-properties-wrapper"]', { hasText: labelText });
|
||||
public getDescriptionField = this.getChild('[data-automation-id="library-description-properties-wrapper"] textarea');
|
||||
public propertiesTab = this.getChild('.adf-info-drawer-tab').nth(0);
|
||||
public commentsTab = this.getChild('.adf-info-drawer-tab').nth(1);
|
||||
public infoDrawerTabs = this.getChild('.adf-info-drawer-tab');
|
||||
public propertiesTab = this.infoDrawerTabs.nth(0);
|
||||
public commentsTab = this.infoDrawerTabs.nth(1);
|
||||
public commentInputField = this.getChild('mat-form-field');
|
||||
public commentsHeader = this.getChild('#comment-header');
|
||||
public addCommentButton = this.getChild('[data-automation-id="comments-input-add"]');
|
||||
@@ -45,6 +46,10 @@ 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 headerTitle = this.getChild('.adf-info-drawer-layout-header-title div');
|
||||
public expandDetailsButton = this.getChild(`button[title='Expand panel']`);
|
||||
public expandedDetailsTabs = this.page.locator('.aca-details-container .mat-tab-label-content');
|
||||
public expandedDetailsPermissionsTab = this.expandedDetailsTabs.getByText("Permissions");
|
||||
|
||||
|
||||
async checkCommentsHeaderCount(): Promise<number> {
|
||||
@@ -67,4 +72,12 @@ export class AdfInfoDrawerComponent extends BaseComponent {
|
||||
await this.page.keyboard.type(commentText);
|
||||
await this.addCommentButton.click();
|
||||
}
|
||||
|
||||
async getHeaderTitle(): Promise<string> {
|
||||
return this.headerTitle.textContent();
|
||||
}
|
||||
|
||||
async getTabsCount(): Promise<number> {
|
||||
return this.infoDrawerTabs.count();
|
||||
}
|
||||
}
|
||||
|
@@ -31,7 +31,7 @@ export const timeouts = {
|
||||
big: 7500,
|
||||
large: 10000,
|
||||
extraLarge: 20 * 1000,
|
||||
globalTest: 45 * 1000,
|
||||
globalTest: 85 * 1000,
|
||||
extendedTest: 150 * 1000,
|
||||
extendedLongTest: 200 * 1000,
|
||||
webServer: 240 * 1000,
|
||||
|
Reference in New Issue
Block a user