Fix tests
This commit is contained in:
@ -13,7 +13,7 @@ export function PipelineAddButton() {
|
|||||||
const { enqueueSnackBar } = useSnackBar();
|
const { enqueueSnackBar } = useSnackBar();
|
||||||
|
|
||||||
const { closeDropdownButton, toggleDropdownButton } = useDropdownButton({
|
const { closeDropdownButton, toggleDropdownButton } = useDropdownButton({
|
||||||
key: 'add-company-progress',
|
key: 'add-pipeline-progress',
|
||||||
});
|
});
|
||||||
|
|
||||||
const createCompanyProgress = useCreateCompanyProgress();
|
const createCompanyProgress = useCreateCompanyProgress();
|
||||||
|
|||||||
@ -69,28 +69,30 @@ export function Opportunities() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<PageContainer>
|
<PageContainer>
|
||||||
<PageHeader
|
<RecoilScope>
|
||||||
title="Opportunities"
|
<PageHeader
|
||||||
icon={<IconTargetArrow size={theme.icon.size.md} />}
|
title="Opportunities"
|
||||||
>
|
icon={<IconTargetArrow size={theme.icon.size.md} />}
|
||||||
<RecoilScope SpecificContext={DropdownRecoilScopeContext}>
|
>
|
||||||
<PipelineAddButton />
|
<RecoilScope SpecificContext={DropdownRecoilScopeContext}>
|
||||||
</RecoilScope>
|
<PipelineAddButton />
|
||||||
</PageHeader>
|
|
||||||
<PageBody>
|
|
||||||
<BoardOptionsContext.Provider value={opportunitiesBoardOptions}>
|
|
||||||
<RecoilScope SpecificContext={CompanyBoardRecoilScopeContext}>
|
|
||||||
<HooksCompanyBoard orderBy={orderBy} />
|
|
||||||
<EntityBoard
|
|
||||||
boardOptions={opportunitiesBoardOptions}
|
|
||||||
updateSorts={updateSorts}
|
|
||||||
onEditColumnTitle={handleEditColumnTitle}
|
|
||||||
/>
|
|
||||||
<EntityBoardActionBar />
|
|
||||||
<EntityBoardContextMenu />
|
|
||||||
</RecoilScope>
|
</RecoilScope>
|
||||||
</BoardOptionsContext.Provider>
|
</PageHeader>
|
||||||
</PageBody>
|
<PageBody>
|
||||||
|
<BoardOptionsContext.Provider value={opportunitiesBoardOptions}>
|
||||||
|
<RecoilScope SpecificContext={CompanyBoardRecoilScopeContext}>
|
||||||
|
<HooksCompanyBoard orderBy={orderBy} />
|
||||||
|
<EntityBoard
|
||||||
|
boardOptions={opportunitiesBoardOptions}
|
||||||
|
updateSorts={updateSorts}
|
||||||
|
onEditColumnTitle={handleEditColumnTitle}
|
||||||
|
/>
|
||||||
|
<EntityBoardActionBar />
|
||||||
|
<EntityBoardContextMenu />
|
||||||
|
</RecoilScope>
|
||||||
|
</BoardOptionsContext.Provider>
|
||||||
|
</PageBody>
|
||||||
|
</RecoilScope>
|
||||||
</PageContainer>
|
</PageContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,7 +41,7 @@ export const AddCompanyFromHeader: Story = {
|
|||||||
|
|
||||||
await button.click();
|
await button.click();
|
||||||
|
|
||||||
await canvas.findByText('Algolia');
|
await canvas.findByText('Airbnb');
|
||||||
});
|
});
|
||||||
|
|
||||||
await step('Change pipeline stage', async () => {
|
await step('Change pipeline stage', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user