mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Unexclude due the timeout (#1805)
* change base method to wait * fix import * reduce log * fix * data placeholder * fix * fix * fix * fix style * change visibility with common method * fix * use common get value method * remove unused import * fix a few incorrect api calls * - use separate variables * correctly wait for items after they have been created * use browseraction click * Exclude failing tests * increase timeout and some fix * check env before execute test * simplify conf * exclude * rerun * logs * refactor pagination tests to use only 51 items take out pagination tests into a separate stage * fix check * remove hardcoded total items. other shared files might already exist Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com> Co-authored-by: iuliaib <iulia.burca@ness.com>
This commit is contained in:
@@ -17,7 +17,7 @@ const downloadFolder = path.join(__dirname, 'e2e-downloads');
|
||||
const screenshotsFolder = path.resolve(__dirname, 'e2e-output');
|
||||
const e2eFolder = path.resolve(projectRoot, 'e2e');
|
||||
const E2E_HOST = process.env.E2E_HOST || 'http://localhost:4200';
|
||||
const BROWSER_RUN = process.env.BROWSER_RUN;
|
||||
const BROWSER_RUN = !!process.env.BROWSER_RUN;
|
||||
const width = 1366;
|
||||
const height = 768;
|
||||
|
||||
@@ -26,21 +26,6 @@ const API_CONTENT_HOST = process.env.API_CONTENT_HOST || 'http://localhost:8080'
|
||||
const MAXINSTANCES = process.env.MAXINSTANCES || 1;
|
||||
const MAX_RETRIES = process.env.MAX_RETRIES || 1;
|
||||
|
||||
function rmDir(dirPath) {
|
||||
try {
|
||||
const files = fs.readdirSync(dirPath);
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
if (files.length > 0)
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
const filePath = dirPath + '/' + files[i];
|
||||
if (fs.statSync(filePath).isFile()) fs.unlinkSync(filePath);
|
||||
else rmDir(filePath);
|
||||
}
|
||||
fs.rmdirSync(dirPath);
|
||||
}
|
||||
|
||||
const appConfig = {
|
||||
hostEcm: API_CONTENT_HOST,
|
||||
providers: 'ECM',
|
||||
@@ -139,12 +124,12 @@ exports.config = {
|
||||
}
|
||||
},
|
||||
args: [
|
||||
'--incognito',
|
||||
`--window-size=${width},${height}`,
|
||||
'--disable-gpu',
|
||||
'--no-sandbox',
|
||||
'--disable-web-security',
|
||||
'--disable-browser-side-navigation',
|
||||
'--allow-running-insecure-content',
|
||||
...(BROWSER_RUN === true ? [] : ['--headless'])
|
||||
]
|
||||
}
|
||||
@@ -217,14 +202,12 @@ exports.config = {
|
||||
jasmine.getEnv().addReporter(
|
||||
new SpecReporter({
|
||||
spec: {
|
||||
displayStacktrace: 'pretty',
|
||||
displayStacktrace: 'raw',
|
||||
displayDuration: true
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
rmDir(downloadFolder);
|
||||
|
||||
browser.driver.sendChromiumCommand('Page.setDownloadBehavior', {
|
||||
behavior: 'allow',
|
||||
downloadPath: downloadFolder
|
||||
|
Reference in New Issue
Block a user