[ACA-1946] automate tests for Favourite Libraries list (#803)

* automate part of the Favourite Libraries tests
refactor File Libraries tests to include My Libraries

* rephrasing

* forgotten changes

* fix tests
This commit is contained in:
Adina Parpalita
2018-11-16 15:43:16 +02:00
committed by Suzana Dirla
parent dcacbc1210
commit ca67da3657
24 changed files with 416 additions and 192 deletions
@@ -75,8 +75,8 @@ describe('Library properties', () => {
await apis.user.sites.createSite(siteForUpdate.name, siteForUpdate.visibility, siteForUpdate.description, siteForUpdate.id);
await apis.user.sites.createSite(siteDup);
await apis.user.sites.addSiteMember(site.id, user2, SITE_ROLES.SITE_COLLABORATOR);
await apis.user.sites.addSiteMember(site.id, user3, SITE_ROLES.SITE_MANAGER);
await apis.user.sites.addSiteMember(site.id, user2, SITE_ROLES.SITE_COLLABORATOR.ROLE);
await apis.user.sites.addSiteMember(site.id, user3, SITE_ROLES.SITE_MANAGER.ROLE);
await loginPage.loginWith(username);
done();
@@ -250,7 +250,7 @@ describe('Library properties', () => {
await infoDrawer.waitForInfoDrawerToOpen();
await infoDrawer.clickButton('Edit');
await apis.user.sites.updateSiteMember(site.id, user3, SITE_ROLES.SITE_CONSUMER);
await apis.user.sites.updateSiteMember(site.id, user3, SITE_ROLES.SITE_CONSUMER.ROLE);
await infoDrawer.enterDescription('new description');
await infoDrawer.clickButton('Update');