From ca014019fff41c8ab1a88145742d44d815db484b Mon Sep 17 00:00:00 2001 From: Yunus Date: Wed, 4 Dec 2024 22:36:57 +0700 Subject: [PATCH] [test] Try improve test e2e --- .env.test | 3 ++- .github/workflows/deploy.yml | 2 -- nuxt.config.ts | 4 ++++ pages/apps.vue | 2 +- setup-test.sh | 2 +- tests-e2e/apps.test.mts | 4 ++-- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.env.test b/.env.test index f8481d8..c3f3cd8 100644 --- a/.env.test +++ b/.env.test @@ -1,7 +1,7 @@ # user=password:user=password; NUXT_LOCAL_AUTHS=usertest1=a5756f781e0e433986364b82de545c3b:usertest2=963a71f1868248df912e7488e02233f0 NUXT_PUBLIC_LOCAL_AUTH_ENABLED=true -NUXT_APP_ENABLE_DRIZZLE_LOGGING=true +NUXT_APP_ENABLE_DRIZZLE_LOGGING=false NUXT_DB_URL=http://localhost:8888 NUXT_DB_AUTH_TOKEN=basic:c3FsZDppOHJ3ZXlzNzBkN2Zh NUXT_S3_ENDPOINT=http://localhost:9000 @@ -12,3 +12,4 @@ NUXT_PUBLIC_GOOGLE_CLIENT_ID=sample-fc72420db46b4bfaaba8ea97a74535a7.apps.google NUXT_APP_MIGRATION_ENABLE=true NUXT_APP_MIGRATION_DIR= NUXT_APP_API_AUTH_KEY=dy9ea7v24f9f46j94p4xp1gcozwn1qcmgweb7kdzhuxi9br7gi89t2uy2r1896ag +WORKAROUND_FIX_BREAK_PLAYWRIGHT=1 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 49c02b2..d86d467 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,8 +38,6 @@ jobs: - name: Install Playwright Browsers if: steps.playwright-cache.outputs.cache-hit != 'true' run: bunx playwright install --with-deps - - name: Setup e2e env - run: echo "${{ secrets.ENV_TESTS_BASE64 }}" | base64 --decode >> .env - run: bun run e2e - name: Deploy diff --git a/nuxt.config.ts b/nuxt.config.ts index 8c86a02..f493551 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -108,6 +108,10 @@ export default defineNuxtConfig({ define: { global: {}, }, + + optimizeDeps: { + exclude: process.env.WORKAROUND_FIX_BREAK_PLAYWRIGHT === '1' ? ['primevue'] : [], + }, }, app: { diff --git a/pages/apps.vue b/pages/apps.vue index a3a80a6..b2ed37c 100644 --- a/pages/apps.vue +++ b/pages/apps.vue @@ -87,7 +87,7 @@ const upperCase = (value: string | null | undefined) => { orgName: orgNameParam?.toString() ?? '', }, }" v-if="isOrg"> -