[ACS-9760] [E2E] Automated edit properties in info drawer (#4614)

* [ACS-9760] [E2E] Automated edit properties in info drawer

* [ACS-9760] added back nameField

* [ACS-9760] Added timeouts
This commit is contained in:
Adam Świderski
2025-06-11 14:12:22 +02:00
committed by GitHub
parent b910576b82
commit 305c840beb
3 changed files with 156 additions and 76 deletions

View File

@@ -84,8 +84,20 @@ export class AdfInfoDrawerComponent extends BaseComponent {
public categoriesCreatedList = this.getChild('.adf-metadata-categories');
public generalInfoAccordion = this.getChild('[data-automation-id="adf-metadata-group-properties"]');
public generalInfoProperties = this.generalInfoAccordion.locator('.adf-property');
public generalInfoEditButton = this.getChild('[data-automation-id="meta-data-general-info-edit"]');
public exifInfoAccordion = this.getChild('[data-automation-id="adf-metadata-group-APP.CONTENT_METADATA.EXIF_GROUP_TITLE"]');
public exifInfoProperties = this.exifInfoAccordion.locator('.adf-property');
public generalInfoNameField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:name"]');
public generalInfoTitleField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:title"]');
public generalInfoAuthorField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:author"]');
public generalInfoDescriptionField = this.getChild('[data-automation-id="card-textitem-value-properties.cm:description"]');
public generalInfoCreatorField = this.getChild('[data-automation-id="card-textitem-value-createdByUser.displayName"]');
public generalInfoCreatedDateField = this.getChild('[data-automation-id="header-createdAt"] .adf-property-value');
public generalInfoModifiedDateField = this.getChild('[data-automation-id="header-modifiedAt"] .adf-property-value');
public generalInfoMimeTypeField = this.getChild('[data-automation-id="card-textitem-value-content.mimeTypeName"]');
public generalInfoContentTypeCombobox = this.getChild('[role="combobox"]');
public generalInfoNameError = this.getChild('[data-automation-id="card-textitem-error-properties.cm:name"]');
public generalInfoSaveButton = this.getChild('[data-automation-id="save-general-info-metadata"]');
async checkCommentsHeaderCount(): Promise<number> {
const commentsCountTextContent = await this.commentsHeader.textContent();

View File

@@ -26,10 +26,10 @@ export const timeouts = {
typingDelay: 50,
tiny: 500,
short: 1000,
normal: 2000,
medium: 5000,
big: 7500,
large: 10000,
normal: 2 * 1000,
medium: 5 * 1000,
big: 7.5 * 1000,
large: 10 * 1000,
extraLarge: 20 * 1000,
globalTest: 85 * 1000,
extendedTest: 150 * 1000,