[ADF-3959] Fixing trashcan-pagination tests (#4222)

This commit is contained in:
Marouan Bentaleb
2019-02-01 13:20:17 +00:00
committed by Eugenio Romano
parent 2036e026f3
commit c00e230983
6 changed files with 56 additions and 38 deletions

View File

@@ -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();