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:
Eugenio Romano
2021-05-28 18:08:49 +01:00
committed by GitHub
parent 200cfb8dba
commit 9e0000a307
54 changed files with 34465 additions and 932 deletions
@@ -87,8 +87,7 @@ export class PermissionsPage {
async isInherited(): Promise<boolean> {
const inheritButton = TestElement.byCss(this.inheritedButton);
await inheritButton.waitVisible();
const appliedStyles = await inheritButton.getAttribute('class');
return appliedStyles.indexOf('mat-checked') !== -1;
return (await inheritButton.getAttribute('class')).indexOf('mat-checked') !== -1;
}
async toggleInheritPermission(): Promise<void> {
+2 -3
View File
@@ -16,15 +16,14 @@
*/
import { by, element } from 'protractor';
import { BrowserActions, BrowserVisibility } from '@alfresco/adf-testing';
import { BrowserActions } from '@alfresco/adf-testing';
export class SocialPage {
nodeIdField = element(by.css(`input[id="nodeId"]`));
async getNodeIdFieldValue(): Promise<string> {
await BrowserVisibility.waitUntilElementIsVisible(this.nodeIdField);
return this.nodeIdField.getAttribute('value');
return BrowserActions.getInputValue(this.nodeIdField);
}
async writeCustomNodeId(nodeId: string): Promise<void> {
+1 -1
View File
@@ -34,7 +34,7 @@ export class TagPage {
confirmTag = TestElement.byCss('#adf-tag-node-send');
getNodeId(): Promise<string> {
return new TestElement(this.insertNodeIdElement).getAttribute('value');
return BrowserActions.getInputValue(this.insertNodeIdElement);
}
async insertNodeId(nodeId) {
+1 -2
View File
@@ -30,8 +30,7 @@ export class TreeViewPage {
}
async getNodeId(): Promise<string> {
await BrowserVisibility.waitUntilElementIsVisible(this.nodeIdInput);
return this.nodeIdInput.getAttribute('value');
return BrowserActions.getInputValue(this.nodeIdInput);
}
async clickNode(nodeName: string): Promise<void> {