mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[NO-ISSUE] Fix e2e test (#4621)
* fix sso, change timeout, parallel * cange travis * move name apps in resources file * resources fix * resources fix * add sleep before search group * add possibility to extend duration of snack-bar message from configuration * fix unit test * fix unit test * remove timeout * change timeout * decrease message time * add lint main branch travis * reduce timeout * add new check application presence * change permission script fix search selector * fix travis conf * check app environment and upload the app if abbsent * fix cloud test * remove duplicate * restore ps test * restore resources file * fix e2e test * process with variables missing * test new conf travis * fix lint * fix spellcheck * remove duplicate module * fix ps module * fix travis conf * change check activiti env * add concept of processes in resources
This commit is contained in:
@@ -21,7 +21,6 @@ import TestConfig = require('../test.config');
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
import { ProcessCloudDemoPage } from '../pages/adf/demo-shell/process-services/processCloudDemoPage';
|
||||
import { StringUtil } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import resources = require('../util/resources');
|
||||
|
||||
describe('Start Process', () => {
|
||||
@@ -37,16 +36,13 @@ describe('Start Process', () => {
|
||||
const processNameBiggerThen255Characters = StringUtil.generateRandomString(256);
|
||||
const lengthValidationError = 'Length exceeded, 255 characters max.';
|
||||
const requiredError = 'Process Name is required', requiredProcessError = 'Process Definition is required';
|
||||
const processDefinition = 'processwithvariables';
|
||||
const processWithVariables = resources.ACTIVITI7_APPS.SIMPLE_APP.processes.processwithvariables;
|
||||
const user = TestConfig.adf.adminEmail, password = TestConfig.adf.adminPassword;
|
||||
const simpleApp = resources.ACTIVITI7_APPS.SIMPLE_APP;
|
||||
let silentLogin;
|
||||
const simpleApp = resources.ACTIVITI7_APPS.SIMPLE_APP.name;
|
||||
|
||||
beforeAll((done) => {
|
||||
silentLogin = false;
|
||||
settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin);
|
||||
settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, false);
|
||||
loginSSOPage.clickOnSSOButton();
|
||||
browser.ignoreSynchronization = true;
|
||||
loginSSOPage.loginSSOIdentityService(user, password);
|
||||
navigationBarPage.navigateToProcessServicesCloudPage();
|
||||
appListCloudComponent.checkApsContainer();
|
||||
@@ -70,6 +66,7 @@ describe('Start Process', () => {
|
||||
});
|
||||
|
||||
it('[C291842] Should be displayed an error message if process name exceed 255 characters', () => {
|
||||
appListCloudComponent.checkAppIsDisplayed(simpleApp);
|
||||
appListCloudComponent.goToApp(simpleApp);
|
||||
processCloudDemoPage.openNewProcessForm();
|
||||
startProcessPage.enterProcessName(processName255Characters);
|
||||
@@ -110,7 +107,7 @@ describe('Start Process', () => {
|
||||
startProcessPage.blur(startProcessPage.processDefinition);
|
||||
startProcessPage.checkValidationErrorIsDisplayed(requiredProcessError);
|
||||
|
||||
startProcessPage.selectFromProcessDropdown(processDefinition);
|
||||
startProcessPage.selectFromProcessDropdown(processWithVariables);
|
||||
startProcessPage.checkStartProcessButtonIsEnabled();
|
||||
startProcessPage.clickStartProcessButton();
|
||||
processCloudDemoPage.clickOnProcessFilters();
|
||||
|
Reference in New Issue
Block a user