[ACA] fix e2e tests failing on slow environments (#801)

* fix tests failing on slow environments

* forgot a change
This commit is contained in:
Adina Parpalita
2018-11-14 17:23:33 +02:00
committed by Denys Vuika
parent 49e80ddce1
commit 2ac59bd278
6 changed files with 17 additions and 13 deletions

View File

@@ -65,6 +65,12 @@ describe('General', () => {
expect(message).toEqual('The action was unsuccessful. Try again or contact your IT Team.');
expect(await browser.getTitle()).toContain('Sign in');
try {
await createDialog.waitForDialogToClose();
} catch (error) {
console.log('err: ', error);
}
expect(await createDialog.isDialogOpen()).not.toBe(true, 'dialog is present');
});
});

View File

@@ -125,7 +125,7 @@ describe('Page titles', () => {
});
it('Search Results page - [C280413]', async () => {
await searchInput.clickSearchContainer();
await searchInput.clickSearchButton();
await searchInput.searchForText(file);
expect(await browser.getTitle()).toContain(PAGE_TITLES.SEARCH);
});

View File

@@ -52,13 +52,13 @@ describe('Pagination on multiple pages on File Libraries', () => {
});
beforeEach(async (done) => {
await page.clickFileLibrariesAndWait();
done();
await page.clickFileLibrariesAndWait();
done();
});
afterEach(async (done) => {
await Utils.pressEscape();
done();
await Utils.pressEscape();
done();
});
afterAll(async (done) => {

View File

@@ -48,7 +48,7 @@ describe('Search input', () => {
});
it('Search options are displayed when clicking in the search input - [C289848]', async () => {
await searchInput.clickSearchContainer();
await searchInput.clickSearchButton();
expect(await searchInput.isOptionsAreaDisplayed()).toBe(true, '1. Search options not displayed');
expect(await searchInput.isFilesOptionEnabled()).toBe(true, '2. Files option not enabled');
expect(await searchInput.isFoldersOptionEnabled()).toBe(true, '3. Folders option not enabled');
@@ -59,7 +59,7 @@ describe('Search input', () => {
});
it('Search options are correctly enabled / disabled - [C289849]', async () => {
await searchInput.clickSearchContainer();
await searchInput.clickSearchButton();
await searchInput.clickFilesOption();
expect(await searchInput.isFoldersOptionEnabled()).toBe(true, 'Folders option not enabled');