Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions .github/workflows/e2e-test-commitly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ jobs:
cd packages/tests-e2e
npx playwright install --with-deps

- name: Install and run E2E Test for react
- name: Run Complete tests for react
run: |
cd packages/tests-e2e
BRANCH_NAME=$(echo $BRANCH_NAME_RAW | tr '/_' '-')
export PLAYWRIGHT_TEST_URL="https://$BRANCH_NAME.react.playground.corbado.io"
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.ui.ts
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.complete.ts
env:
PLAYWRIGHT_NUM_CORES: 4
PLAYWRIGHT_JWT_TOKEN: ${{ secrets.PLAYWRIGHT_JWT_TOKEN }}
Expand All @@ -85,6 +85,25 @@ jobs:
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
name: playwright-report-complete-react
path: packages/tests-e2e/playwright-report/
retention-days: 30

- name: Run Connect tests for react
run: |
cd packages/tests-e2e
BRANCH_NAME=$(echo $BRANCH_NAME_RAW | tr '/_' '-')
export PLAYWRIGHT_TEST_URL="https://$BRANCH_NAME.connect-next.playground.corbado.io"
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.connect.ts
env:
PLAYWRIGHT_NUM_CORES: 4
GITHUB_RUN_ID: ${{ github.run_id }}
SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_TOKEN }}
GITHUB_BRANCH_NAME: ${{ env.BRANCH_NAME_RAW }}

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-connect-react
path: packages/tests-e2e/playwright-report/
retention-days: 30
37 changes: 28 additions & 9 deletions .github/workflows/e2e-test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ jobs:
cd packages/tests-e2e
npx playwright install --with-deps

- name: Install and run E2E Test for react
- name: Run Complete tests for react
run: |
cd packages/tests-e2e
BRANCH_NAME=$(echo $BRANCH_NAME_RAW | tr '/_' '-')
export PLAYWRIGHT_TEST_URL="https://$BRANCH_NAME.react.playground.corbado.io"
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.ui.ts
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.complete.ts
env:
PLAYWRIGHT_NUM_CORES: 4
PLAYWRIGHT_JWT_TOKEN: ${{ secrets.PLAYWRIGHT_JWT_TOKEN }}
Expand All @@ -84,16 +84,16 @@ jobs:
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-react
name: playwright-report-complete-react
path: packages/tests-e2e/playwright-report/
retention-days: 30

- name: Install and run E2E Test for web-js
- name: Run Complete tests for web-js
run: |
cd packages/tests-e2e
BRANCH_NAME=$(echo $BRANCH_NAME_RAW | tr '/_' '-')
export PLAYWRIGHT_TEST_URL="https://$BRANCH_NAME.web-js.playground.corbado.io"
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.ui.ts
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.complete.ts
env:
PLAYWRIGHT_NUM_CORES: 4
PLAYWRIGHT_JWT_TOKEN: ${{ secrets.PLAYWRIGHT_JWT_TOKEN }}
Expand All @@ -108,16 +108,16 @@ jobs:
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-web-js
name: playwright-report-complete-web-js
path: packages/tests-e2e/playwright-report/
retention-days: 30

- name: Install and run E2E Test for web-js-script
- name: Run Complete tests for web-js-script
run: |
cd packages/tests-e2e
BRANCH_NAME=$(echo $BRANCH_NAME_RAW | tr '/_' '-')
export PLAYWRIGHT_TEST_URL="https://$BRANCH_NAME.web-js-script.playground.corbado.io"
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.ui.ts
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.complete.ts
env:
PLAYWRIGHT_NUM_CORES: 4
PLAYWRIGHT_JWT_TOKEN: ${{ secrets.PLAYWRIGHT_JWT_TOKEN }}
Expand All @@ -132,6 +132,25 @@ jobs:
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-web-js-script
name: playwright-report-complete-web-js-script
path: packages/tests-e2e/playwright-report/
retention-days: 30

- name: Run Connect tests for react
run: |
cd packages/tests-e2e
BRANCH_NAME=$(echo $BRANCH_NAME_RAW | tr '/_' '-')
export PLAYWRIGHT_TEST_URL="https://$BRANCH_NAME.connect-next.playground.corbado.io"
PLAYWRIGHT_TEST_URL=$PLAYWRIGHT_TEST_URL npx playwright test --config=playwright.config.connect.ts
env:
PLAYWRIGHT_NUM_CORES: 4
GITHUB_RUN_ID: ${{ github.run_id }}
SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_TOKEN }}
GITHUB_BRANCH_NAME: ${{ env.BRANCH_NAME_RAW }}

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-connect-react
path: packages/tests-e2e/playwright-report/
retention-days: 30
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ packages/tests-e2e/blob-report
packages/tests-e2e/all-blob-reports
packages/tests-e2e/playwright/.cach/
packages/tests-e2e/test-states
packages/tests-e2e/.env.local
packages/tests-e2e/.env.complete.local
packages/tests-e2e/.env.connect.local
.vercel

# scripts
Expand Down
240 changes: 120 additions & 120 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
3 changes: 3 additions & 0 deletions packages/tests-e2e/.env.connect.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#DEVELOPERPANEL_API_URL=https://console.cloud.corbado-staging.io
#BACKEND_API_URL=https://backendapi.cloud.corbado-staging.io
#FRONTEND_API_URL_SUFFIX=frontendapi.cloud.corbado-staging.io
6 changes: 6 additions & 0 deletions packages/tests-e2e/.env.connect.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# save to .env.local
PLAYWRIGHT_TEST_URL=https://develop.connect-next.playground.corbado.io
DEVELOPERPANEL_API_URL=https://console.cloud.corbado-staging.io
BACKEND_API_URL=https://backendapi.cloud.corbado-staging.io
FRONTEND_API_URL_SUFFIX=
PLAYWRIGHT_JWT_TOKEN=
Loading
Loading