[ADF-3481] Updated automated tests for attach form component (#3706)

This commit is contained in:
jdosti 2018-09-10 11:00:41 +01:00 committed by Eugenio Romano
parent 1ec9f2e9c2
commit d7e33a1ca4
2 changed files with 5 additions and 0 deletions

View File

@ -72,4 +72,8 @@ export class AttachFormPage {
Util.waitUntilElementIsVisible(this.cancelButton);
return this.cancelButton.click();
}
checkAttachFormButtonIsDisabled() {
return Util.waitUntilElementIsVisible(element(by.css('button[id="adf-no-form-attach-form-button"][disabled]')));
}
}

View File

@ -118,6 +118,7 @@ describe('Attach Form Component', () => {
attachFormPage.checkDefaultFormTitleIsDisplayed(testNames.formTitle);
attachFormPage.checkFormDropdownIsDisplayed();
attachFormPage.checkCancelButtonIsDisplayed();
attachFormPage.checkAttachFormButtonIsDisabled();
attachFormPage.clickAttachFormDropdown();
attachFormPage.selectAttachFormOption(testNames.formName);