Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

test(server): move env variables into playwright config (#4384)

LongYinan70e731e0669a
diff --git a/.github/workflows/build-server.yml b/.github/workflows/build-server.yml
index d46b600784..91e134360d 100644
--- a/.github/workflows/build-server.yml
+++ b/.github/workflows/build-server.yml
@@ -117,9 +117,6 @@ jobs:
env:
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
- ENABLE_LOCAL_EMAIL: true
- OAUTH_EMAIL_LOGIN: [email protected]
- OAUTH_EMAIL_PASSWORD: affine
- name: Upload server test coverage results
uses: codecov/codecov-action@v3
diff --git a/tests/affine-cloud/playwright.config.ts b/tests/affine-cloud/playwright.config.ts
index f3733f99da..772dfecf37 100644
--- a/tests/affine-cloud/playwright.config.ts
+++ b/tests/affine-cloud/playwright.config.ts
@@ -53,6 +53,8 @@ const config: PlaywrightTestConfig = {
ENABLE_LOCAL_EMAIL: process.env.ENABLE_LOCAL_EMAIL ?? 'true',
NEXTAUTH_URL: 'http://localhost:8080',
OAUTH_EMAIL_SENDER: '[email protected]',
+ OAUTH_EMAIL_LOGIN: '[email protected]',
+ OAUTH_EMAIL_PASSWORD: 'affine',
},
},
],