mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix e2e (#5686)
* fix e2e * Update notifications-component.e2e.ts * fix e2e * fix e2e * try with interval * Update version-actions.e2e.ts
This commit is contained in:
@@ -73,7 +73,7 @@ describe('Upload component', async () => {
|
||||
};
|
||||
|
||||
it('[C272792] Should be possible to cancel upload of a big file using row cancel icon', async () => {
|
||||
await browser.executeScript(`setTimeout(() => {document.querySelector('div[data-automation-id="cancel-upload-progress"]').click();}, 2500)`);
|
||||
await browser.executeScript(`setInterval(() => {document.querySelector('div[data-automation-id="cancel-upload-progress"]').click();}, 500)`);
|
||||
|
||||
await contentServicesPage.uploadFile(mediumFile.location);
|
||||
|
||||
@@ -84,8 +84,8 @@ describe('Upload component', async () => {
|
||||
});
|
||||
|
||||
it('[C287790] Should be possible to cancel upload of a big file through the cancel uploads button', async () => {
|
||||
await browser.executeScript(' setTimeout(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
||||
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 2500)');
|
||||
await browser.executeScript(' setInterval(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
||||
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 500)');
|
||||
|
||||
await contentServicesPage.uploadFile(largeFile.location);
|
||||
await expect(await uploadDialog.getTitleText()).toEqual('Upload canceled');
|
||||
@@ -97,8 +97,8 @@ describe('Upload component', async () => {
|
||||
it('[C272793] Should be able to cancel multiple files upload', async () => {
|
||||
await uploadToggles.enableMultipleFileUpload();
|
||||
|
||||
await browser.executeScript(' setTimeout(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
||||
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 2500)');
|
||||
await browser.executeScript(' setInterval(() => {document.querySelector("#adf-upload-dialog-cancel-all").click();' +
|
||||
'document.querySelector("#adf-upload-dialog-cancel").click(); }, 500)');
|
||||
|
||||
await contentServicesPage.uploadMultipleFile([mediumFile.location, largeFile.location]);
|
||||
|
||||
@@ -113,7 +113,7 @@ describe('Upload component', async () => {
|
||||
it('[C315257] Should be able to cancel file in upload queue', async () => {
|
||||
await uploadToggles.enableMultipleFileUpload();
|
||||
|
||||
await browser.executeScript(`setTimeout(() => {document.querySelector('button[data-automation-id="cancel-upload-queue"]').click();}, 2500)`);
|
||||
await browser.executeScript(`setInterval(() => {document.querySelector('button[data-automation-id="cancel-upload-queue"]').click();}, 500)`);
|
||||
|
||||
await contentServicesPage.uploadMultipleFile([mediumFile.location, pngFile.location]);
|
||||
await uploadDialog.fileIsCancelled(pngFile.name);
|
||||
|
Reference in New Issue
Block a user