🐛 Fix download button (#172)
* Fix on context menu for folder * Make it works for My Drive * Fix downloading folder in the shared view --------- Co-authored-by: Anton SHEPILOV <ashepilov@linagora.com>
This commit is contained in:
@@ -309,4 +309,32 @@ describe("the public links feature", () => {
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
describe("Download Folder from shared link", () => {
|
||||
|
||||
it("Share folder", async () => {
|
||||
const user = await TestHelpers.getInstance(platform, true);
|
||||
const anotherUser = await TestHelpers.getInstance(platform, true);
|
||||
|
||||
//create directory in "My Drive" and upload a file
|
||||
const directory = await user.createDirectory("user_" + user.user.id);
|
||||
const doc = await user.createRandomDocument(directory.id);
|
||||
|
||||
//check that another user doesn't see any file
|
||||
//expect((await anotherUser.getFolder(doc.id)).statusCode).toBe(401);
|
||||
|
||||
//share folder with the public link
|
||||
await user.shareWithPublicLink(directory, "read");
|
||||
|
||||
const token = await anotherUser.getPublicLinkAccessToken(directory);
|
||||
|
||||
anotherUser.jwt = token.value;
|
||||
await anotherUser.getDocumentOKCheck(doc.id);
|
||||
|
||||
expect((await anotherUser.getFolder(doc.id)).statusCode).toBe(200);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user