refactor(web): use the canonical channel entry
Remove the duplicate channel-preview route and move its launcher, owner-link, acceptance and documentation callers to the existing root URL. Query and invitation fragments retain their meaning. App launcher and component preview routes stay separate. Route, session and built-server protocol checks pass.
This commit is contained in:
1 parent
3476723ca0
commit
7a7ff696ca
11 files changed
+28
-35
No files matched your search
@@ -81,7 +81,7 @@ export async function media(lab: MediaLab, mode: 'ordinary' | 'media' | 'recover
|
||||
for (const index of indices) {
|
||||
await writeFile(join(output, `${index}.js`), f.captureProbe(index ? 'Viewer' : 'Source'));
|
||||
browserOpened.add(index);
|
||||
await browser(index, 'open', `${origin}/__channel-preview#invite=owned-kernel-lab-invite`);
|
||||
await browser(index, 'open', `${origin}/#invite=owned-kernel-lab-invite`);
|
||||
cdp.set(index, (await browser(index, 'get', 'cdp-url')).cdpUrl);
|
||||
await f.until(`Browser${index} admitted`, () => f.view(index), (value: any) => value.connection === 'connected');
|
||||
const role = index === sourceBrowser ? 'source' : index === viewerBrowser ? 'viewer' : 'relay';
|
||||
|
||||
Reference in new issue
Block a user