mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +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:
@@ -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> {
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user