mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4807] Automation tests for date min/max validation (#5008)
* Trigger alpha * [ADF-4807] Automation tests for date min/max validation * Removing identityUser changes
This commit is contained in:
committed by
Eugenio Romano
parent
53471eae84
commit
8ee3e25caf
@@ -55,6 +55,11 @@ export class DateWidget {
|
||||
await BrowserActions.click(form);
|
||||
}
|
||||
|
||||
async checkErrorMessageIsNotDisplayed(fieldId): Promise<void> {
|
||||
const errorMessage = element(by.css(`adf-form-field div[id="field-${fieldId}-container"] div[class="adf-error-text"]`));
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(errorMessage);
|
||||
}
|
||||
|
||||
async getErrorMessage(fieldId): Promise<string> {
|
||||
const errorMessage = element(by.css(`adf-form-field div[id="field-${fieldId}-container"] div[class="adf-error-text"]`));
|
||||
return BrowserActions.getText(errorMessage);
|
||||
|
@@ -35,6 +35,11 @@ export class TaskFormCloudComponent {
|
||||
emptyContentSubtitle: ElementFinder = element(by.css(`div.adf-empty-content div.adf-empty-content__subtitle`));
|
||||
readOnlyForm = element(by.css('div[class="adf-readonly-form"]'));
|
||||
|
||||
async isCompleteButtonEnabled(): Promise<boolean> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.completeButton);
|
||||
return this.completeButton.isEnabled();
|
||||
}
|
||||
|
||||
async checkFormIsReadOnly() {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.readOnlyForm);
|
||||
}
|
||||
|
Reference in New Issue
Block a user