mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix e2e (#5686)
* fix e2e * Update notifications-component.e2e.ts * fix e2e * fix e2e * try with interval * Update version-actions.e2e.ts
This commit is contained in:
@@ -54,7 +54,7 @@ export class LoginPage {
|
||||
sidenavLayout = element(by.css(`[data-automation-id="sidenav-layout"]`));
|
||||
|
||||
async goToLoginPage(): Promise<void> {
|
||||
await browser.get(this.loginURL);
|
||||
await BrowserActions.getUrl(this.loginURL);
|
||||
await this.waitForElements();
|
||||
}
|
||||
|
||||
|
@@ -47,8 +47,8 @@ export class BrowserActions {
|
||||
await BrowserVisibility.waitUntilElementIsNotVisible(actionMenu);
|
||||
}
|
||||
|
||||
static async getUrl(url: string): Promise<any> {
|
||||
return browser.get(url);
|
||||
static async getUrl(url: string, timeout: number = 10000): Promise<any> {
|
||||
return browser.get(url, timeout);
|
||||
}
|
||||
|
||||
static async clickExecuteScript(elementCssSelector: string): Promise<void> {
|
||||
|
@@ -88,7 +88,7 @@ export class StartProcessCloudPage {
|
||||
|
||||
async checkStartProcessButtonIsEnabled(): Promise<boolean> {
|
||||
await browser.sleep(1000); // waiting for API response
|
||||
await BrowserVisibility.waitUntilElementIsPresent(this.startProcessButton);
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.startProcessButton);
|
||||
return this.startProcessButton.isEnabled();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user