mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
Fix e2e (#6087)
* fix protractor conf * remove update env * fix cli error script cs * change screenshot plugin * remove unused param * fix * fix * fix * moment comment nvm * fix * fix * fix * fix * remove adf redirect * fix * fix * save remote report * report fix * improve save result * fix folder save * fix folder save * fix placeholder pointer , they needs refactor later * fix * fix lint * fix * remove test already covered by unit fix the test in core needed exclude the one impossible to make it works without APS basic support * lint * fix some logout missing * fix * Fix the custom-tasks-filters.e2e * fix lint * fix * fix * fix * Fix wait on start process and on process definition options * Fix logout before login again * fix uplaod test * fix * Fix infodrawer with check detail and sleep * lint * increase list of excluded test * fix * fix lint * change wait method datatable * fix * fix * revert check value * fix * fix * change tag test Co-authored-by: maurizio vitale <maurizio.vitale@alfresco.com>
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
import {
|
||||
ApiService,
|
||||
ApplicationsUtil,
|
||||
BrowserActions,
|
||||
LoginPage,
|
||||
ProcessUtil,
|
||||
UsersActions,
|
||||
@@ -44,12 +43,12 @@ describe('Form widgets', () => {
|
||||
|
||||
const newTask = 'First task';
|
||||
let processUserModel;
|
||||
let appModel;
|
||||
let appModelWidget;
|
||||
|
||||
describe('Form widgets', () => {
|
||||
|
||||
const app = browser.params.resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const appFields = app.form_fields;
|
||||
const appWidget = browser.params.resources.Files.WIDGETS_SMOKE_TEST;
|
||||
const appFields = appWidget.form_fields;
|
||||
|
||||
beforeAll(async () => {
|
||||
await apiService.getInstance().login(browser.params.testConfig.admin.email, browser.params.testConfig.admin.password);
|
||||
@@ -58,17 +57,17 @@ describe('Form widgets', () => {
|
||||
|
||||
await apiService.getInstance().login(processUserModel.email, processUserModel.password);
|
||||
|
||||
appModel = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appModelWidget = await applicationsService.importPublishDeployApp(appWidget.file_path);
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
|
||||
await (await new NavigationBarPage().navigateToProcessServicesPage()).goToApp(appModel.name);
|
||||
await (await new NavigationBarPage().navigateToProcessServicesPage()).goToApp(appModelWidget.name);
|
||||
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
const task = await taskPage.createNewTask();
|
||||
await task.addName(newTask);
|
||||
await task.addDescription('Description');
|
||||
await task.selectForm(app.formName);
|
||||
await task.selectForm(appWidget.formName);
|
||||
await task.clickStartButton();
|
||||
|
||||
await taskPage.tasksListPage().checkContentIsDisplayed(newTask);
|
||||
@@ -83,9 +82,11 @@ describe('Form widgets', () => {
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await new NavigationBarPage().clickLogoutButton();
|
||||
await apiService.getInstance().login(browser.params.testConfig.admin.email, browser.params.testConfig.admin.password);
|
||||
|
||||
await apiService.getInstance().activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
|
||||
await apiService.getInstance().logout();
|
||||
});
|
||||
|
||||
it('[C272778] Should display text and multi-line in form', async () => {
|
||||
@@ -193,8 +194,9 @@ describe('Form widgets', () => {
|
||||
|
||||
describe('with fields involving other people', () => {
|
||||
const app = browser.params.resources.Files.FORM_ADF;
|
||||
let deployedApp, process;
|
||||
let process;
|
||||
const appFields = app.form_fields;
|
||||
let appModel;
|
||||
|
||||
beforeAll(async () => {
|
||||
await apiService.getInstance().login(browser.params.testConfig.admin.email, browser.params.testConfig.admin.password);
|
||||
@@ -204,18 +206,14 @@ describe('Form widgets', () => {
|
||||
await apiService.getInstance().login(processUserModel.email, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
const processUtil = new ProcessUtil(apiService);
|
||||
process = await processUtil.startProcessOfApp(appModel.name);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
const urlToNavigateTo = `${browser.baseUrl}/activiti/apps/${deployedApp.id}/tasks/`;
|
||||
await BrowserActions.getUrl(urlToNavigateTo);
|
||||
await (await new NavigationBarPage().navigateToProcessServicesPage()).goToApp(appModel.name);
|
||||
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
await taskPage.formFields().checkFormIsDisplayed();
|
||||
});
|
||||
|
Reference in New Issue
Block a user