[ACA-1653] add testrail ids to e2e tests (#557)

* add testrail ids - WIP

* add TestRail ids to tooltips tests

* added more TestRail ids

* separate tests from Create folder to correct sub-suites

* add more TestRail ids to automated tests

* added more TestRail ids

* added more ids and some missing tests

* combined delete and undo delete tests and added TestRail ids

* decrease protractor timeouts to try and speed up the execution when tests fail

* disable some tests that are incomplete in order to match numbers from TestRail
This commit is contained in:
Adina Parpalita
2018-08-09 14:03:57 +03:00
committed by Denys Vuika
parent f91608fe78
commit b8cc5422f4
29 changed files with 953 additions and 1072 deletions

View File

@@ -85,7 +85,7 @@ describe('Breadcrumb', () => {
.then(done);
});
it('Personal Files breadcrumb main node [C260964]', () => {
it('Personal Files breadcrumb main node - [C260964]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES)
.then(() => {
expect(breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
@@ -93,7 +93,7 @@ describe('Breadcrumb', () => {
});
});
it('File Libraries breadcrumb main node [C260966]', () => {
it('File Libraries breadcrumb main node - [C260966]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.FILE_LIBRARIES)
.then(() => {
expect(breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
@@ -101,7 +101,7 @@ describe('Breadcrumb', () => {
});
});
it('Recent Files breadcrumb main node [C260971]', () => {
it('Recent Files breadcrumb main node - [C260971]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.RECENT_FILES)
.then(() => {
expect(breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
@@ -109,7 +109,7 @@ describe('Breadcrumb', () => {
});
});
it('Shared Files breadcrumb main node [C260972]', () => {
it('Shared Files breadcrumb main node - [C260972]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.SHARED_FILES)
.then(() => {
expect(breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
@@ -117,7 +117,7 @@ describe('Breadcrumb', () => {
});
});
it('Favorites breadcrumb main node [C260973]', () => {
it('Favorites breadcrumb main node - [C260973]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.FAVORITES)
.then(() => {
expect(breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
@@ -125,7 +125,7 @@ describe('Breadcrumb', () => {
});
});
it('Trash breadcrumb main node [C260974]', () => {
it('Trash breadcrumb main node - [C260974]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.TRASH)
.then(() => {
expect(breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
@@ -133,7 +133,7 @@ describe('Breadcrumb', () => {
});
});
it('Personal Files breadcrumb for a folder hierarchy [C260965]', () => {
it('Personal Files breadcrumb for a folder hierarchy - [C260965]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES)
.then(() => page.dataTable.waitForHeader())
.then(() => page.dataTable.doubleClickOnRowByName(parent))
@@ -145,7 +145,7 @@ describe('Breadcrumb', () => {
});
});
it('File Libraries breadcrumb for a folder hierarchy [C260967]', () => {
it('File Libraries breadcrumb for a folder hierarchy - [C260967]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.FILE_LIBRARIES)
.then(() => page.dataTable.waitForHeader())
.then(() => page.dataTable.doubleClickOnRowByName(siteName))
@@ -158,7 +158,7 @@ describe('Breadcrumb', () => {
});
});
it('User can navigate to any location by clicking on a step from the breadcrumb [C213235]', () => {
it('User can navigate to any location by clicking on a step from the breadcrumb - [C213235]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES)
.then(() => page.dataTable.waitForHeader())
.then(() => page.dataTable.doubleClickOnRowByName(parent))
@@ -171,7 +171,7 @@ describe('Breadcrumb', () => {
});
});
it('Tooltip appears on hover on a step in breadcrumb [C213237]', () => {
it('Tooltip appears on hover on a step in breadcrumb - [C213237]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES)
.then(() => page.dataTable.waitForHeader())
.then(() => page.dataTable.doubleClickOnRowByName(parent))
@@ -182,7 +182,7 @@ describe('Breadcrumb', () => {
});
});
it('Breadcrumb updates correctly when folder is renamed [C213238]', () => {
it('Breadcrumb updates correctly when folder is renamed - [C213238]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES)
.then(() => page.dataTable.waitForHeader())
.then(() => page.dataTable.doubleClickOnRowByName(parent2))
@@ -196,7 +196,7 @@ describe('Breadcrumb', () => {
});
});
it('Browser back navigates to previous location regardless of breadcrumb steps [C213240]', () => {
it('Browser back navigates to previous location regardless of breadcrumb steps - [C213240]', () => {
page.sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES)
.then(() => page.dataTable.waitForHeader())
.then(() => page.dataTable.doubleClickOnRowByName(parent))
@@ -233,7 +233,7 @@ describe('Breadcrumb', () => {
.then(done);
});
it(`Breadcrumb on navigation to a user's home [C260970]`, () => {
it(`Breadcrumb on navigation to a user's home - [C260970]`, () => {
page.dataTable.doubleClickOnRowByName('User Homes')
.then(() => page.dataTable.doubleClickOnRowByName(user2))
.then(() => expect(breadcrumb.getAllItems()).toEqual([ 'Personal Files', 'User Homes', user2 ]))

View File

@@ -42,12 +42,12 @@ describe('Sidebar', () => {
logoutPage.load().then(done);
});
it('has "Personal Files" as default', () => {
it('has "Personal Files" as default - [C217149]', () => {
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
expect(sidenav.isActiveByLabel('Personal Files')).toBe(true, 'Active link');
});
it('navigates to "File Libraries"', () => {
it('navigates to "File Libraries" - [C217150]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.FILE_LIBRARIES)
.then(() => {
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.FILE_LIBRARIES);
@@ -55,7 +55,7 @@ describe('Sidebar', () => {
});
});
it('navigates to "Personal Files"', () => {
it('navigates to "Personal Files" - [C280409]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES)
.then(() => {
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
@@ -63,7 +63,7 @@ describe('Sidebar', () => {
});
});
it('navigates to "Shared Files"', () => {
it('navigates to "Shared Files" - [C213110]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.SHARED_FILES)
.then(() => {
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.SHARED_FILES);
@@ -71,7 +71,7 @@ describe('Sidebar', () => {
});
});
it('navigates to "Recent Files"', () => {
it('navigates to "Recent Files" - [C213166]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.RECENT_FILES)
.then(() => {
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.RECENT_FILES);
@@ -79,7 +79,7 @@ describe('Sidebar', () => {
});
});
it('navigates to "Favorites"', () => {
it('navigates to "Favorites" - [C213225]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.FAVORITES)
.then(() => {
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.FAVORITES);
@@ -87,7 +87,7 @@ describe('Sidebar', () => {
});
});
it('navigates to "Trash"', () => {
it('navigates to "Trash" - [C213216]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.TRASH)
.then(() => {
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.TRASHCAN);
@@ -95,42 +95,48 @@ describe('Sidebar', () => {
});
});
it('Personal Files tooltip', () => {
// TODO: incomplete test
xit('Personal Files tooltip - [C217151]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.PERSONAL_FILES)
.then(() => {
expect(sidenav.getLinkTooltip(SIDEBAR_LABELS.PERSONAL_FILES)).toContain('View your Personal Files');
});
});
it('File Libraries tooltip', () => {
// TODO: incomplete test
xit('File Libraries tooltip - [C217152]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.FILE_LIBRARIES)
.then(() => {
expect(sidenav.getLinkTooltip(SIDEBAR_LABELS.FILE_LIBRARIES)).toContain('Access File Libraries');
});
});
it('Shared Files tooltip', () => {
// TODO: incomplete test
xit('Shared Files tooltip - [C213111]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.SHARED_FILES)
.then(() => {
expect(sidenav.getLinkTooltip(SIDEBAR_LABELS.SHARED_FILES)).toContain('View files that have been shared');
});
});
it('Recent Files tooltip', () => {
// TODO: incomplete test
xit('Recent Files tooltip - [C213167]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.RECENT_FILES)
.then(() => {
expect(sidenav.getLinkTooltip(SIDEBAR_LABELS.RECENT_FILES)).toContain('View files you recently edited');
});
});
it('Favorites tooltip', () => {
// TODO: incomplete test
xit('Favorites tooltip - [C217153]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.FAVORITES)
.then(() => {
expect(sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITES)).toContain('View your favorite files and folders');
});
});
it('Trash tooltip', () => {
// TODO: incomplete test
xit('Trash tooltip - [C217154]', () => {
sidenav.navigateToLinkByLabel(SIDEBAR_LABELS.TRASH)
.then(() => {
expect(sidenav.getLinkTooltip(SIDEBAR_LABELS.TRASH)).toContain('View deleted files in the trash');