mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
added a thrid optional partameter for clickField method in the FormFields to accomodate cssContainingText locators.
This commit is contained in:
@@ -38,8 +38,8 @@ export class FormFields {
|
||||
await BrowserActions.clearSendKeys(fieldElement, value);
|
||||
}
|
||||
|
||||
async clickField(locator, field): Promise<void> {
|
||||
const fieldElement = element(locator(field));
|
||||
async clickField(locator, field, fieldtext?): Promise<void> {
|
||||
const fieldElement = fieldtext ? element(locator(field, fieldtext)) : element(locator(field));
|
||||
await BrowserActions.click(fieldElement);
|
||||
}
|
||||
|
||||
|
@@ -233,6 +233,7 @@ export class ViewerPage {
|
||||
}
|
||||
|
||||
async checkFileNameIsDisplayed(file): Promise<void> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.fileName);
|
||||
await expect(await BrowserActions.getText(this.fileName)).toEqual(file);
|
||||
}
|
||||
|
||||
|
@@ -18,5 +18,5 @@
|
||||
export * from './actions/public-api';
|
||||
export * from './pages/public-api';
|
||||
export * from './models/public-api';
|
||||
|
||||
export * from './dialog/public-api';
|
||||
export * from './utils/public-api';
|
||||
|
Reference in New Issue
Block a user