mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
change cancel big file upload e2e strategy
This commit is contained in:
@@ -228,8 +228,8 @@ describe('Upload component', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('[C287790] Should be possible to cancel upload of a big file through the cancel uploads button', () => {
|
it('[C287790] Should be possible to cancel upload of a big file through the cancel uploads button', () => {
|
||||||
browser.executeScript(' setTimeout(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
browser.executeScript(' setInterval(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
||||||
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 3000)');
|
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 500)');
|
||||||
|
|
||||||
contentServicesPage.uploadFile(largeFile.location);
|
contentServicesPage.uploadFile(largeFile.location);
|
||||||
|
|
||||||
@@ -239,8 +239,8 @@ describe('Upload component', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('[C272793] Should be able to cancel multiple files upload', () => {
|
it('[C272793] Should be able to cancel multiple files upload', () => {
|
||||||
browser.executeScript(' setTimeout(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
browser.executeScript(' setInterval(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
||||||
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 3000)');
|
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 500)');
|
||||||
|
|
||||||
uploadToggles.enableMultipleFileUpload();
|
uploadToggles.enableMultipleFileUpload();
|
||||||
contentServicesPage.uploadMultipleFile([pngFileModel.location, largeFile.location]);
|
contentServicesPage.uploadMultipleFile([pngFileModel.location, largeFile.location]);
|
||||||
|
Reference in New Issue
Block a user