Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
492 changes: 492 additions & 0 deletions DELIVERY_SUMMARY.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions album-viewer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Playwright
test-results/
playwright-report/
playwright/.cache/
84 changes: 72 additions & 12 deletions album-viewer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions album-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@
"build": "vue-tsc && vite build",
"preview": "vite preview",
"serve": "vite preview",
"type-check": "vue-tsc --noEmit"
"type-check": "vue-tsc --noEmit",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:debug": "playwright test --debug",
"test:e2e:report": "playwright show-report"
},
"dependencies": {
"axios": "^1.6.0",
"vue": "^3.4.0"
},
"devDependencies": {
"@types/node": "^24.3.0",
"@playwright/test": "^1.56.1",
"@types/node": "^24.10.0",
"@vitejs/plugin-vue": "^5.0.0",
"@vue/tsconfig": "^0.8.1",
"typescript": "^5.9.2",
Expand Down
50 changes: 50 additions & 0 deletions album-viewer/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { defineConfig, devices } from '@playwright/test';

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests/e2e',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://localhost:3001',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],

/* Run your local dev server before starting the tests */
webServer: [
{
command: 'cd ../albums-api && npm run dev',
url: 'http://localhost:3000/albums',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
},
{
command: 'npm run dev',
url: 'http://localhost:3001',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
},
],
});
Loading