feat: Add test infrastructure with Jest and Playwright for Chromium
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Example Playwright tests for the 3D Flight Simulator project
|
||||
*/
|
||||
|
||||
const { test, expect } = require('@playwright/test');
|
||||
|
||||
test('should display loading screen', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await expect(page).toHaveTitle(/3D Flight Simulator/);
|
||||
await expect(page.locator('.loading-screen')).toBeVisible();
|
||||
});
|
||||
|
||||
test('should navigate to intro screen', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await page.click('.start-button');
|
||||
await expect(page.locator('.intro-screen')).toBeVisible();
|
||||
});
|
||||
Reference in New Issue
Block a user