Fix comments

This commit is contained in:
Cristina Jalba
2019-08-30 09:32:31 +03:00
parent ac76ddf983
commit 0b1dc63077
2 changed files with 3 additions and 3 deletions

View File

@@ -479,7 +479,7 @@ describe('Task form cloud component', () => {
await widget.tab().clickTabByLabel(tab.tabVarField); await widget.tab().clickTabByLabel(tab.tabVarField);
await widget.textWidget().setValue(widgets.numberOneId, value.displayTab); await widget.textWidget().setValue(widgets.numberOneId, value.displayTab);
await expect(await taskFormCloudComponent.completeButtonIsEnabled()).toEqual(false); await expect(await taskFormCloudComponent.isCompleteButtonEnabled()).toEqual(false);
}); });
it('[C315179] Should be able to complete a standalone task with visible tab with valid value for field', async () => { it('[C315179] Should be able to complete a standalone task with visible tab with valid value for field', async () => {

View File

@@ -76,8 +76,8 @@ export class TaskFormCloudComponent {
await BrowserVisibility.waitUntilElementIsNotVisible(this.completeButton); await BrowserVisibility.waitUntilElementIsNotVisible(this.completeButton);
} }
async completeButtonIsEnabled() { async isCompleteButtonEnabled(): Promise<boolean> {
return this.completeButton.isEnabled(); return await this.completeButton.isEnabled();
} }
async clickCompleteButton(): Promise<void> { async clickCompleteButton(): Promise<void> {