Skip to content
Snippets Groups Projects
Commit 9f5076a9 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

chore(dashboard-card): add data-test attributes

parent a157387c
No related branches found
No related tags found
No related merge requests found
...@@ -26,12 +26,12 @@ const EditorInChiefActions = ({ ...@@ -26,12 +26,12 @@ const EditorInChiefActions = ({
const handlingEditor = getHandlingEditor() const handlingEditor = getHandlingEditor()
return ( return (
<Root> <Root>
<HEActions> <HEActions data-test="eic-assign">
{handlingEditor ? ( {handlingEditor ? (
<HEActions> <HEActions>
<HEName>{get(handlingEditor, 'name')}</HEName> <HEName>{get(handlingEditor, 'name')}</HEName>
{!handlingEditor.hasAnswer && ( {!handlingEditor.hasAnswer && (
<HEActions> <HEActions data-test="eic-after-assign">
<div onClick={showConfirmModal('resend')}> <div onClick={showConfirmModal('resend')}>
<Icon color={theme.colorPrimary}>refresh-cw</Icon> <Icon color={theme.colorPrimary}>refresh-cw</Icon>
</div> </div>
......
...@@ -27,7 +27,7 @@ const DeclineModal = compose( ...@@ -27,7 +27,7 @@ const DeclineModal = compose(
placeholder="Decline reason (optional)" placeholder="Decline reason (optional)"
value={reason} value={reason}
/> />
<div> <div data-test="he-buttons">
<Button onClick={hideModal}>Cancel</Button> <Button onClick={hideModal}>Cancel</Button>
<Button onClick={onConfirm(reason)} primary> <Button onClick={onConfirm(reason)} primary>
Decline Decline
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment