mirror of
https://github.com/lingble/twenty.git
synced 2025-11-01 21:27:58 +00:00
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 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
|
||||
|
||||
|
||||
@@ -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',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user