mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
Unexclude due the timeout (#1805)
* change base method to wait * fix import * reduce log * fix * data placeholder * fix * fix * fix * fix style * change visibility with common method * fix * use common get value method * remove unused import * fix a few incorrect api calls * - use separate variables * correctly wait for items after they have been created * use browseraction click * Exclude failing tests * increase timeout and some fix * check env before execute test * simplify conf * exclude * rerun * logs * refactor pagination tests to use only 51 items take out pagination tests into a separate stage * fix check * remove hardcoded total items. other shared files might already exist Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com> Co-authored-by: iuliaib <iulia.burca@ness.com>
This commit is contained in:
@@ -28,6 +28,7 @@ import { Page } from './page';
|
||||
|
||||
import { APP_ROUTES } from '../configs';
|
||||
import { waitForPresence } from '../utilities/utils';
|
||||
import { BrowserActions } from '@alfresco/adf-testing';
|
||||
|
||||
export class LoginPage extends Page {
|
||||
login = new LoginComponent(this.appRoot);
|
||||
@@ -45,7 +46,7 @@ export class LoginPage extends Page {
|
||||
const pass = password || username;
|
||||
await this.load();
|
||||
await this.login.enterCredentials(username, pass);
|
||||
await this.login.submitButton.click();
|
||||
await BrowserActions.click(this.login.submitButton);
|
||||
return super.waitForApp();
|
||||
}
|
||||
|
||||
@@ -58,7 +59,7 @@ export class LoginPage extends Page {
|
||||
const pass = password || username;
|
||||
await this.load();
|
||||
await this.login.enterCredentials(username, pass);
|
||||
await this.login.submitButton.click();
|
||||
await BrowserActions.click(this.login.submitButton);
|
||||
await waitForPresence(this.login.errorMessage);
|
||||
}
|
||||
}
|
||||
|
@@ -24,9 +24,9 @@
|
||||
*/
|
||||
|
||||
import { browser, by, ElementFinder } from 'protractor';
|
||||
import { Logger } from '@alfresco/adf-testing';
|
||||
import { BrowserActions, BrowserVisibility, Logger } from '@alfresco/adf-testing';
|
||||
import { USE_HASH_STRATEGY } from './../configs';
|
||||
import { Utils, waitElement, waitForPresence, waitForVisibility, isPresentAndDisplayed } from '../utilities/utils';
|
||||
import { Utils, waitElement, waitForPresence, isPresentAndDisplayed } from '../utilities/utils';
|
||||
|
||||
export abstract class Page {
|
||||
appRoot = 'app-root';
|
||||
@@ -61,7 +61,7 @@ export abstract class Page {
|
||||
}
|
||||
|
||||
async waitForDialog() {
|
||||
await waitForVisibility(this.dialogContainer);
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.dialogContainer);
|
||||
}
|
||||
|
||||
async isDialogOpen() {
|
||||
@@ -80,7 +80,7 @@ export abstract class Page {
|
||||
|
||||
async closeUploadDialog(): Promise<void> {
|
||||
if (await this.isUploadDialogOpen()) {
|
||||
await this.closeUploadButton.click();
|
||||
await BrowserActions.click(this.closeUploadButton);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,8 +96,7 @@ export abstract class Page {
|
||||
|
||||
async clickSnackBarAction(): Promise<void> {
|
||||
try {
|
||||
const action = await waitElement('.mat-simple-snackbar-action button');
|
||||
await action.click();
|
||||
await BrowserActions.click(this.byCss('.mat-simple-snackbar-action button'));
|
||||
} catch (e) {
|
||||
Logger.error(e, '.......failed on click snack bar action.........');
|
||||
}
|
||||
|
@@ -27,6 +27,7 @@ import { browser, by, By } from 'protractor';
|
||||
import { BrowsingPage } from './browsing-page';
|
||||
import { SearchSortingPicker } from '../components/search/search-sorting-picker';
|
||||
import { SearchFilters } from '../components/search/search-filters';
|
||||
import { BrowserActions } from '@alfresco/adf-testing';
|
||||
|
||||
export class SearchResultsPage extends BrowsingPage {
|
||||
root = this.byCss('aca-search-results');
|
||||
@@ -54,6 +55,6 @@ export class SearchResultsPage extends BrowsingPage {
|
||||
async removeChip(chipName: string): Promise<void> {
|
||||
const chip = browser.element(By.cssContainingText('.mat-chip', chipName));
|
||||
const closeChip = chip.element(by.css('.mat-chip-remove'));
|
||||
await closeChip.click();
|
||||
await BrowserActions.click(closeChip);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user