fix: remove playwright config and test files not needed for build
CI / CI (pull_request) Successful in 5m51s
CI / CI (pull_request) Successful in 5m51s
This commit is contained in:
@@ -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,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
@@ -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,
|
|
||||||
}
|
|
||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user