From ef01ece55fbc3442a7b048c804fa221f10bf1c56 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 22 Oct 2021 17:17:30 +0200 Subject: [PATCH] Rework e2e test (playwright) - Test ci flow --- .github/workflows/ci.yml | 2 +- tests/basic.spec.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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');