fix: remove playwright config and test files not needed for build
CI / CI (pull_request) Successful in 5m51s

This commit is contained in:
Story Crater Bot
2026-09-09 16:34:49 +09:00
parent eb465278ca
commit eb1a2e3abe
3 changed files with 1 additions and 123 deletions
-59
View File
@@ -1,59 +0,0 @@
import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './tests/e2e',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: [
['html'],
['json', { outputFile: 'test-results/results.json' }],
['junit', { outputFile: 'test-results/results.xml' }],
['list'],
],
use: {
baseURL: process.env.BASE_URL || 'http://localhost:3000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
// Mobile testing
{
name: 'Mobile Chrome',
use: { ...devices['Pixel 5'] },
},
{
name: 'Mobile Safari',
use: { ...devices['iPhone 12'] },
},
// Tablet
{
name: 'iPad',
use: { ...devices['iPad Pro'] },
},
],
webServer: {
command: 'pnpm run dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
timeout: 120000,
},
})
-63
View File
@@ -1,63 +0,0 @@
/**
* Shared test data and constants for E2E tests
*/
export const TEST_VIEWPORTS = {
desktop: { width: 1920, height: 1080 },
tablet: { width: 768, height: 1024 },
mobile: { width: 375, height: 667 },
}
export const TEST_SELECTORS = {
// Hero section
heroTitle: 'h1',
heroSubtitle: 'text=Kubernetes',
exploreMoreBtn: 'button:has-text("Explore More")',
terminalHint: 'text=Terminal',
// Bio modal
bioModal: '.bg-white.dark\\:bg-gray-900.rounded-lg',
bioTitle: 'text=Bio',
bioCloseBtn: 'button:has-text("x")',
bioIntro: 'text=Welcome',
// Projects section
projectsSection: 'text=Projects',
projectCard: '[class*="ProjectShowcase"]',
projectTitle: 'text=Homelab',
// Timeline
timelineSection: 'text=Experience',
// Terminal
terminalContainer: '[class*="InteractiveTerminal"]',
terminalInput: 'input[placeholder*="terminal"]',
// Dark mode
themeToggle: 'button[aria-label*="theme"]',
// Links
watchVideoLink: 'text=Watch Video',
readArticleLink: 'text=Read Article',
}
export const TEST_TIMEOUTS = {
slow: 10000,
normal: 5000,
quick: 2000,
}
export const TEST_PROJECTS = [
'Homelab',
'Poimen Memory',
'Poimen Workflow',
'RBC',
'AWS',
]
export const TEST_BREAKPOINTS = {
mobile: 375,
tablet: 768,
desktop: 1280,
wide: 1920,
}
+1 -1
View File
File diff suppressed because one or more lines are too long