Skip to content

Commit

Permalink
fix: onboarding tours test
Browse files Browse the repository at this point in the history
  • Loading branch information
logeekal committed Feb 21, 2023
1 parent ad000e9 commit 3e13779
Showing 1 changed file with 28 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,27 +154,35 @@ export const getRenderCellValueHook = ({

const localLinkValues = getOr([], colHeader?.linkField ?? '', ecsData);

const isTourAnchor = columnId === SIGNAL_RULE_NAME_FIELD_NAME && rowIndex === 0;

return (
<DefaultCellRenderer
browserFields={browserFields}
columnId={columnId}
data={finalData}
ecsData={ecsData}
eventId={eventId}
header={myHeader}
isDetails={isDetails}
isDraggable={isDraggable}
isExpandable={isExpandable}
isExpanded={isExpanded}
linkValues={linkValues ?? localLinkValues}
rowIndex={rowIndex}
colIndex={colIndex}
rowRenderers={rowRenderers ?? defaultRowRenderers}
setCellProps={setCellProps}
scopeId={scopeId}
truncate={truncate}
asPlainText={false}
/>
<GuidedOnboardingTourStep
isTourAnchor={isTourAnchor}
step={AlertsCasesTourSteps.pointToAlertName}
tourId={SecurityStepId.alertsCases}
>
<DefaultCellRenderer
browserFields={browserFields}
columnId={columnId}
data={finalData}
ecsData={ecsData}
eventId={eventId}
header={myHeader}
isDetails={isDetails}
isDraggable={isDraggable}
isExpandable={isExpandable}
isExpanded={isExpanded}
linkValues={linkValues ?? localLinkValues}
rowIndex={rowIndex}
colIndex={colIndex}
rowRenderers={rowRenderers ?? defaultRowRenderers}
setCellProps={setCellProps}
scopeId={scopeId}
truncate={truncate}
asPlainText={false}
/>
</GuidedOnboardingTourStep>
);
},
[browserFieldsByName, browserFields, columnHeaders]
Expand Down

0 comments on commit 3e13779

Please sign in to comment.