mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
fix cancel (#5520)
This commit is contained in:
parent
03fb9c32ec
commit
a79313c773
@ -100,12 +100,12 @@ describe('Upload component', async () => {
|
|||||||
await browser.executeScript(' setTimeout(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
await browser.executeScript(' setTimeout(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
||||||
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 2500)');
|
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 2500)');
|
||||||
|
|
||||||
await contentServicesPage.uploadMultipleFile([pngFile.location, largeFile.location]);
|
await contentServicesPage.uploadMultipleFile([mediumFile.location, largeFile.location]);
|
||||||
|
|
||||||
await expect(await uploadDialog.getTitleText()).toEqual('Upload canceled');
|
await expect(await uploadDialog.getTitleText()).toEqual('Upload canceled');
|
||||||
await uploadDialog.clickOnCloseButton();
|
await uploadDialog.clickOnCloseButton();
|
||||||
await uploadDialog.dialogIsNotDisplayed();
|
await uploadDialog.dialogIsNotDisplayed();
|
||||||
await contentServicesPage.checkContentIsNotDisplayed(pngFile.name);
|
await contentServicesPage.checkContentIsNotDisplayed(mediumFile.name);
|
||||||
await contentServicesPage.checkContentIsNotDisplayed(largeFile.name);
|
await contentServicesPage.checkContentIsNotDisplayed(largeFile.name);
|
||||||
await uploadToggles.disableMultipleFileUpload();
|
await uploadToggles.disableMultipleFileUpload();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user