mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-4909] e2e - Move the resources as part of protractor params (#5086)
* Move the resources as part of protractor params * Revert replace mistakes * Remove the resources imports * fix resources import
This commit is contained in:
committed by
Eugenio Romano
parent
6860ab73ab
commit
3fc9390666
@@ -20,9 +20,7 @@ import { AppsActions } from '../../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import resources = require('../../util/resources');
|
||||
import { browser } from 'protractor';
|
||||
|
||||
describe('Amount Widget', () => {
|
||||
@@ -35,7 +33,7 @@ describe('Amount Widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.AMOUNT;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.AMOUNT;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -51,7 +49,7 @@ describe('Amount Widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Attach Folder widget', () => {
|
||||
const loginPage = new LoginPage();
|
||||
@@ -32,7 +31,7 @@ describe('Attach Folder widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.ATTACH_FOLDER;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.ATTACH_FOLDER;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -48,7 +47,7 @@ describe('Attach Folder widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Checkbox Widget', () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('Checkbox Widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.CHECKBOX;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.CHECKBOX;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -49,7 +48,7 @@ describe('Checkbox Widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Date and time widget', () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('Date and time widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.DATETIME;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.DATETIME;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -49,7 +48,7 @@ describe('Date and time widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget, FormPage } from '@alfresco/adf-testi
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
import { FormDemoPage } from '../../pages/adf/demo-shell/process-services/formDemoPage';
|
||||
import { customDateFormAPS1 } from '../../resources/forms/custom-date-form';
|
||||
|
||||
@@ -36,7 +35,7 @@ describe('Date widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.DATE;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.DATE;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -52,7 +51,7 @@ describe('Date widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Document Template widget', () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('Document Template widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.FILE_FORM_ADF;
|
||||
const app = browser.params.resources.Files.FILE_FORM_ADF;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Dropdown widget', () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('Dropdown widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.DROPDOWN;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.DROPDOWN;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -49,7 +48,7 @@ describe('Dropdown widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Dynamic Table widget ', () => {
|
||||
|
||||
@@ -36,7 +35,7 @@ describe('Dynamic Table widget ', () => {
|
||||
let deployedApp, process;
|
||||
|
||||
describe('with Date Time Widget App', () => {
|
||||
const app = resources.Files.WIDGET_CHECK_APP.DYNAMIC_TABLE;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.DYNAMIC_TABLE;
|
||||
|
||||
beforeAll(async () => {
|
||||
const users = new UsersActions();
|
||||
@@ -51,7 +50,7 @@ describe('Dynamic Table widget ', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
@@ -97,7 +96,7 @@ describe('Dynamic Table widget ', () => {
|
||||
|
||||
describe('with People Widget App', () => {
|
||||
|
||||
const app = resources.Files.WIDGET_CHECK_APP.DYNAMIC_TABLE_USERS;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.DYNAMIC_TABLE_USERS;
|
||||
|
||||
beforeAll(async () => {
|
||||
const users = new UsersActions();
|
||||
@@ -112,7 +111,7 @@ describe('Dynamic Table widget ', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Header widget', async () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('Header widget', async () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.HEADER;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.HEADER;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -49,7 +48,7 @@ describe('Header widget', async () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Hyperlink widget', () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('Hyperlink widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.HYPERLINK;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.HYPERLINK;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -49,7 +48,7 @@ describe('Hyperlink widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Multi-line Widget', () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('Multi-line Widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.MULTILINE_TEXT;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.MULTILINE_TEXT;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -49,7 +48,7 @@ describe('Multi-line Widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -20,10 +20,8 @@ import { AppsActions } from '../../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Number widget', () => {
|
||||
|
||||
@@ -34,7 +32,7 @@ describe('Number widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.NUMBER;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.NUMBER;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -50,7 +48,7 @@ describe('Number widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('People widget', () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('People widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.ADD_PEOPLE;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.ADD_PEOPLE;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -49,7 +48,7 @@ describe('People widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Radio Buttons Widget', () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('Radio Buttons Widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.RADIO_BUTTONS;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.RADIO_BUTTONS;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -49,7 +48,7 @@ describe('Radio Buttons Widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../../pages/adf/process-services/tasksPage';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
|
||||
describe('Text widget', () => {
|
||||
|
||||
@@ -33,7 +32,7 @@ describe('Text widget', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.TEXT;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.TEXT;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -49,7 +48,7 @@ describe('Text widget', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { LoginPage, Widget, BrowserActions } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../../util/resources');
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { AppsActions } from '../../actions/APS/apps.actions';
|
||||
@@ -56,7 +55,7 @@ describe('Process-Services - Visibility conditions', () => {
|
||||
let alfrescoJsApi;
|
||||
const appsActions = new AppsActions();
|
||||
let appModel;
|
||||
const app = resources.Files.WIDGET_CHECK_APP.VISIBILITY;
|
||||
const app = browser.params.resources.Files.WIDGET_CHECK_APP.VISIBILITY;
|
||||
let deployedApp, process;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -72,7 +71,7 @@ describe('Process-Services - Visibility conditions', () => {
|
||||
processUserModel = await users.createTenantAndUser(alfrescoJsApi);
|
||||
|
||||
await alfrescoJsApi.login(processUserModel.email, processUserModel.password);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, browser.params.resources.Files.WIDGET_CHECK_APP.file_location);
|
||||
|
||||
const appDefinitions = await alfrescoJsApi.activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
|
||||
Reference in New Issue
Block a user