Create E2E app & run it in CI

This commit is contained in:
Hugo Alliaume
2025-08-18 09:15:30 +02:00
parent 7b490265d9
commit 459b69936c
4 changed files with 7 additions and 12 deletions

View File

@@ -0,0 +1,3 @@
import baseConfig from '../../../playwright.config.base';
export default baseConfig;

View File

@@ -1,11 +1,7 @@
import { expect, test } from '@playwright/test';
test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');
test('Can see homepage', async ({ page }) => {
await page.goto('/');
// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();
// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible();
await expect(page.getByText("Symfony UX's E2E App")).toBeVisible();
});

View File

@@ -1,4 +0,0 @@
import { mergeConfig } from 'vitest/config';
import configShared from '../../../vitest.config.browser.mjs';
export default mergeConfig(configShared, {});

View File

@@ -1,4 +1,4 @@
import { mergeConfig } from 'vitest/config';
import configShared from '../../../vitest.config.mjs';
import configShared from '../../../vitest.config.base.mjs';
export default mergeConfig(configShared, {});