Fix storybook tests on IconPicker (#4510)

This commit is contained in:
Charles Bochet
2024-03-15 21:47:07 +01:00
committed by GitHub
parent 5e5ae0b2ca
commit feebc45d31
2 changed files with 3 additions and 6 deletions

View File

@@ -16,14 +16,11 @@ RUN npx nx reset
RUN npx nx run twenty-server:build:packageJson
RUN mv /app/packages/twenty-server/dist/package.json /app/packages/twenty-server/package.json
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
COPY --from=twenty-server-build /app /app
WORKDIR /app
RUN yarn workspaces focus twenty-emails twenty-server
WORKDIR /app/packages/twenty-server

View File

@@ -58,7 +58,7 @@ export const WithSearch: Story = {
await sleep(100);
const searchedIcon = canvas.getByRole('button', {
const searchedIcon = await canvas.findByRole('button', {
name: 'Icon Building Skyscraper',
});
@@ -81,7 +81,7 @@ export const WithSearchAndClose: Story = {
await sleep(100);
const searchedIcon = canvas.getByRole('button', {
const searchedIcon = await canvas.findByRole('button', {
name: 'Icon Building Skyscraper',
});