mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
@@ -230,7 +230,7 @@ export class DataTableComponentPage {
|
|||||||
let columnValues: string[] = [];
|
let columnValues: string[] = [];
|
||||||
const columnLocator = $$(`adf-datatable div[class*='adf-datatable-body'] adf-datatable-row[class*='adf-datatable-row'] div[title="${column}"] span`);
|
const columnLocator = $$(`adf-datatable div[class*='adf-datatable-body'] adf-datatable-row[class*='adf-datatable-row'] div[title="${column}"] span`);
|
||||||
|
|
||||||
await BrowserVisibility.waitUntilElementIsPresent(await columnLocator.first(), 1000);
|
await BrowserVisibility.waitUntilElementIsPresent(columnLocator.first(), 1000);
|
||||||
try {
|
try {
|
||||||
await BrowserVisibility.waitUntilElementIsPresent(columnLocator.first(), 1000);
|
await BrowserVisibility.waitUntilElementIsPresent(columnLocator.first(), 1000);
|
||||||
columnValues = await columnLocator
|
columnValues = await columnLocator
|
||||||
@@ -461,7 +461,7 @@ export class DataTableComponentPage {
|
|||||||
|
|
||||||
async clickRowByContentCheckbox(name: string): Promise<void> {
|
async clickRowByContentCheckbox(name: string): Promise<void> {
|
||||||
const resultElement = this.rootElement.$$(`div[data-automation-id='${name}']`).first().element(by.xpath(`ancestor::adf-datatable-row/label/mat-checkbox`));
|
const resultElement = this.rootElement.$$(`div[data-automation-id='${name}']`).first().element(by.xpath(`ancestor::adf-datatable-row/label/mat-checkbox`));
|
||||||
await browser.actions().mouseMove(resultElement);
|
browser.actions().mouseMove(resultElement);
|
||||||
await BrowserActions.click(resultElement);
|
await BrowserActions.click(resultElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -99,7 +99,7 @@ export class Project {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async import(projectFilePath: string): Promise<NodeEntry> {
|
async import(projectFilePath: string): Promise<NodeEntry> {
|
||||||
const fileContent = await fs.createReadStream(projectFilePath);
|
const fileContent = fs.createReadStream(projectFilePath);
|
||||||
const requestOptions: E2eRequestApiHelperOptions = {
|
const requestOptions: E2eRequestApiHelperOptions = {
|
||||||
formParams: { file: fileContent },
|
formParams: { file: fileContent },
|
||||||
contentTypes: ['multipart/form-data']
|
contentTypes: ['multipart/form-data']
|
||||||
|
Reference in New Issue
Block a user