diff options
| author | Doan Luu Duc Tai <doan@luuduct.ai> | 2026-10-30 21:51:23 -0500 |
|---|---|---|
| committer | Doan Luu Duc Tai <doan@luuduct.ai> | 2026-10-30 21:51:23 -0500 |
| commit | 3034705b6679bff1802c4180b7b4711b94fed7f9 (patch) | |
| tree | 2a6b87ee9d2cdb918a0e8b321167e0b7b97f8ed5 /crates/chat-server/tests/browser.mjs | |
| parent | e6b350a1d48ca0490b7a3447bb8d0a4235514b76 (diff) | |
Match private chat to the site's ASCII style
Reuse the historical Message Me form's ASCII frames, red logo, green prompts, bracketed actions, and the homepage light/dark palette. Preserve readable controls on small screens, align the license page and footer, and run browser fixtures beside the active local preview.
Diffstat (limited to 'crates/chat-server/tests/browser.mjs')
| -rw-r--r-- | crates/chat-server/tests/browser.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/chat-server/tests/browser.mjs b/crates/chat-server/tests/browser.mjs index a56c7cc..08c5c88 100644 --- a/crates/chat-server/tests/browser.mjs +++ b/crates/chat-server/tests/browser.mjs @@ -24,7 +24,7 @@ import { chromium, firefox } from '../../../.tools/browser/node_modules/playwrig const root = await mkdtemp(join(tmpdir(), 'stack-chat-e2e-')); const token = randomBytes(32).toString('hex'); -const origin = 'http://127.0.0.1:9080'; +const origin = `http://127.0.0.1:${process.env.CHAT_TEST_PORT || '9081'}`; const password = 'browser-test-only-unique-passphrase'; await writeFile(join(root, '.env'), `CHAT_ORIGIN=${origin}\nCHAT_SETUP_TOKEN=${token}\n`, {mode:0o600}); for (const path of ['crates','target','docs','web','LICENSE']) await symlink(resolve(path), join(root,path)); @@ -32,7 +32,7 @@ await mkdir(join(root,'var/build'), {recursive:true}); let server; let serverErrors = ''; async function launchServer() { - server = spawn(resolve('target/debug/stack-chat-server'), ['--root',root], {stdio:['ignore','pipe','pipe']}); + server = spawn(resolve('target/debug/stack-chat-server'), ['--root',root,'--bind',new URL(origin).host], {stdio:['ignore','pipe','pipe']}); server.stderr.on('data', bytes => { serverErrors += bytes.toString(); }); await Promise.race([ new Promise((ready, reject) => { server.stdout.once('data', ready); server.once('exit', () => reject(new Error(serverErrors || 'Server exited'))); }), |
