mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
exclude failing test before the revert of the time modify is finalized (#5794)
* exclude test * remove exclude and add more log power * fix * correct issue
This commit is contained in:
@@ -24,7 +24,7 @@ import {
|
||||
StringUtil,
|
||||
StartTasksCloudPage,
|
||||
TaskFormCloudComponent,
|
||||
StartProcessCloudPage
|
||||
StartProcessCloudPage, ProcessCloudWidgetPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { browser, by } from 'protractor';
|
||||
|
||||
@@ -44,6 +44,7 @@ describe('Task cloud visibility', async () => {
|
||||
const startProcessPage = new StartProcessCloudPage();
|
||||
const processCloudDemoPage = new ProcessCloudDemoPage();
|
||||
const loginSSOPage = new LoginSSOPage();
|
||||
const widget = new ProcessCloudWidgetPage();
|
||||
|
||||
const apiService = new ApiService();
|
||||
const identityService = new IdentityService(apiService);
|
||||
@@ -57,7 +58,7 @@ describe('Task cloud visibility', async () => {
|
||||
beforeAll(async () => {
|
||||
await apiService.login(browser.params.identityAdmin.email, browser.params.identityAdmin.password);
|
||||
|
||||
testUser = await identityService.createIdentityUserWithRole( [identityService.ROLES.ACTIVITI_USER]);
|
||||
testUser = await identityService.createIdentityUserWithRole([identityService.ROLES.ACTIVITI_USER]);
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
|
||||
@@ -146,13 +147,16 @@ describe('Task cloud visibility', async () => {
|
||||
await tasksCloudDemoPage.taskListCloudComponent().selectRow('boolean_visibility_task');
|
||||
await taskFormCloudComponent.clickClaimButton();
|
||||
|
||||
await browser.sleep(400);
|
||||
|
||||
await taskFormCloudComponent.formFields().checkWidgetIsVisible('Checkbox2');
|
||||
await taskFormCloudComponent.formFields().checkWidgetIsHidden('Checkbox3');
|
||||
await expect(await taskFormCloudComponent.formFields().isCompleteFormButtonEnabled()).toEqual(false);
|
||||
|
||||
await taskFormCloudComponent.formFields().clickField(by.id, 'Checkbox1');
|
||||
await taskFormCloudComponent.formFields().clickField(by.id, 'Checkbox2');
|
||||
await taskFormCloudComponent.formFields().checkWidgetIsVisible('Checkbox3');
|
||||
await widget.checkboxWidget().clickCheckboxInput('Checkbox1');
|
||||
await widget.checkboxWidget().clickCheckboxInput('Checkbox2');
|
||||
|
||||
await widget.checkboxWidget().isCheckboxDisplayed('Checkbox3');
|
||||
await expect(await taskFormCloudComponent.formFields().isCompleteFormButtonEnabled()).toEqual(true);
|
||||
|
||||
await taskFormCloudComponent.clickCompleteButton();
|
||||
@@ -172,9 +176,10 @@ describe('Task cloud visibility', async () => {
|
||||
await taskFormCloudComponent.formFields().checkWidgetIsHidden('Checkbox3');
|
||||
await expect(await taskFormCloudComponent.formFields().isCompleteFormButtonEnabled()).toEqual(false);
|
||||
|
||||
await taskFormCloudComponent.formFields().clickField(by.id, 'Checkbox1');
|
||||
await taskFormCloudComponent.formFields().clickField(by.id, 'Checkbox2');
|
||||
await taskFormCloudComponent.formFields().checkWidgetIsVisible('Checkbox3');
|
||||
await widget.checkboxWidget().clickCheckboxInput('Checkbox1');
|
||||
await widget.checkboxWidget().clickCheckboxInput('Checkbox2');
|
||||
|
||||
await widget.checkboxWidget().isCheckboxDisplayed('Checkbox3');
|
||||
await expect(await taskFormCloudComponent.formFields().isCompleteFormButtonEnabled()).toEqual(true);
|
||||
|
||||
await taskFormCloudComponent.clickCompleteButton();
|
||||
|
@@ -139,7 +139,6 @@ describe('Edit task filters and task list properties', () => {
|
||||
it('[C297476] Filter by taskName', async () => {
|
||||
await tasksCloudDemoPage.editTaskFilterCloudComponent().setTaskName(createdTask.entry.name);
|
||||
await expect(await tasksCloudDemoPage.editTaskFilterCloudComponent().getTaskName()).toEqual(createdTask.entry.name);
|
||||
await tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(createdTask.entry.name);
|
||||
await tasksCloudDemoPage.taskListCloudComponent().getRowsWithSameName(createdTask.entry.name).then(async (list) => {
|
||||
await expect(list.length).toEqual(1);
|
||||
});
|
||||
|
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"C290180": "https://issues.alfresco.com/jira/browse/ACS-364"
|
||||
}
|
||||
|
||||
|
@@ -35,8 +35,10 @@ const SCREENSHOT_PASSWORD = process.env.SCREENSHOT_PASSWORD || process.env.PASSW
|
||||
const SCREENSHOT_USERNAME = process.env.SCREENSHOT_USERNAME || process.env.USERNAME_ADF;
|
||||
|
||||
const EXTERNAL_ACS_HOST = process.env.EXTERNAL_ACS_HOST;
|
||||
const LOG_LEVEL = process.env.LOG_LEVEL || 'ERROR' ;
|
||||
|
||||
const appConfig = {
|
||||
"log": LOG_LEVEL,
|
||||
"ecmHost": HOST_ECM,
|
||||
"bpmHost": HOST_BPM,
|
||||
"identityHost": `${OAUTH_HOST}/auth/admin/realms/alfresco`,
|
||||
|
Reference in New Issue
Block a user