mirror of
https://github.com/luxfi/extension.git
synced 2026-10-30 16:56:33 +00:00
- Add Playwright test infrastructure with Chrome extension support - Add E2E tests: basic-setup, onboarding-flow, sidebar-loads, wallet-connection - Add test-chrome job that runs after builds in CI - Add test-firefox job with web-ext validation and load test - Add test-safari job with Xcode build for macOS and iOS Simulator - Update workflow to run tests on PRs as well as releases - Add validate:firefox script for local Firefox manifest validation Tests verify: - Extension loads successfully - Background script/service worker initializes - Manifest is valid - Onboarding page opens on install
15 lines
304 B
TypeScript
15 lines
304 B
TypeScript
/**
|
|
* Timing utilities for E2E tests
|
|
*/
|
|
|
|
export const ONE_SECOND_MS = 1000
|
|
export const FIVE_SECONDS_MS = 5000
|
|
export const TEN_SECONDS_MS = 10000
|
|
|
|
/**
|
|
* Sleep for specified milliseconds
|
|
*/
|
|
export function sleep(ms: number): Promise<void> {
|
|
return new Promise(resolve => setTimeout(resolve, ms))
|
|
}
|