mirror of
https://github.com/quay/quay.git
synced 2026-01-27 18:42:52 +03:00
* chore: add Playwright e2e test infrastructure Add Playwright test framework with custom fixtures for authenticated contexts, API utilities for test data management, and repository delete test as initial migration from Cypress. Key additions: - global-setup.ts: Creates admin, testuser, readonly test users - fixtures.ts: Pre-authenticated page/request fixtures by role - utils/api.ts: CRUD utilities for repositories - MIGRATION.md: Guide for migrating Cypress tests to Playwright - repository-delete.spec.ts: First migrated test with full cleanup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Brady Pratt <bpratt@redhat.com> * chore: update web/.dockerignore exclude tests from being included in the intermediate build - this should improve caching when only tests change Signed-off-by: Brady Pratt <bpratt@redhat.com> * chore: add pre-commit check to block new cypress tests Signed-off-by: Brady Pratt <bpratt@redhat.com> --------- Signed-off-by: Brady Pratt <bpratt@redhat.com> Co-authored-by: Claude <noreply@anthropic.com>
12 lines
281 B
TypeScript
12 lines
281 B
TypeScript
/**
|
|
* Global configuration for Playwright tests
|
|
*/
|
|
|
|
// Backend API URL (registry + API)
|
|
export const API_URL =
|
|
process.env.REACT_QUAY_APP_API_URL || 'http://localhost:8080';
|
|
|
|
// Frontend URL
|
|
export const BASE_URL =
|
|
process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:9000';
|