mirror of
https://github.com/fergalmoran/supanextail.git
synced 2025-12-22 09:17:54 +00:00
Rework e2e test (playwright) - Test ci flow
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user