[ACA-1709] create separate methods for navigating to desired doc list (#756)

* create separate methods for navigating to desired doc list

* remove timeout committed by mistake
This commit is contained in:
Adina Parpalita
2018-10-26 08:56:58 +03:00
committed by Cilibiu Bogdan
parent 0a5d56fe05
commit c9f5bc7de3
44 changed files with 404 additions and 547 deletions

View File

@@ -24,7 +24,6 @@
*/
import { browser } from 'protractor';
import { SIDEBAR_LABELS } from '../../configs';
import { LoginPage, LogoutPage, BrowsingPage } from '../../pages/pages';
import { Utils } from '../../utilities/utils';
import { RepoClient } from '../../utilities/repo-client/repo-client';
@@ -67,8 +66,7 @@ describe('Generic errors', () => {
});
it('File / folder not found - [C217313]', async () => {
await page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES);
await dataTable.waitForHeader();
await page.clickPersonalFilesAndWait();
await dataTable.doubleClickOnRowByName(parent);
await dataTable.doubleClickOnRowByName(file1);
const URL = await browser.getCurrentUrl();
@@ -88,8 +86,7 @@ describe('Generic errors', () => {
});
it('Permission denied - [C217314]', async () => {
await page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES);
await dataTable.waitForHeader();
await page.clickPersonalFilesAndWait();
await dataTable.doubleClickOnRowByName(parent);
await dataTable.doubleClickOnRowByName(file2);
const URL = await browser.getCurrentUrl();