mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-6572] break dependency on adf-testing (#3594)
* remove Logger dependency * remove BrowserVisibility dependency * remove BrowserActions dependency * remove ViewerPage dependency * remove ApiUtil dependency * remove StringUtil dependency * remove adf-testing dependency * bug fixes
This commit is contained in:
@@ -22,8 +22,7 @@
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { AdminActions, UserActions, LoginPage, BrowsingPage, RepoClient, Utils } from '@alfresco/aca-testing-shared';
|
||||
import { BrowserActions } from '@alfresco/adf-testing';
|
||||
import { AdminActions, UserActions, LoginPage, BrowsingPage, RepoClient, Utils, click } from '@alfresco/aca-testing-shared';
|
||||
|
||||
describe('Download', () => {
|
||||
const random = Utils.random();
|
||||
@@ -129,14 +128,14 @@ describe('Download', () => {
|
||||
|
||||
it('[C213179] Download a file', async () => {
|
||||
await dataTable.selectItem(filePersonal);
|
||||
await BrowserActions.click(toolbar.downloadButton);
|
||||
await click(toolbar.downloadButton);
|
||||
|
||||
expect(await Utils.fileExistsOnOS(filePersonal)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('[C216352] Download a folder', async () => {
|
||||
await dataTable.selectItem(folderPersonal);
|
||||
await BrowserActions.click(toolbar.downloadButton);
|
||||
await click(toolbar.downloadButton);
|
||||
|
||||
const folderZip = `${folderPersonal}.zip`;
|
||||
|
||||
@@ -149,7 +148,7 @@ describe('Download', () => {
|
||||
|
||||
it('[C216353] Download multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([filePersonal, folderPersonal]);
|
||||
await BrowserActions.click(toolbar.downloadButton);
|
||||
await click(toolbar.downloadButton);
|
||||
|
||||
expect(await Utils.fileExistsOnOS(archiveZip)).toBe(true, 'File not found in download location');
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ import {
|
||||
UserActions
|
||||
} from '@alfresco/aca-testing-shared';
|
||||
import { browser } from 'protractor';
|
||||
import { Logger } from '@alfresco/adf-testing';
|
||||
|
||||
describe('Version actions', () => {
|
||||
const random = Utils.random();
|
||||
@@ -87,9 +86,7 @@ describe('Version actions', () => {
|
||||
await loginPage.loginWith(username);
|
||||
await dataTable.doubleClickOnRowByName(parentFolder);
|
||||
await dataTable.waitForHeader();
|
||||
} catch (error) {
|
||||
Logger.error(`--- beforeAll failed : ${error}`);
|
||||
}
|
||||
} catch {}
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
||||
Reference in New Issue
Block a user