diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06abf78..f78573e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - name: Install Playwright run: npx playwright install --with-deps - name: Run Playwright tests - run: npm run test:e2e + run: npm run test env: # This might depend on your test-runner/language binding PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }} diff --git a/tests/basic.spec.ts b/tests/basic.spec.ts index 49b7439..b159302 100644 --- a/tests/basic.spec.ts +++ b/tests/basic.spec.ts @@ -1,6 +1,7 @@ import { expect, test } from '@playwright/test'; test('basic test', async ({ page }) => { + console.log(process.env.PLAYWRIGHT_TEST_BASE_URL); await page.goto('https://playwright.dev/'); const title = page.locator('.navbar__inner .navbar__title'); await expect(title).toHaveText('Playwright');