feat(app): add server-keyed session routes (#32570)
This commit is contained in:
parent
40db33c415
commit
0c4f508c50
25 changed files with 630 additions and 378 deletions
|
|
@ -21,6 +21,7 @@ const words = [
|
|||
"vector",
|
||||
]
|
||||
|
||||
const serverKey = "http://127.0.0.1:4096"
|
||||
const sourceID = "ses_smoke_source"
|
||||
const targetID = "ses_smoke_target"
|
||||
const directory = "C:/OpenCode/SmokeProject"
|
||||
|
|
@ -240,6 +241,7 @@ function orderedParts(message: Message) {
|
|||
|
||||
export const fixture = {
|
||||
directory,
|
||||
serverKey,
|
||||
project: {
|
||||
id: projectID,
|
||||
worktree: directory,
|
||||
|
|
|
|||
|
|
@ -718,7 +718,8 @@ async function navigateToSession(page: Page, directory: string, sessionId: strin
|
|||
}
|
||||
|
||||
async function switchTitlebarSession(page: Page, sessionID: string, title: string) {
|
||||
const href = `/${base64Encode(fixture.directory)}/session/${sessionID}`
|
||||
console.log(process.env)
|
||||
const href = `/server/${base64Encode(fixture.serverKey)}/session/${sessionID}`
|
||||
const tab = page.locator(`[data-slot="titlebar-tabs"] a[href="${href}"]`).first()
|
||||
await expect(tab).toBeVisible()
|
||||
await tab.click()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue