mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-4909] e2e - Move the resources as part of protractor params (#5086)
* Move the resources as part of protractor params * Revert replace mistakes * Remove the resources imports * fix resources import
This commit is contained in:
committed by
Eugenio Romano
parent
6860ab73ab
commit
3fc9390666
@@ -30,7 +30,6 @@ import {
|
||||
UploadActions,
|
||||
BrowserActions
|
||||
} from '@alfresco/adf-testing';
|
||||
import resources = require('../util/resources');
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { browser } from 'protractor';
|
||||
import { SearchConfiguration } from './search.config';
|
||||
@@ -63,22 +62,22 @@ describe('Search Filters', () => {
|
||||
});
|
||||
|
||||
const pngFileModel = new FileModel({
|
||||
'name': resources.Files.ADF_DOCUMENTS.PNG.file_name,
|
||||
'location': resources.Files.ADF_DOCUMENTS.PNG.file_location
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location
|
||||
});
|
||||
|
||||
const txtFileModel1 = new FileModel({
|
||||
'location': resources.Files.ADF_DOCUMENTS.TXT_0B.file_location,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location,
|
||||
'name': `${uniqueFileName1}.txt`
|
||||
});
|
||||
|
||||
const jpgFileModel = new FileModel({
|
||||
'location': resources.Files.ADF_DOCUMENTS.JPG.file_location,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.JPG.file_location,
|
||||
'name': `${uniqueFileName2}.jpg`
|
||||
});
|
||||
|
||||
const txtFileModel2 = new FileModel({
|
||||
'location': resources.Files.ADF_DOCUMENTS.TXT_0B.file_location,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.TXT_0B.file_location,
|
||||
'name': `${uniqueFileName3}.txt`
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user