[ACS-5678] create folder from template tests (#3456)

* [ACS-5678] create folder from template tests

* taking out only flag

* fixes for linter, import, method name and locator

* fix import and utils strings
This commit is contained in:
Adam Zakrzewski
2023-10-02 17:03:29 +02:00
committed by GitHub
parent 740b9b3579
commit 33c50bdd68
17 changed files with 665 additions and 13 deletions

View File

@@ -39,10 +39,14 @@ export class DataTableComponent extends BaseComponent {
getEmptyFolderLocator = this.getChild('.adf-empty-folder');
getEmptyContentTitleLocator = this.getChild('adf-empty-content .adf-empty-content__title');
getEmptyContentSubTitleLocator = this.getChild('adf-empty-content .adf-empty-content__subtitle');
getSelectedRow = this.getChild('.adf-datatable-row.adf-is-selected');
/** Locator for row (or rows) */
getRowLocator = this.getChild(`adf-datatable-row`);
/** Locator to get "No results found" message */
getNoResultsFoundMessage = this.getChild('adf-custom-empty-content-template', { hasText: "No results found" });
/**
* Method used in cases where we want to check that some record is visible in the datatable. It will consider whole row
*

View File

@@ -35,6 +35,7 @@ export class MatMenuComponent extends BaseComponent {
public getMenuItemsLocator = this.getChild('button');
public getMenuItemTextLocator = this.getChild('[data-automation-id="menu-item-title"]');
public createFolder = this.getChild('[id="app.create.folder"]');
public createFolderFromTemplate = this.getChild('[id="app.create.folderFromTemplate"]');
public createLibrary = this.getChild('[id="app.create.library"]');
public getButtonByText = (text: string) => this.getChild('button', { hasText: text });