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:
@@ -59,18 +59,22 @@ describe('Single click on item name', () => {
|
||||
await adminApiActions.createUser({ username });
|
||||
await userActions.login(username, username);
|
||||
|
||||
const initialRecentTotalItems = await apis.user.search.getTotalItems(username);
|
||||
|
||||
file1Id = (await apis.user.nodes.createFile(file1)).entry.id;
|
||||
folder1Id = (await apis.user.nodes.createFolder(folder1)).entry.id;
|
||||
|
||||
await apis.user.sites.createSite(siteName);
|
||||
const docLibId = await apis.user.sites.getDocLibId(siteName);
|
||||
await apis.user.nodes.createFile(fileSite, docLibId);
|
||||
|
||||
await apis.user.search.waitForApi(username, { expect: initialRecentTotalItems + 2 });
|
||||
|
||||
deletedFile1Id = (await apis.user.nodes.createFile(deletedFile1)).entry.id;
|
||||
deletedFolder1Id = (await apis.user.nodes.createFolder(deletedFolder1)).entry.id;
|
||||
|
||||
await userActions.deleteNodes([deletedFile1Id, deletedFolder1Id], false);
|
||||
|
||||
await apis.user.sites.createSite(siteName);
|
||||
const docLibId = await apis.user.sites.getDocLibId(siteName);
|
||||
await apis.user.nodes.createFile(fileSite, docLibId);
|
||||
|
||||
await loginPage.loginWith(username);
|
||||
done();
|
||||
});
|
||||
@@ -204,8 +208,6 @@ describe('Single click on item name', () => {
|
||||
|
||||
describe('on Search Results', () => {
|
||||
beforeEach(async () => {
|
||||
const initialRecentTotalItems = await apis.user.search.getTotalItems(username);
|
||||
await apis.user.search.waitForApi(username, { expect: initialRecentTotalItems + 2 });
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
});
|
||||
|
Reference in New Issue
Block a user