mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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:
committed by
Suzana Dirla
parent
dcacbc1210
commit
ca67da3657
@@ -53,7 +53,7 @@ describe('Shared Files', () => {
|
||||
beforeAll(async (done) => {
|
||||
await apis.admin.people.createUser({ username });
|
||||
await apis.admin.sites.createSite(siteName, SITE_VISIBILITY.PUBLIC);
|
||||
await apis.admin.sites.addSiteMember(siteName, username, SITE_ROLES.SITE_CONSUMER);
|
||||
await apis.admin.sites.addSiteMember(siteName, username, SITE_ROLES.SITE_CONSUMER.ROLE);
|
||||
const docLibId = await apis.admin.sites.getDocLibId(siteName);
|
||||
const nodeId = (await apis.admin.nodes.createFile(fileAdmin, docLibId)).entry.id;
|
||||
await apis.admin.shared.shareFileById(nodeId);
|
||||
@@ -131,7 +131,7 @@ describe('Shared Files', () => {
|
||||
|
||||
it('Location column redirect - file in site - [C280491]', async () => {
|
||||
await dataTable.clickItemLocation(fileAdmin);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'File Libraries', siteName ]);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'My Libraries', siteName ]);
|
||||
});
|
||||
|
||||
it('Location column displays a tooltip with the entire path of the file - [C213667]', async () => {
|
||||
|
Reference in New Issue
Block a user