mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
e2e cleanup (#2951)
* reduce the code * reduce code * reduce code * reduce code * cleanup tests * more readable code * cleanup code * fix code * even more cleanup * remove some deprecated apis * code fixes * cleanup files * more files switching to user actions
This commit is contained in:
@@ -23,7 +23,17 @@
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { AdminActions, LoginPage, BrowsingPage, FILES, RepoClient, Utils, ManageVersionsDialog, Viewer } from '@alfresco/aca-testing-shared';
|
||||
import {
|
||||
AdminActions,
|
||||
LoginPage,
|
||||
BrowsingPage,
|
||||
FILES,
|
||||
RepoClient,
|
||||
Utils,
|
||||
ManageVersionsDialog,
|
||||
Viewer,
|
||||
UserActions
|
||||
} from '@alfresco/aca-testing-shared';
|
||||
import { browser } from 'protractor';
|
||||
import { Logger } from '@alfresco/adf-testing';
|
||||
|
||||
@@ -48,11 +58,14 @@ describe('Version actions', () => {
|
||||
const versionManagePage = new ManageVersionsDialog();
|
||||
const viewerPage = new Viewer();
|
||||
const { searchInput } = page.header;
|
||||
|
||||
const adminApiActions = new AdminActions();
|
||||
const userActions = new UserActions();
|
||||
|
||||
beforeAll(async () => {
|
||||
try {
|
||||
await adminApiActions.createUser({ username });
|
||||
await userActions.login(username, username);
|
||||
|
||||
parentFolderId = (await apis.user.nodes.createFolder(parentFolder)).entry.id;
|
||||
|
||||
@@ -82,7 +95,7 @@ describe('Version actions', () => {
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apis.user.nodes.deleteNodeById(parentFolderId);
|
||||
await userActions.deleteNodes([parentFolderId]);
|
||||
});
|
||||
|
||||
describe('on Personal Files', () => {
|
||||
|
Reference in New Issue
Block a user