mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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
@@ -19,11 +19,7 @@ import { browser } from 'protractor';
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
@@ -34,9 +30,9 @@ describe('Modify applications', () => {
|
||||
const loginPage = new LoginPage();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
const processServicesPage = new ProcessServicesPage();
|
||||
const app = resources.Files.APP_WITH_PROCESSES;
|
||||
const appToBeDeleted = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const replacingApp = resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const app = browser.params.resources.Files.APP_WITH_PROCESSES;
|
||||
const appToBeDeleted = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const replacingApp = browser.params.resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const apps = new AppsActions();
|
||||
const modelActions = new ModelsActions();
|
||||
let firstApp, appVersionToBeDeleted;
|
||||
|
@@ -16,16 +16,10 @@
|
||||
*/
|
||||
|
||||
import { LoginPage, Widget } from '@alfresco/adf-testing';
|
||||
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { FileModel } from '../models/ACS/fileModel';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { ViewerPage } from '../pages/adf/viewerPage';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
@@ -41,8 +35,8 @@ describe('Start Task - Task App', () => {
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
|
||||
let processUserModel;
|
||||
const app = resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const pdfFile = new FileModel({ 'name': resources.Files.ADF_DOCUMENTS.PDF.file_name });
|
||||
const app = browser.params.resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const pdfFile = new FileModel({ 'name': browser.params.resources.Files.ADF_DOCUMENTS.PDF.file_name });
|
||||
const appFields = app.form_fields;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
@@ -23,7 +23,6 @@ import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -38,7 +37,7 @@ describe('Attach Form Component', () => {
|
||||
const formFields = new FormFields();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const formTextField = app.form_fields.form_fieldId;
|
||||
let user, tenantId, appId;
|
||||
|
||||
|
@@ -20,14 +20,9 @@ import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
import { ChecklistDialog } from '../pages/adf/process-services/dialog/createChecklistDialog';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { Tenant } from '../models/APS/tenant';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import fs = require('fs');
|
||||
@@ -37,7 +32,7 @@ describe('Checklist component', () => {
|
||||
|
||||
const loginPage = new LoginPage();
|
||||
let processUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const taskPage = new TasksPage();
|
||||
const processServices = new ProcessServicesPage();
|
||||
const checklistDialog = new ChecklistDialog();
|
||||
|
@@ -20,9 +20,6 @@ import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { ProcessFiltersPage } from '../pages/adf/process-services/processFiltersPage';
|
||||
import { CommentsPage } from '../pages/adf/commentsPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
@@ -34,7 +31,7 @@ describe('Comment component for Processes', () => {
|
||||
const commentsPage = new CommentsPage();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
let user, tenantId, appId, processInstanceId, addedComment;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
@@ -21,11 +21,7 @@ import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { CommentsPage } from '../pages/adf/commentsPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
@@ -37,7 +33,7 @@ describe('Comment component for Processes', () => {
|
||||
const taskPage = new TasksPage();
|
||||
const commentsPage = new CommentsPage();
|
||||
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
let user, tenantId, appId, secondUser, newTaskId;
|
||||
|
||||
const taskName = {
|
||||
|
@@ -21,9 +21,6 @@ import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { ProcessFiltersPage } from '../pages/adf/process-services/processFiltersPage';
|
||||
import { FiltersPage } from '../pages/adf/process-services/filtersPage';
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
@@ -37,7 +34,7 @@ describe('Sorting for process filters', () => {
|
||||
|
||||
const apps = new AppsActions();
|
||||
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
let tenantId, appId, user, processesQuery;
|
||||
|
||||
const processFilter = {
|
||||
|
@@ -20,13 +20,9 @@ import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { TaskListDemoPage } from '../pages/adf/demo-shell/process-services/taskListDemoPage';
|
||||
import { PaginationPage, DateUtil } from '@alfresco/adf-testing';
|
||||
import moment = require('moment');
|
||||
|
||||
import { Tenant } from '../models/APS/tenant';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
import { Util } from '../util/util';
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { AppsRuntimeActions } from '../actions/APS/appsRuntime.actions';
|
||||
@@ -39,9 +35,9 @@ describe('Start Task - Custom App', () => {
|
||||
const taskListSinglePage = new TaskListDemoPage();
|
||||
const paginationPage = new PaginationPage();
|
||||
let processUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
let appRuntime, secondAppRuntime;
|
||||
const secondApp = resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const secondApp = browser.params.resources.Files.WIDGETS_SMOKE_TEST;
|
||||
let appModel, secondAppModel;
|
||||
const completedTasks = [];
|
||||
const paginationTasksName = ['t01', 't02', 't03', 't04', 't05', 't06', 't07', 't08', 't09', 't10', 't11', 't12', 't13', 'taskOne', 'taskTwo', 'taskOne'];
|
||||
|
@@ -19,10 +19,7 @@ import { LoginPage, Widget, DatePickerPage, DateUtil } from '@alfresco/adf-testi
|
||||
import { ProcessFiltersPage } from '../pages/adf/process-services/processFiltersPage';
|
||||
import { ProcessServiceTabBarPage } from '../pages/adf/process-services/processServiceTabBarPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -62,7 +59,7 @@ describe('Dynamic Table', () => {
|
||||
});
|
||||
|
||||
describe('Date Picker', () => {
|
||||
const app = resources.Files.DYNAMIC_TABLE_APP;
|
||||
const app = browser.params.resources.Files.DYNAMIC_TABLE_APP;
|
||||
|
||||
const randomText = {
|
||||
date: '12/12/2012',
|
||||
@@ -136,7 +133,7 @@ describe('Dynamic Table', () => {
|
||||
});
|
||||
|
||||
describe('Required Dropdown', () => {
|
||||
const app = resources.Files.APP_DYNAMIC_TABLE_DROPDOWN;
|
||||
const app = browser.params.resources.Files.APP_DYNAMIC_TABLE_DROPDOWN;
|
||||
const dropdown = widget.dropdown();
|
||||
|
||||
beforeAll(async () => {
|
||||
|
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
@@ -24,7 +23,6 @@ import { ProcessFiltersPage } from '../pages/adf/process-services/processFilters
|
||||
import { ProcessDetailsPage } from '../pages/adf/process-services/processDetailsPage';
|
||||
import { ProcessListPage } from '../pages/adf/process-services/processListPage';
|
||||
import { StartProcessPage } from '../pages/adf/process-services/startProcessPage';
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -39,8 +37,8 @@ describe('Empty Process List Test', () => {
|
||||
const processListPage = new ProcessListPage();
|
||||
const startProcessPage = new StartProcessPage();
|
||||
|
||||
const appA = resources.Files.APP_WITH_PROCESSES;
|
||||
const appB = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const appA = browser.params.resources.Files.APP_WITH_PROCESSES;
|
||||
const appB = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
|
||||
let user;
|
||||
|
||||
|
@@ -21,9 +21,6 @@ import { StartProcessPage } from '../pages/adf/process-services/startProcessPage
|
||||
import { ProcessDetailsPage } from '../pages/adf/process-services/processDetailsPage';
|
||||
import { TaskDetailsPage } from '../pages/adf/process-services/taskDetailsPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -34,7 +31,7 @@ describe('Form widgets - People', () => {
|
||||
|
||||
const loginPage = new LoginPage();
|
||||
let processUserModel;
|
||||
const app = resources.Files.APP_WITH_USER_WIDGET;
|
||||
const app = browser.params.resources.Files.APP_WITH_USER_WIDGET;
|
||||
const processFiltersPage = new ProcessFiltersPage();
|
||||
let appModel;
|
||||
let alfrescoJsApi;
|
||||
|
@@ -17,15 +17,10 @@
|
||||
|
||||
import { LoginPage, BrowserActions, Widget } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import FormDefinitionModel = require('../models/APS/FormDefinitionModel');
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -42,7 +37,7 @@ describe('Form widgets', () => {
|
||||
const widget = new Widget();
|
||||
|
||||
describe('Form widgets', () => {
|
||||
const app = resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const app = browser.params.resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const appFields = app.form_fields;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -201,7 +196,7 @@ describe('Form widgets', () => {
|
||||
describe('with fields involving other people', () => {
|
||||
|
||||
const appsActions = new AppsActions();
|
||||
const app = resources.Files.FORM_ADF;
|
||||
const app = browser.params.resources.Files.FORM_ADF;
|
||||
let deployedApp, process;
|
||||
const appFields = app.form_fields;
|
||||
|
||||
|
@@ -20,9 +20,6 @@ import { PaginationPage } from '@alfresco/adf-testing';
|
||||
import { ProcessFiltersPage } from '../pages/adf/process-services/processFiltersPage';
|
||||
import { ProcessDetailsPage } from '../pages/adf/process-services/processDetailsPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -41,7 +38,7 @@ describe('Process List - Pagination when adding processes', () => {
|
||||
const processDetailsPage = new ProcessDetailsPage();
|
||||
|
||||
let processUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const nrOfProcesses = 25;
|
||||
let page, totalPages;
|
||||
let i;
|
||||
|
@@ -19,14 +19,10 @@ import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { PaginationPage } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
|
||||
import resources = require('../util/resources');
|
||||
import { browser } from 'protractor';
|
||||
|
||||
describe('Items per page set to 15 and adding of tasks', () => {
|
||||
@@ -36,7 +32,7 @@ describe('Items per page set to 15 and adding of tasks', () => {
|
||||
const paginationPage = new PaginationPage();
|
||||
|
||||
let processUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
let currentPage = 1;
|
||||
const nrOfTasks = 25;
|
||||
const totalPages = 2;
|
||||
|
@@ -19,14 +19,9 @@ import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { Tenant } from '../models/APS/tenant';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import fs = require('fs');
|
||||
@@ -37,7 +32,7 @@ describe('People component', () => {
|
||||
const loginPage = new LoginPage();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
let processUserModel, assigneeUserModel, secondAssigneeUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const taskPage = new TasksPage();
|
||||
const peopleTitle = 'People this task is shared with ';
|
||||
const processServices = new ProcessServicesPage();
|
||||
|
@@ -21,9 +21,6 @@ import { ProcessDetailsPage } from '../pages/adf/process-services/processDetails
|
||||
import { AttachmentListPage } from '../pages/adf/process-services/attachmentListPage';
|
||||
import { ViewerPage } from '../pages/adf/viewerPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
@@ -38,10 +35,10 @@ describe('Attachment list action menu for processes', () => {
|
||||
const attachmentListPage = new AttachmentListPage();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
const viewerPage = new ViewerPage();
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const pngFile = new FileModel({
|
||||
location: resources.Files.ADF_DOCUMENTS.PNG.file_location,
|
||||
name: resources.Files.ADF_DOCUMENTS.PNG.file_name
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location,
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name
|
||||
});
|
||||
|
||||
const downloadedPngFile = pngFile.name;
|
||||
|
@@ -15,10 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import resources = require('../util/resources');
|
||||
import { LoginPage, BrowserActions } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
import { StartProcessPage } from '../pages/adf/process-services/startProcessPage';
|
||||
import { ProcessFiltersPage } from '../pages/adf/process-services/processFiltersPage';
|
||||
@@ -44,7 +42,7 @@ describe('Process Filters Test', () => {
|
||||
const processDetailsPage = new ProcessDetailsPage();
|
||||
let appModel;
|
||||
|
||||
const app = resources.Files.APP_WITH_DATE_FIELD_FORM;
|
||||
const app = browser.params.resources.Files.APP_WITH_DATE_FIELD_FORM;
|
||||
|
||||
const processTitle = {
|
||||
running: 'Test_running',
|
||||
|
@@ -16,11 +16,9 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
import resources = require('../util/resources');
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
@@ -39,7 +37,7 @@ describe('Process Instance Details', () => {
|
||||
const processDetailsPage = new ProcessDetailsPage();
|
||||
|
||||
let appModel, process, user;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const PROCESS_DATE_FORMAT = 'mmm d, yyyy';
|
||||
|
||||
beforeAll(async () => {
|
||||
|
@@ -17,10 +17,7 @@
|
||||
|
||||
import { LoginPage, BrowserActions } from '@alfresco/adf-testing';
|
||||
import { ProcessListDemoPage } from '../pages/adf/demo-shell/process-services/processListDemoPage';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -30,8 +27,8 @@ describe('Process List Test', () => {
|
||||
const loginPage = new LoginPage();
|
||||
const processListDemoPage = new ProcessListDemoPage();
|
||||
|
||||
const appWithDateField = resources.Files.APP_WITH_DATE_FIELD_FORM;
|
||||
const appWithUserWidget = resources.Files.APP_WITH_USER_WIDGET;
|
||||
const appWithDateField = browser.params.resources.Files.APP_WITH_DATE_FIELD_FORM;
|
||||
const appWithUserWidget = browser.params.resources.Files.APP_WITH_USER_WIDGET;
|
||||
let appDateModel, appUserWidgetModel, user;
|
||||
|
||||
const processList = ['Process With Date', 'Process With Date 2', 'Process With User Widget', 'Process With User Widget 2'];
|
||||
|
@@ -20,10 +20,7 @@ import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { PaginationPage } from '@alfresco/adf-testing';
|
||||
import { ProcessFiltersPage } from '../pages/adf/process-services/processFiltersPage';
|
||||
import { ProcessDetailsPage } from '../pages/adf/process-services/processDetailsPage';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -51,7 +48,7 @@ describe('Process List - Pagination', () => {
|
||||
const processDetailsPage = new ProcessDetailsPage();
|
||||
let deployedTestApp;
|
||||
let processUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const nrOfProcesses = 20;
|
||||
let page;
|
||||
let totalPages;
|
||||
|
@@ -19,11 +19,8 @@ import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { PaginationPage } from '@alfresco/adf-testing';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
import { Util } from '../util/util';
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
@@ -36,7 +33,7 @@ describe('Task List Pagination - Sorting', () => {
|
||||
const taskPage = new TasksPage();
|
||||
const paginationPage = new PaginationPage();
|
||||
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const nrOfTasks = 20;
|
||||
let processUserModel;
|
||||
const taskNameBase = 'Task';
|
||||
|
@@ -20,14 +20,9 @@ import { browser } from 'protractor';
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { Tenant } from '../models/APS/tenant';
|
||||
import Task = require('../models/APS/Task');
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import fs = require('fs');
|
||||
@@ -38,7 +33,7 @@ describe('Start Task - Task App', () => {
|
||||
const loginPage = new LoginPage();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
let processUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const taskPage = new TasksPage();
|
||||
const tasks = ['Standalone task', 'Completed standalone task', 'Add a form', 'Remove form'];
|
||||
const noFormMessage = 'No forms attached';
|
||||
|
@@ -15,7 +15,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import resources = require('../util/resources');
|
||||
import CONSTANTS = require('../util/constants');
|
||||
import { LoginPage, StartProcessDialog, Widget, FileBrowserUtil } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
@@ -27,13 +26,10 @@ import { ProcessDetailsPage } from '../pages/adf/process-services/processDetails
|
||||
import { AttachmentListPage } from '../pages/adf/process-services/attachmentListPage';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { browser } from 'protractor';
|
||||
|
||||
import { User } from '../models/APS/user';
|
||||
import { Tenant } from '../models/APS/tenant';
|
||||
|
||||
import { FileModel } from '../models/ACS/fileModel';
|
||||
import dateFormat = require('dateformat');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { StringUtil } from '@alfresco/adf-testing';
|
||||
|
||||
@@ -50,9 +46,9 @@ describe('Start Process Component', () => {
|
||||
const startProcessDialog = new StartProcessDialog();
|
||||
const apps = new AppsActions();
|
||||
const widget = new Widget();
|
||||
const app = resources.Files.APP_WITH_PROCESSES;
|
||||
const simpleApp = resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const dateFormApp = resources.Files.APP_WITH_DATE_FIELD_FORM;
|
||||
const app = browser.params.resources.Files.APP_WITH_PROCESSES;
|
||||
const simpleApp = browser.params.resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const dateFormApp = browser.params.resources.Files.APP_WITH_DATE_FIELD_FORM;
|
||||
let appId, procUserModel, secondProcUserModel, tenantId, simpleAppCreated, dateFormAppCreated;
|
||||
const processModelWithSe = 'process_with_se', processModelWithoutSe = 'process_without_se';
|
||||
const processName255Characters = StringUtil.generateRandomString(255);
|
||||
@@ -62,8 +58,8 @@ describe('Start Process Component', () => {
|
||||
const auditLogFile = 'Audit.pdf';
|
||||
|
||||
const jpgFile = new FileModel({
|
||||
'location': resources.Files.ADF_DOCUMENTS.JPG.file_location,
|
||||
'name': resources.Files.ADF_DOCUMENTS.JPG.file_name
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.JPG.file_location,
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.JPG.file_name
|
||||
});
|
||||
|
||||
beforeAll(async () => {
|
||||
|
@@ -22,14 +22,9 @@ import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { AttachmentListPage } from '../pages/adf/process-services/attachmentListPage';
|
||||
import { ProcessServiceTabBarPage } from '../pages/adf/process-services/processServiceTabBarPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import { Tenant } from '../models/APS/tenant';
|
||||
|
||||
import { FileModel } from '../models/ACS/fileModel';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -44,7 +39,7 @@ describe('Start Task - Custom App', () => {
|
||||
const processServiceTabBarPage = new ProcessServiceTabBarPage();
|
||||
|
||||
let processUserModel, assigneeUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const formTextField = app.form_fields.form_fieldId;
|
||||
const formFieldValue = 'First value ';
|
||||
const taskPage = new TasksPage();
|
||||
@@ -53,8 +48,8 @@ describe('Start Task - Custom App', () => {
|
||||
const showHeaderTask = 'Show Header';
|
||||
let appModel;
|
||||
const pngFile = new FileModel({
|
||||
'location': resources.Files.ADF_DOCUMENTS.PNG.file_location,
|
||||
'name': resources.Files.ADF_DOCUMENTS.PNG.file_name
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location,
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name
|
||||
});
|
||||
|
||||
beforeAll(async () => {
|
||||
|
@@ -15,22 +15,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { by } from 'protractor';
|
||||
|
||||
import { by, browser } from 'protractor';
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { AttachmentListPage } from '../pages/adf/process-services/attachmentListPage';
|
||||
import { ProcessServiceTabBarPage } from '../pages/adf/process-services/processServiceTabBarPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { Tenant } from '../models/APS/tenant';
|
||||
import { FileModel } from '../models/ACS/fileModel';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { StringUtil } from '@alfresco/adf-testing';
|
||||
@@ -46,7 +39,7 @@ describe('Start Task - Task App', () => {
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
|
||||
let processUserModel, assigneeUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const formTextField = app.form_fields.form_fieldId;
|
||||
const formFieldValue = 'First value ';
|
||||
const taskPage = new TasksPage();
|
||||
@@ -57,8 +50,8 @@ describe('Start Task - Task App', () => {
|
||||
const tasks = ['Modifying task', 'Information box', 'No form', 'Not Created', 'Refreshing form', 'Assignee task', 'Attach File'];
|
||||
const showHeaderTask = 'Show Header';
|
||||
const jpgFile = new FileModel({
|
||||
'location': resources.Files.ADF_DOCUMENTS.JPG.file_location,
|
||||
'name': resources.Files.ADF_DOCUMENTS.JPG.file_name
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.JPG.file_location,
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.JPG.file_name
|
||||
});
|
||||
|
||||
beforeAll(async () => {
|
||||
|
@@ -16,20 +16,14 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
|
||||
import { LoginPage, FileBrowserUtil } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { AttachmentListPage } from '../pages/adf/process-services/attachmentListPage';
|
||||
import { ViewerPage } from '../pages/adf/viewerPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import path = require('path');
|
||||
import fs = require('fs');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
@@ -42,10 +36,10 @@ describe('Attachment list action menu for tasks', () => {
|
||||
const taskPage = new TasksPage();
|
||||
const attachmentListPage = new AttachmentListPage();
|
||||
const viewerPage = new ViewerPage();
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const pngFile = new FileModel({
|
||||
location: resources.Files.ADF_DOCUMENTS.PNG.file_location,
|
||||
name: resources.Files.ADF_DOCUMENTS.PNG.file_name
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_location,
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name
|
||||
});
|
||||
const downloadedPngFile = pngFile.name;
|
||||
let tenantId, appId, relatedContent, relatedContentId;
|
||||
|
@@ -18,14 +18,9 @@
|
||||
import { LoginPage, BrowserActions, FileBrowserUtil } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { Tenant } from '../models/APS/tenant';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
@@ -34,7 +29,7 @@ describe('Task Audit', () => {
|
||||
|
||||
const loginPage = new LoginPage();
|
||||
let processUserModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const taskPage = new TasksPage();
|
||||
const processServices = new ProcessServicesPage();
|
||||
const taskTaskApp = 'Audit task task app';
|
||||
|
@@ -26,13 +26,10 @@ import { TasksListPage } from '../pages/adf/process-services/tasksListPage';
|
||||
import { TaskDetailsPage } from '../pages/adf/process-services/taskDetailsPage';
|
||||
import { FiltersPage } from '../pages/adf/process-services/filtersPage';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
|
||||
import { StandaloneTask } from '../models/APS/standaloneTask';
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { FormModelActions } from '../actions/APS/formModel.actions';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
describe('Task Details - Form', () => {
|
||||
const loginPage = new LoginPage();
|
||||
@@ -186,7 +183,7 @@ describe('Task Details - Form', () => {
|
||||
const formActions = new FormModelActions();
|
||||
|
||||
beforeAll(async () => {
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const apps = new AppsActions();
|
||||
await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
|
||||
});
|
||||
@@ -194,7 +191,7 @@ describe('Task Details - Form', () => {
|
||||
beforeEach(async () => {
|
||||
newTask = await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: StringUtil.generateRandomString() });
|
||||
const form = await formActions.getFormByName(this.alfrescoJsApi,
|
||||
resources.Files.SIMPLE_APP_WITH_USER_FORM.visibilityTabForm.formName);
|
||||
browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM.visibilityTabForm.formName);
|
||||
await this.alfrescoJsApi.activiti.taskApi.attachForm(newTask.id, { 'formId': form.id });
|
||||
|
||||
await (await new NavigationBarPage().navigateToProcessServicesPage()).goToTaskApp();
|
||||
|
@@ -18,14 +18,9 @@
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { Tenant } from '../models/APS/tenant';
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
@@ -35,7 +30,7 @@ describe('Task Details - No form', () => {
|
||||
const loginPage = new LoginPage();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
let processUserModel;
|
||||
const app = resources.Files.NO_FORM_APP;
|
||||
const app = browser.params.resources.Files.NO_FORM_APP;
|
||||
const taskPage = new TasksPage();
|
||||
const noFormMessage = 'No forms attached';
|
||||
const apps = new AppsActions();
|
||||
|
@@ -23,11 +23,8 @@ import TaskModel = require('../models/APS/TaskModel');
|
||||
import FormModel = require('../models/APS/FormModel');
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
|
||||
import resources = require('../util/resources');
|
||||
import CONSTANTS = require('../util/constants');
|
||||
import dateFormat = require('dateformat');
|
||||
|
||||
import { LoginPage, BrowserActions, StringUtil } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { browser } from 'protractor';
|
||||
@@ -36,7 +33,7 @@ describe('Task Details component', () => {
|
||||
|
||||
const processServices = new ProcessServicesPage();
|
||||
let processUserModel, appModel;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const tasks = ['Modifying task', 'Information box', 'No form', 'Not Created', 'Refreshing form', 'Assignee task', 'Attach File'];
|
||||
const TASK_DATE_FORMAT = 'mmm d, yyyy';
|
||||
let formModel;
|
||||
|
@@ -15,8 +15,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
@@ -26,7 +24,6 @@ import { TaskDetailsPage } from '../pages/adf/process-services/taskDetailsPage';
|
||||
import { ProcessServiceTabBarPage } from '../pages/adf/process-services/processServiceTabBarPage';
|
||||
import { AppSettingsToggles } from '../pages/adf/process-services/dialog/appSettingsToggles';
|
||||
import { TaskFiltersDemoPage } from '../pages/adf/demo-shell/process-services/taskFiltersDemoPage';
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi, UserProcessInstanceFilterRepresentation } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -44,7 +41,7 @@ describe('Task', () => {
|
||||
const taskDetailsPage = new TaskDetailsPage();
|
||||
const taskFiltersDemoPage = new TaskFiltersDemoPage();
|
||||
|
||||
const app = resources.Files.APP_WITH_DATE_FIELD_FORM;
|
||||
const app = browser.params.resources.Files.APP_WITH_DATE_FIELD_FORM;
|
||||
let appId, tenantId;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -229,7 +226,7 @@ describe('Task', () => {
|
||||
|
||||
let taskFilterId;
|
||||
|
||||
const app = resources.Files.APP_WITH_PROCESSES;
|
||||
const app = browser.params.resources.Files.APP_WITH_PROCESSES;
|
||||
|
||||
beforeAll(async () => {
|
||||
const apps = new AppsActions();
|
||||
|
@@ -15,7 +15,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import resources = require('../util/resources');
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
@@ -23,7 +22,6 @@ import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { TasksListPage } from '../pages/adf/process-services/tasksListPage';
|
||||
import { TaskDetailsPage } from '../pages/adf/process-services/taskDetailsPage';
|
||||
import { TaskFiltersDemoPage } from '../pages/adf/demo-shell/process-services/taskFiltersDemoPage';
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi, UserProcessInstanceFilterRepresentation } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -43,7 +41,7 @@ describe('Task Filters Sorting', () => {
|
||||
let appId;
|
||||
let importedApp;
|
||||
|
||||
const app = resources.Files.APP_WITH_PROCESSES;
|
||||
const app = browser.params.resources.Files.APP_WITH_PROCESSES;
|
||||
|
||||
const tasks = [
|
||||
{ name: 'Task 1 Completed', dueDate: '01/01/2019' },
|
||||
|
@@ -19,12 +19,8 @@ import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { PaginationPage } from '@alfresco/adf-testing';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
@@ -37,7 +33,7 @@ describe('Task List Pagination', () => {
|
||||
const paginationPage = new PaginationPage();
|
||||
|
||||
let processUserModel, processUserModelEmpty;
|
||||
const app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
const app = browser.params.resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
let currentPage = 1;
|
||||
const nrOfTasks = 20;
|
||||
let totalPages;
|
||||
|
@@ -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