-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync features and bugfixs from 94b20ac (#1656)
- Loading branch information
Showing
650 changed files
with
13,845 additions
and
4,580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1fc429fc05d35d58ca7af09292ec641530ff066f | ||
94b20ac373f4b4b2b76a4023a3f2e369eb193d91 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
packages/engage-voice-widget/components/ActivityCallLogPanel/ActivityCallLogPanel.ut.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { StepFunction } from 'crius-test'; | ||
|
||
import { getCurrentRouteId } from '../../../salesforce-engage-voice/test/utils/getCurrentRouteId'; | ||
import { ActivityCallLogPage } from '../../containers/ActivityCallLogPage'; | ||
import { moduleUIPageMount } from '../../test/utils'; | ||
|
||
export const UTActivityCallLogPanel: StepFunction<any, any> = async ( | ||
props, | ||
context, | ||
) => { | ||
const id = getCurrentRouteId(context.phone.routerInteraction.currentPath); | ||
|
||
const wrapper = moduleUIPageMount(ActivityCallLogPage, { id }); | ||
|
||
let index = 0; | ||
|
||
if (props.menuType === 'whatid') { | ||
index = 1; | ||
} | ||
|
||
const getSelectList = () => { | ||
return wrapper | ||
.find('EditLogSection') | ||
.find('CallLogFields') | ||
.find('FieldItem') | ||
.find('SelectList') | ||
.at(index); | ||
}; | ||
|
||
const openField = getSelectList() | ||
.find('[data-sign="select-list-open"]') | ||
.at(0); | ||
|
||
openField.simulate('click'); | ||
|
||
const addMenuIcon = getSelectList().find( | ||
'RcIconButton[data-sign="addEntityMenu"]', | ||
); | ||
|
||
addMenuIcon.simulate('click'); | ||
|
||
const menuItems = getSelectList().find('RcMenuItem'); | ||
|
||
const entityName = props.entityName.toLowerCase(); | ||
menuItems.find(`[title="Create ${entityName}"]`).simulate('click'); | ||
wrapper.unmount(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
packages/engage-voice-widget/components/ActivityCallLogPanel/i18n/en-US.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.