🐛 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:
@@ -290,6 +290,17 @@ export default class TestHelpers {
|
||||
});
|
||||
};
|
||||
|
||||
async getFolder(id: string | "root" | "trash" | "shared_with_me") {
|
||||
return await this.platform.app.inject({
|
||||
method: "GET",
|
||||
url: `${TestHelpers.DOC_URL}/companies/${this.platform.workspace.company_id}/item/download/zip?items=${id}`,
|
||||
headers: {
|
||||
authorization: `Bearer ${this.jwt}`,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
async getDocumentOKCheck(id: string | "root" | "trash" | "shared_with_me") {
|
||||
const response = await this.getDocument(id);
|
||||
expect(response.statusCode).toBe(200);
|
||||
@@ -297,6 +308,13 @@ export default class TestHelpers {
|
||||
expect(doc.item?.id).toBe(id);
|
||||
};
|
||||
|
||||
async getFolderOKCheck(id: string | "root" | "trash" | "shared_with_me") {
|
||||
const response = await this.getFolder(id);
|
||||
expect(response.statusCode).toBe(200);
|
||||
const doc = deserialize<DriveItemDetailsMockClass>(DriveItemDetailsMockClass, response.body);
|
||||
expect(doc.item?.id).toBe(id);
|
||||
};
|
||||
|
||||
async sharedWithMeDocuments (
|
||||
payload: Record<string, any>
|
||||
){
|
||||
|
||||
Reference in New Issue
Block a user