mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-09 22:32:53 +00:00
fix(ci): install firefox in e2e-headless and fix e2e test isolation
- Updated `.github/workflows/ci.yml` to install both chromium and firefox in `e2e-headless` job, resolving missing executable errors. - Updated `js/relayManager.js` to respect `__testRelays__` overrides (via URL/localStorage) during initialization, preventing race conditions where tests fell back to production relays. - Updated `tests/e2e/repro_issue.spec.ts` to use dynamic relay ports based on worker index, preventing `EADDRINUSE` errors in parallel runs. - Updated `scripts/check-hex.js` to ignore `docs/agents/task-logs/**` to prevent lint failures on hex strings in log files. - Executed `prompt-curator-agent` daily task to fix broken paths in prompt library. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
7bc16f7915
commit
e79b2500c8
3 files changed
+42
-7
No files matched your search
@@ -8,17 +8,17 @@ if (!global.WebSocket) {
|
||||
global.WebSocket = WebSocket;
|
||||
}
|
||||
|
||||
const RELAY_PORT = 8899;
|
||||
const RELAY_URL = `ws://127.0.0.1:${RELAY_PORT}`;
|
||||
|
||||
test.describe('Embed Player', () => {
|
||||
let relayServer;
|
||||
let RELAY_URL;
|
||||
|
||||
test.beforeAll(async () => {
|
||||
relayServer = startRelay(RELAY_PORT);
|
||||
test.beforeEach(async ({}, testInfo) => {
|
||||
const port = 8900 + (testInfo.workerIndex * 10);
|
||||
RELAY_URL = `ws://127.0.0.1:${port}`;
|
||||
relayServer = startRelay(port);
|
||||
});
|
||||
|
||||
test.afterAll(async () => {
|
||||
test.afterEach(async () => {
|
||||
if (relayServer) {
|
||||
await relayServer.close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user