Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/thatdeveloperguy-website / playwright.config.ts |
| Date | Not specified in source |
| Repository | Janady13/thatdeveloperguy-website |
| Revision | 2bea2ebdff0e34494bff597d4fa9c8422a0c3a94 |
| Branch | main |
| Path or archive member | playwright.config.ts |
| Original SHA-256 | 46bdaa90d5ec0023677c591b58c7cdea929658fbdbaf73cc1440e01a720218cb |
| Git blob SHA | 07a57373d66bdbfefa04f68684f072092eec38cd |
| Reading-copy SHA-256 | f9c96c859a5310522c302dc6d15a16c20a7b01076cd94ff5d96a701ce138802c |
Recovered source transcript
Download complete source text ↓17 lines · 1.3 KB
Credential-bearing and unrelated personal details were removed from this reading copy. The source identity and original checksum remain recorded.
import { defineConfig, devices } from '@playwright/test';
const remote = process.env.TDG_BASE_URL; // e.g. https://tdg.thatwebhostingguy.com — tests the deployed candidate
const auth = process.env.TDG_STAGING_AUTH?.split(':'); // user:pass for the staging access gate
export default defineConfig({
testDir: 'tests/browser', timeout: 30_000, retries: 0, reporter: 'list',
use: { baseURL: remote ?? 'http://127.0.0.1:4411', trace: 'retain-on-failure', ...(remote && auth ? { httpCredentials: { username: auth[0]!, password: [credential removed] } } : {}) },
webServer: remote ? undefined : { command: 'npm run serve:dist', url: 'http://127.0.0.1:4411/', reuseExistingServer: true, timeout: 30_000 },
projects: [
// Default Chromium has no GPU (SwiftShader): the site must stay poster-only and responsive there.
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
// Real GPU (ANGLE Metal on this Mac): the native layer must go live and pass its checks. Emulated desktop, not a physical device.
{ name: 'chromium-gpu', use: { ...devices['Desktop Chrome'], launchOptions: { args: ['--use-angle=metal', '--ignore-gpu-blocklist', '--enable-gpu-rasterization'] } }, testMatch: /animation\.spec\.ts/ },
{ name: 'webkit', use: { ...devices['Desktop Safari'] } },
{ name: 'mobile', use: { ...devices['iPhone 14'] } },
],
});