mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-4507] Fix folder tests (#2227)
* [ACA-4507] Fix folder tests * * wait for recent files * * increase timeouts * * fix comments * * search untill found * Revert: * wait for recent files (7be52b12) * * update timeout * * upload fixed and improve recent files
This commit is contained in:
@@ -4,10 +4,6 @@ const AlfrescoApi = require('@alfresco/js-api').AlfrescoApiCompatibility;
|
||||
const buildNumber = require('./build-number');
|
||||
const outputDir = path.resolve(__dirname, '../../../e2e-output/');
|
||||
|
||||
async function uploadOutput(retryCount = 1) {
|
||||
await saveScreenshots(retryCount);
|
||||
};
|
||||
|
||||
async function saveScreenshots(retryCount) {
|
||||
const folderName = process.env.TRAVIS_JOB_NAME.replace(/[^a-z0-9]/gi, '_').toLowerCase();
|
||||
console.log(`Start uploading report in ${folderName}`);
|
||||
@@ -63,5 +59,5 @@ async function saveScreenshots(retryCount) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
uploadOutput: uploadOutput
|
||||
saveScreenshots: saveScreenshots
|
||||
};
|
||||
|
@@ -64,6 +64,7 @@ describe('Folders - available actions : ', () => {
|
||||
await userApi.favorites.addFavoritesByIds('folder', [folderFavId, folderFav2Id]);
|
||||
await userApi.favorites.addFavoritesByIds('file', [fileFavId]);
|
||||
await userApi.favorites.waitForApi({ expect: initialFavoritesTotalItems + 3 });
|
||||
await userApi.search.waitForNodes(random, { expect: 5 });
|
||||
|
||||
await loginPage.loginWith(username);
|
||||
});
|
||||
|
@@ -71,6 +71,7 @@ describe('Locked Files - available actions : ', () => {
|
||||
await userApi.nodes.lockFile(fileSharedFavLockedId);
|
||||
|
||||
await userApi.shared.waitForFilesToBeShared([fileSharedLockedId, fileSharedFavLockedId]);
|
||||
await userApi.search.waitForApi(username, { expect: 4 });
|
||||
|
||||
await loginPage.loginWith(username);
|
||||
});
|
||||
|
@@ -77,6 +77,7 @@ describe('Multiple Files - available actions : ', () => {
|
||||
|
||||
await userApi.shared.shareFilesByIds([file1Id, file2Id, file3LockedId, file1LockedFavId, file2LockedFavId]);
|
||||
await userApi.shared.waitForFilesToBeShared([file1Id, file2Id, file3LockedId, file1LockedFavId, file2LockedFavId]);
|
||||
await userApi.search.waitForApi(username, { expect: 5 });
|
||||
|
||||
await loginPage.loginWith(username);
|
||||
});
|
||||
|
Reference in New Issue
Block a user