diff --git a/.dockerignore b/.dockerignore index 80f217ca..aa0aac16 100644 --- a/.dockerignore +++ b/.dockerignore @@ -8,4 +8,5 @@ node_modules .next Dockerfile docker-compose.yml -README.md \ No newline at end of file +README.md +tests/playwright diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 00000000..3687be05 --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,52 @@ +name: Playwright E2E + +on: + pull_request: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +jobs: + e2e: + name: Run Playwright E2E + runs-on: ubuntu-latest + timeout-minutes: 30 + + steps: + - name: Checkout code + uses: actions/checkout@v7 + + - name: Setup Node.js + uses: actions/setup-node@v7 + with: + node-version: 22 + + - name: Setup pnpm + uses: pnpm/action-setup@v6 + with: + version: 12 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v4 + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Install Chromium + run: pnpm exec playwright install --with-deps chromium + + - name: Run Playwright tests + run: pnpm test:e2e + + - name: Upload report + if: ${{ !cancelled() }} + uses: actions/upload-artifact@v7 + with: + name: playwright-report + path: | + tests/playwright/playwright-report + tests/playwright/test-results + retention-days: 14 diff --git a/.github/workflows/vitest.yml b/.github/workflows/vitest.yml index c79922f4..407c1d7e 100644 --- a/.github/workflows/vitest.yml +++ b/.github/workflows/vitest.yml @@ -30,7 +30,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v6 with: - version: 9 + version: 12 - name: Install dependencies run: pnpm install --frozen-lockfile @@ -54,7 +54,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v6 with: - version: 9 + version: 12 - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.gitignore b/.gitignore index dfa85ae4..0dd190a8 100644 --- a/.gitignore +++ b/.gitignore @@ -124,4 +124,9 @@ config/.setup_complete docker-compose.yml # Commit tests docker-compose -!tests/bats/docker-compose.yml \ No newline at end of file +!tests/bats/docker-compose.yml +!tests/playwright/docker-compose.yml +# Playwright E2E +tests/playwright/.auth/ +tests/playwright/test-results/ +tests/playwright/playwright-report/ diff --git a/Components/UI/Layout/Layout.module.css b/Components/UI/Layout/Layout.module.css index eee3a74d..38d4bd0b 100644 --- a/Components/UI/Layout/Layout.module.css +++ b/Components/UI/Layout/Layout.module.css @@ -14,6 +14,10 @@ scrollbar-width: none; } +.mainWrapperWide { + max-width: 2090px; +} + .login { background-color: #111827; } diff --git a/Components/UI/Layout/Layout.tsx b/Components/UI/Layout/Layout.tsx index 1aa6c1f2..5a5a5a03 100644 --- a/Components/UI/Layout/Layout.tsx +++ b/Components/UI/Layout/Layout.tsx @@ -29,7 +29,11 @@ function Layout(props: LayoutProps) { <>
-
{props.children}
+
+ {props.children} +