mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-3962] sso download directive automated (#4452)
* sso download directive automated * temp changes * temp changes * moving of services under lib testing and ADF-3962 automated * removed the browser sleep * cspell and linting fixes. * codacy improvements * export public-api update * remove circular dep * remove circular dep * fixes * fix user info test * fix datatable * random commit * move other string * fix lint * fix lint * fix prolem type * fix failing test * fix tag test * fix problems after rebase * fix lint * remove space * remove visibility method duplicated
This commit is contained in:
committed by
Eugenio Romano
parent
89f612bbb0
commit
4376d357ac
@@ -31,6 +31,7 @@ import { FileModel } from '../models/ACS/fileModel';
|
||||
import TestConfig = require('../test.config');
|
||||
import { Util } from '../util/util';
|
||||
import resources = require('../util/resources');
|
||||
import { StringUtil } from '@alfresco/adf-testing';
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UploadActions } from '../actions/ACS/upload.actions';
|
||||
@@ -40,7 +41,7 @@ describe('Search component - Search Page', () => {
|
||||
active: {
|
||||
firstFile: null,
|
||||
secondFile: null,
|
||||
base: Util.generateRandomString(7),
|
||||
base: StringUtil.generateRandomString(7),
|
||||
extension: '.txt'
|
||||
},
|
||||
no_permission: {
|
||||
@@ -56,17 +57,16 @@ describe('Search component - Search Page', () => {
|
||||
const filePreviewPage = new FilePreviewPage();
|
||||
|
||||
const acsUser = new AcsUserModel();
|
||||
const emptyFolderModel = new FolderModel({ 'name': 'search' + Util.generateRandomString() });
|
||||
const emptyFolderModel = new FolderModel({ 'name': 'search' + StringUtil.generateRandomString() });
|
||||
let firstFileModel;
|
||||
const newFolderModel = new FolderModel({ 'name': 'newFolder' });
|
||||
let fileNames = [];
|
||||
let adminFileNames = [];
|
||||
const nrOfFiles = 15;
|
||||
const adminNrOfFiles = 5;
|
||||
|
||||
beforeAll(async (done) => {
|
||||
fileNames = Util.generateSequenceFiles(1, nrOfFiles, search.active.base, search.active.extension);
|
||||
adminFileNames = Util.generateSequenceFiles(nrOfFiles + 1, nrOfFiles + adminNrOfFiles, search.active.base, search.active.extension);
|
||||
const adminFileNames = Util.generateSequenceFiles(nrOfFiles + 1, nrOfFiles + adminNrOfFiles, search.active.base, search.active.extension);
|
||||
search.active.firstFile = fileNames[0];
|
||||
search.active.secondFile = fileNames[1];
|
||||
fileNames.splice(0, 1);
|
||||
@@ -84,9 +84,7 @@ describe('Search component - Search Page', () => {
|
||||
});
|
||||
|
||||
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
||||
|
||||
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
|
||||
|
||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||
|
||||
await uploadActions.createFolder(this.alfrescoJsApi, emptyFolderModel.name, '-my-');
|
||||
@@ -108,7 +106,7 @@ describe('Search component - Search Page', () => {
|
||||
});
|
||||
|
||||
it('[C260264] Should display message when no results are found', () => {
|
||||
const notExistentFileName = Util.generateRandomString();
|
||||
const notExistentFileName = StringUtil.generateRandomString();
|
||||
searchDialog.checkSearchBarIsNotVisible().checkSearchIconIsVisible().clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(notExistentFileName);
|
||||
searchResultPage.checkNoResultMessageIsDisplayed();
|
||||
|
||||
Reference in New Issue
Block a user