Skip to content

Commit

Permalink
fix #2667 (#2672)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeze322 authored Apr 16, 2020
1 parent c186832 commit 9bf98c7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Composer/cypress/integration/Breadcrumb.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ context('breadcrumb', () => {
// Click on an action
cy.withinEditor('VisualEditor', () => {
cy.findByTestId('RuleEditor').within(() => {
cy.findByText('Send a response').click({ force: true });
cy.findByText('Send a response').click();
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export const ForeachWidget: FunctionComponent<ForeachWidgetProps> = ({ id, data,
const { foreachNode, loopActionsNode, loopBeginNode, loopEndNode } = nodeMap;
return (
<div css={{ width: boundary.width, height: boundary.height, position: 'relative' }}>
<SVGContainer width={boundary.width} height={boundary.height}>
<FlowEdges edges={edges} />
</SVGContainer>
<OffsetContainer offset={foreachNode.offset}>
<ElementWrapper id={id} onEvent={onEvent}>
<ElementMeasurer
Expand Down Expand Up @@ -97,9 +100,6 @@ export const ForeachWidget: FunctionComponent<ForeachWidgetProps> = ({ id, data,
<LoopIndicator onClick={() => onEvent(NodeEventTypes.Focus, { id })} />
</OffsetContainer>
))}
<SVGContainer width={boundary.width} height={boundary.height}>
<FlowEdges edges={edges} />
</SVGContainer>
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export const IfConditionWidget: FunctionComponent<IfConditionWidgetProps> = ({

return (
<div css={{ width: boundary.width, height: boundary.height, position: 'relative' }}>
<SVGContainer width={boundary.width} height={boundary.height}>
<FlowEdges edges={edges} />
</SVGContainer>
<OffsetContainer offset={conditionNode.offset}>
<ElementWrapper id={conditionNode.id} onEvent={onEvent}>
<ElementMeasurer
Expand Down Expand Up @@ -105,9 +108,6 @@ export const IfConditionWidget: FunctionComponent<IfConditionWidgetProps> = ({
</OffsetContainer>
);
})}
<SVGContainer width={boundary.width} height={boundary.height}>
<FlowEdges edges={edges} />
</SVGContainer>
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ export const PromptWidget: FC<PromptWdigetProps> = ({

return (
<div className="Action-BaseInput" css={{ width: boundary.width, height: boundary.height, position: 'relative' }}>
<SVGContainer width={boundary.width} height={boundary.height}>
<FlowEdges edges={edges} />
</SVGContainer>
<OffsetContainer offset={botAsksNode.offset}>
<ElementWrapper id={botAsksNode.id} tab={PromptTab.BOT_ASKS} onEvent={onEvent}>
<ElementMeasurer
Expand Down Expand Up @@ -91,9 +94,6 @@ export const PromptWidget: FC<PromptWdigetProps> = ({
<IconBrick onClick={() => onEvent(NodeEventTypes.Focus, { id, tab: PromptTab.OTHER })} />
</ElementWrapper>
</OffsetContainer>
<SVGContainer width={boundary.width} height={boundary.height}>
<FlowEdges edges={edges} />
</SVGContainer>
</div>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export const SwitchConditionWidget: FunctionComponent<SwitchConditionWidgetProps

return (
<div css={{ width: boundary.width, height: boundary.height, position: 'relative' }}>
<SVGContainer width={boundary.width} height={boundary.height}>
<FlowEdges edges={edges} />
</SVGContainer>
<OffsetContainer offset={switchNode.offset}>
<ElementWrapper id={switchNode.id} onEvent={onEvent}>
<ElementMeasurer
Expand Down Expand Up @@ -114,9 +117,6 @@ export const SwitchConditionWidget: FunctionComponent<SwitchConditionWidgetProps
/>
</OffsetContainer>
))}
<SVGContainer width={boundary.width} height={boundary.height}>
<FlowEdges edges={edges} />
</SVGContainer>
</div>
);
};
Expand Down

0 comments on commit 9bf98c7

Please sign in to comment.