mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[no-issue] improve e2e timeout and names apps (#4604)
* fix sso, change timeout, parallel * cange travis * split viewer test * timeot fix * move name apps in resources file * resources fix * resources fix * fix search default * fix sso test * fix test
This commit is contained in:
@@ -24,6 +24,7 @@ import { GroupCloudComponentPage, PeopleCloudComponentPage } from '@alfresco/adf
|
||||
import { browser } from 'protractor';
|
||||
import { LoginSSOPage, IdentityService, GroupIdentityService, RolesService, ApiService } from '@alfresco/adf-testing';
|
||||
import CONSTANTS = require('../util/constants');
|
||||
import resources = require('../util/resources');
|
||||
|
||||
describe('People Groups Cloud Component', () => {
|
||||
|
||||
@@ -61,7 +62,7 @@ describe('People Groups Cloud Component', () => {
|
||||
identityService = new IdentityService(apiService);
|
||||
rolesService = new RolesService(apiService);
|
||||
groupIdentityService = new GroupIdentityService(apiService);
|
||||
clientId = await groupIdentityService.getClientIdByApplicationName('simple-app');
|
||||
clientId = await groupIdentityService.getClientIdByApplicationName(resources.ACTIVITI7_APPS.SIMPLE_APP);
|
||||
groupActiviti = await groupIdentityService.createIdentityGroup();
|
||||
clientActivitiAdminRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, CONSTANTS.ROLES.ACTIVITI_ADMIN);
|
||||
clientActivitiUserRoleId = await rolesService.getClientRoleIdByRoleName(groupActiviti.id, clientId, CONSTANTS.ROLES.ACTIVITI_USER);
|
||||
@@ -269,7 +270,7 @@ describe('People Groups Cloud Component', () => {
|
||||
it('[C305041] Should filter the People Single Selection with the Application name filter', () => {
|
||||
peopleGroupCloudComponentPage.checkPeopleCloudSingleSelectionIsSelected();
|
||||
peopleGroupCloudComponentPage.clickPeopleFilerByApp();
|
||||
peopleGroupCloudComponentPage.enterPeopleAppName('simple-app');
|
||||
peopleGroupCloudComponentPage.enterPeopleAppName(resources.ACTIVITI7_APPS.SIMPLE_APP);
|
||||
peopleCloudComponent.searchAssignee(`${activitiUser.firstName}`);
|
||||
peopleCloudComponent.checkUserIsDisplayed(`${activitiUser.firstName}` + ' ' + `${activitiUser.lastName}`);
|
||||
peopleCloudComponent.selectAssigneeFromList(`${activitiUser.firstName}` + ' ' + `${activitiUser.lastName}`);
|
||||
@@ -280,7 +281,7 @@ describe('People Groups Cloud Component', () => {
|
||||
it('[C305041] Should filter the People Multiple Selection with the Application name filter', () => {
|
||||
peopleGroupCloudComponentPage.clickPeopleCloudMultipleSelection();
|
||||
peopleGroupCloudComponentPage.clickPeopleFilerByApp();
|
||||
peopleGroupCloudComponentPage.enterPeopleAppName('simple-app');
|
||||
peopleGroupCloudComponentPage.enterPeopleAppName(resources.ACTIVITI7_APPS.SIMPLE_APP);
|
||||
peopleCloudComponent.searchAssignee(`${apsUser.firstName}`);
|
||||
peopleCloudComponent.checkUserIsDisplayed(`${apsUser.firstName}` + ' ' + `${apsUser.lastName}`);
|
||||
peopleCloudComponent.selectAssigneeFromList(`${apsUser.firstName}` + ' ' + `${apsUser.lastName}`);
|
||||
@@ -298,7 +299,7 @@ describe('People Groups Cloud Component', () => {
|
||||
it('[C305041] Should filter the Groups Single Selection with the Application name filter', () => {
|
||||
peopleGroupCloudComponentPage.clickGroupCloudSingleSelection();
|
||||
peopleGroupCloudComponentPage.clickGroupFilerByApp();
|
||||
peopleGroupCloudComponentPage.enterGroupAppName('simple-app');
|
||||
peopleGroupCloudComponentPage.enterGroupAppName(resources.ACTIVITI7_APPS.SIMPLE_APP);
|
||||
groupCloudComponentPage.searchGroups(`${groupActiviti.name}`);
|
||||
groupCloudComponentPage.checkGroupIsDisplayed(`${groupActiviti.name}`);
|
||||
groupCloudComponentPage.selectGroupFromList(`${groupActiviti.name}`);
|
||||
@@ -308,7 +309,7 @@ describe('People Groups Cloud Component', () => {
|
||||
it('[C305041] Should filter the Groups Multiple Selection with the Application name filter', () => {
|
||||
peopleGroupCloudComponentPage.clickGroupCloudMultipleSelection();
|
||||
peopleGroupCloudComponentPage.clickGroupFilerByApp();
|
||||
peopleGroupCloudComponentPage.enterGroupAppName('simple-app');
|
||||
peopleGroupCloudComponentPage.enterGroupAppName(resources.ACTIVITI7_APPS.SIMPLE_APP);
|
||||
groupCloudComponentPage.searchGroups(`${groupAps.name}`);
|
||||
groupCloudComponentPage.checkGroupIsDisplayed(`${groupAps.name}`);
|
||||
groupCloudComponentPage.selectGroupFromList(`${groupAps.name}`);
|
||||
|
Reference in New Issue
Block a user