Fix storybook tests on IconPicker (#4510)
This commit is contained in:
@ -16,14 +16,11 @@ RUN npx nx reset
|
|||||||
RUN npx nx run twenty-server:build:packageJson
|
RUN npx nx run twenty-server:build:packageJson
|
||||||
RUN mv /app/packages/twenty-server/dist/package.json /app/packages/twenty-server/package.json
|
RUN mv /app/packages/twenty-server/dist/package.json /app/packages/twenty-server/package.json
|
||||||
RUN npx nx run twenty-server:build
|
RUN npx nx run twenty-server:build
|
||||||
RUN rm -rf /app/node_modules
|
RUN yarn workspaces focus twenty-emails twenty-server
|
||||||
|
|
||||||
FROM node:18.17.1-alpine as twenty-server
|
FROM node:18.17.1-alpine as twenty-server
|
||||||
|
|
||||||
COPY --from=twenty-server-build /app /app
|
COPY --from=twenty-server-build /app /app
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
RUN yarn workspaces focus twenty-emails twenty-server
|
|
||||||
|
|
||||||
WORKDIR /app/packages/twenty-server
|
WORKDIR /app/packages/twenty-server
|
||||||
|
|
||||||
|
|||||||
@ -58,7 +58,7 @@ export const WithSearch: Story = {
|
|||||||
|
|
||||||
await sleep(100);
|
await sleep(100);
|
||||||
|
|
||||||
const searchedIcon = canvas.getByRole('button', {
|
const searchedIcon = await canvas.findByRole('button', {
|
||||||
name: 'Icon Building Skyscraper',
|
name: 'Icon Building Skyscraper',
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ export const WithSearchAndClose: Story = {
|
|||||||
|
|
||||||
await sleep(100);
|
await sleep(100);
|
||||||
|
|
||||||
const searchedIcon = canvas.getByRole('button', {
|
const searchedIcon = await canvas.findByRole('button', {
|
||||||
name: 'Icon Building Skyscraper',
|
name: 'Icon Building Skyscraper',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user