Rework e2e test (playwright) - Test ci flow

This commit is contained in:
Michael
2021-10-22 17:17:30 +02:00
parent f8876888ec
commit ef01ece55f
2 changed files with 2 additions and 1 deletions

View File

@@ -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 }}

View File

@@ -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');