diff --git a/frontend/docker/Dockerfile b/frontend/docker/Dockerfile index fd64af85e7..27ed525e60 100644 --- a/frontend/docker/Dockerfile +++ b/frontend/docker/Dockerfile @@ -6,7 +6,10 @@ COPY --chmod=444 package.json pnpm-lock.yaml ./ RUN npm install --ignore-scripts -g pnpm && \ pnpm install --ignore-scripts -COPY . . +COPY components.json tailwind.config.js tsconfig.json vite.config.ts ./ +COPY index.html index.html +COPY public public +COPY src src RUN pnpm run build diff --git a/frontend/docker/Dockerfile.e2e.test b/frontend/docker/Dockerfile.e2e.test index f389633163..f9870d8e53 100644 --- a/frontend/docker/Dockerfile.e2e.test +++ b/frontend/docker/Dockerfile.e2e.test @@ -8,4 +8,9 @@ COPY --chmod=444 package.json pnpm-lock.yaml ./ RUN npm install --ignore-scripts -g pnpm && \ pnpm install --ignore-scripts -COPY . . +COPY __tests__/e2e __tests__/e2e +COPY __tests__/unit/data __tests__/unit/data +COPY index.html index.html +COPY playwright.config.ts playwright.config.ts +COPY src src +COPY tailwind.config.js tsconfig.json vite.config.ts ./ diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts index 7d2971391c..f2b956cf4b 100644 --- a/frontend/playwright.config.ts +++ b/frontend/playwright.config.ts @@ -1,4 +1,4 @@ -import { defineConfig } from '@playwright/test' +import { defineConfig, devices } from '@playwright/test' export default defineConfig({ fullyParallel: true, @@ -7,8 +7,15 @@ export default defineConfig({ name: 'Chromium', use: { browserName: 'chromium' }, }, + { + name: 'Mobile Safari - iPhone 13', + use: { + ...devices['iPhone 13'], + }, + }, ], reporter: [['list', { printSteps: true }]], + retries: 2, testDir: './__tests__/e2e', use: { baseURL: 'http://localhost:3000',