mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
disable w3c due getValue problem (#7067)
* [ci:force]disable w3c due getValue problem * unify get Input value * [ci:force]fix * [ci:force] remove * [ci:force]remove all getAttribute * fix lint * fix lint * fix * fix * fix * fix * different fix try * rewrite wait for for value * fix lint * remove e2e already covered by unit * fix lint * fix
This commit is contained in:
@@ -42,8 +42,7 @@ export class ChecklistDialog {
|
||||
}
|
||||
|
||||
async getNameFieldPlaceholder(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.nameField);
|
||||
return this.nameField.getAttribute('data-placeholder');
|
||||
return BrowserActions.getAttribute(this.nameField, 'data-placeholder');
|
||||
}
|
||||
|
||||
async checkCancelButtonIsEnabled(): Promise<void> {
|
||||
|
@@ -58,8 +58,7 @@ export class StartTaskDialogPage {
|
||||
}
|
||||
|
||||
async getAssignee(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.assignee);
|
||||
return this.assignee.getAttribute('data-placeholder');
|
||||
return BrowserActions.getAttribute(this.assignee, 'data-placeholder');
|
||||
}
|
||||
|
||||
async selectForm(form): Promise<void> {
|
||||
|
@@ -205,8 +205,7 @@ export class TaskDetailsPage {
|
||||
}
|
||||
|
||||
async getDescriptionPlaceholder(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsPresent(this.descriptionField);
|
||||
return this.descriptionField.getAttribute('data-placeholder');
|
||||
return BrowserActions.getAttribute(this.descriptionField, 'data-placeholder');
|
||||
}
|
||||
|
||||
getDueDate(): Promise<string> {
|
||||
@@ -349,8 +348,7 @@ export class TaskDetailsPage {
|
||||
}
|
||||
|
||||
async getInvolvePeoplePlaceholder(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.addPeopleField);
|
||||
return this.addPeopleField.getAttribute('data-placeholder');
|
||||
return BrowserActions.getAttribute(this.addPeopleField, 'data-placeholder');
|
||||
}
|
||||
|
||||
async checkCancelButtonIsEnabled(): Promise<void> {
|
||||
|
@@ -55,8 +55,7 @@ export class TaskListDemoPage {
|
||||
}
|
||||
|
||||
async getAppId(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.appId);
|
||||
return this.appId.getAttribute('value');
|
||||
return BrowserActions.getInputValue(this.appId);
|
||||
}
|
||||
|
||||
async typeTaskId(input: string): Promise<void> {
|
||||
@@ -64,8 +63,7 @@ export class TaskListDemoPage {
|
||||
}
|
||||
|
||||
async getTaskId(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.taskId);
|
||||
return this.taskId.getAttribute('value');
|
||||
return BrowserActions.getInputValue(this.taskId);
|
||||
}
|
||||
|
||||
async typeTaskName(input: string): Promise<void> {
|
||||
@@ -73,8 +71,7 @@ export class TaskListDemoPage {
|
||||
}
|
||||
|
||||
async getTaskName(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.taskName);
|
||||
return this.taskName.getAttribute('value');
|
||||
return BrowserActions.getInputValue(this.taskName);
|
||||
}
|
||||
|
||||
async typeItemsPerPage(input: number): Promise<void> {
|
||||
@@ -87,8 +84,7 @@ export class TaskListDemoPage {
|
||||
}
|
||||
|
||||
async getProcessDefinitionId(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.processInstanceId);
|
||||
return this.processInstanceId.getAttribute('value');
|
||||
return BrowserActions.getInputValue(this.processInstanceId);
|
||||
}
|
||||
|
||||
async typeProcessInstanceId(input: string): Promise<void> {
|
||||
@@ -96,8 +92,7 @@ export class TaskListDemoPage {
|
||||
}
|
||||
|
||||
async getProcessInstanceId(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.processInstanceId);
|
||||
return this.processInstanceId.getAttribute('value');
|
||||
return BrowserActions.getInputValue(this.processInstanceId);
|
||||
}
|
||||
|
||||
async getItemsPerPageFieldErrorMessage(): Promise<string> {
|
||||
@@ -111,8 +106,7 @@ export class TaskListDemoPage {
|
||||
}
|
||||
|
||||
async getPage(): Promise<string> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.page);
|
||||
return this.page.getAttribute('value');
|
||||
return BrowserActions.getInputValue(this.page);
|
||||
}
|
||||
|
||||
async getPageFieldErrorMessage(): Promise<string> {
|
||||
|
Reference in New Issue
Block a user