fix e2e tests and cleanup e2e typings (#5770)

* cleanup e2e typings

* fix e2e tests
This commit is contained in:
Denys Vuika
2020-06-10 20:37:21 +01:00
committed by GitHub
parent 98774395d2
commit 8025434de9
119 changed files with 1381 additions and 1384 deletions

View File

@@ -15,17 +15,17 @@
* limitations under the License.
*/
import { element, by, ElementFinder } from 'protractor';
import { element, by } from 'protractor';
import { BrowserVisibility, BrowserActions } from '@alfresco/adf-testing';
export class ChecklistDialog {
nameField: ElementFinder = element(by.css('input[data-automation-id="checklist-name"]'));
addChecklistButton: ElementFinder = element(by.css('button[id="add-check"] span'));
closeButton: ElementFinder = element(by.css('button[id="close-check-dialog"] span'));
dialogTitle: ElementFinder = element(by.id('add-checklist-title'));
nameField = element(by.css('input[data-automation-id="checklist-name"]'));
addChecklistButton = element(by.css('button[id="add-check"] span'));
closeButton = element(by.css('button[id="close-check-dialog"] span'));
dialogTitle = element(by.id('add-checklist-title'));
async addName(name): Promise<void> {
async addName(name: string): Promise<void> {
await BrowserActions.clearSendKeys(this.nameField, name);
}