mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3959] Fixing trashcan-pagination tests (#4222)
This commit is contained in:
committed by
Eugenio Romano
parent
2036e026f3
commit
c00e230983
@@ -83,6 +83,11 @@ describe('Upload component - Excluded Files', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
afterEach(async (done) => {
|
||||
await browser.refresh();
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C279914] Should not allow upload default excluded files using D&D', () => {
|
||||
contentServicesPage.checkDragAndDropDIsDisplayed();
|
||||
|
||||
@@ -108,30 +113,31 @@ describe('Upload component - Excluded Files', () => {
|
||||
it('[C260125] Should not upload excluded file when they are in a Folder', () => {
|
||||
uploadToggles.enableFolderUpload();
|
||||
|
||||
contentServicesPage.uploadFolder(folderWithExcludedFile.location).checkContentIsDisplayed(folderWithExcludedFile.name);
|
||||
contentServicesPage.uploadFolder(folderWithExcludedFile.location);
|
||||
|
||||
contentServicesPage.doubleClickRow(folderWithExcludedFile.name).checkContentIsNotDisplayed(iniExcludedFile.name).checkContentIsDisplayed('a_file.txt');
|
||||
uploadDialog.checkUploadCompleted().then(() => {
|
||||
contentServicesPage.doubleClickRow(folderWithExcludedFile.name)
|
||||
.checkContentIsNotDisplayed(iniExcludedFile.name)
|
||||
.checkContentIsDisplayed('a_file.txt');
|
||||
});
|
||||
});
|
||||
|
||||
it('[C212862] Should not allow upload file excluded in the files extension of app.config.json', () => {
|
||||
|
||||
browser.refresh();
|
||||
|
||||
navigationBarPage.clickConfigEditorButton();
|
||||
configEditorPage.clickFileConfiguration();
|
||||
|
||||
configEditorPage.clickClearButton();
|
||||
|
||||
configEditorPage.enterConfiguration('{' +
|
||||
' "excluded": [' +
|
||||
' ".DS_Store",' +
|
||||
' "desktop.ini",' +
|
||||
' "*.txt"' +
|
||||
' ],' +
|
||||
' "match-options": {' +
|
||||
' "nocase": true' +
|
||||
' }' +
|
||||
'}');
|
||||
'"excluded": [' +
|
||||
'".DS_Store",' +
|
||||
'"desktop.ini",' +
|
||||
'"*.txt"' +
|
||||
'],' +
|
||||
'"match-options": {' +
|
||||
'"nocase": true' +
|
||||
'}}');
|
||||
|
||||
configEditorPage.clickSaveButton();
|
||||
|
||||
@@ -153,15 +159,14 @@ describe('Upload component - Excluded Files', () => {
|
||||
configEditorPage.clickClearButton();
|
||||
|
||||
configEditorPage.enterConfiguration('{' +
|
||||
' "excluded": [' +
|
||||
' ".DS_Store",' +
|
||||
' "desktop.ini",' +
|
||||
' "*.png"' +
|
||||
' ],' +
|
||||
' "match-options": {' +
|
||||
' "nocase": true' +
|
||||
' }' +
|
||||
'}');
|
||||
'"excluded": [' +
|
||||
'".DS_Store",' +
|
||||
'"desktop.ini",' +
|
||||
'"*.png"' +
|
||||
'],' +
|
||||
'"match-options": {' +
|
||||
'"nocase": true' +
|
||||
'}}');
|
||||
|
||||
configEditorPage.clickSaveButton();
|
||||
|
||||
|
Reference in New Issue
Block a user