mirror of
https://github.com/symfony/ux-translator.git
synced 2026-03-24 00:12:19 +01:00
Create E2E app & run it in CI
This commit is contained in:
3
assets/playwright.config.ts
Normal file
3
assets/playwright.config.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import baseConfig from '../../../playwright.config.base';
|
||||
|
||||
export default baseConfig;
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
import { mergeConfig } from 'vitest/config';
|
||||
import configShared from '../../../vitest.config.browser.mjs';
|
||||
|
||||
export default mergeConfig(configShared, {});
|
||||
@@ -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, {});
|
||||
|
||||
Reference in New Issue
Block a user