Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/app/e2e/app/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test("@smoke root route renders seeded home entrypoints", async ({ page }) => {
await expect(page.getByRole("button", { name: /Process documents/i })).toBeVisible()
await expect(page.getByRole("button", { name: /Analyze data/i })).toBeVisible()
await expect(page.getByRole("button", { name: /Write faster/i })).toBeVisible()
await expect(page.getByRole("button", { name: "Status" })).toBeVisible()
await expect(page.getByRole("button", { name: "Right utility panel" })).toBeVisible()
})

test("@smoke home renders the hero composer and starter cards", async ({ page, project }) => {
Expand All @@ -28,7 +28,7 @@ test("@smoke home renders the hero composer and starter cards", async ({ page, p
await expect(firstCard).toBeVisible()
await expect(page.getByRole("button", { name: /Analyze data/i })).toBeVisible()
await expect(page.getByRole("button", { name: /Write faster/i })).toBeVisible()
await expect(page.getByRole("button", { name: "Status" })).toBeVisible()
await expect(page.getByRole("button", { name: "Right utility panel" })).toBeVisible()

const cardBox = await firstCard.boundingBox()
const composerBox = await composer.boundingBox()
Expand All @@ -55,7 +55,7 @@ test("@smoke home hero prompt starts a session", async ({ page, project, assista

test("@smoke project home status panel can open the server picker dialog", async ({ page, project }) => {
await project.open()
const statusButton = page.getByRole("button", { name: "Status" }).first()
const statusButton = page.getByRole("button", { name: "Right utility panel" }).first()
const rightPanel = page.locator("#right-panel")

await statusButton.click()
Expand Down
24 changes: 12 additions & 12 deletions packages/app/e2e/app/server-default.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ test("can set a default server on web", async ({ page, gotoSession }) => {

await gotoSession()

const status = page.getByRole("button", { name: "Status" })
await expect(status).toBeVisible()
const popover = page.locator('[data-component="popover-content"]').filter({ hasText: "Manage servers" })

const ensurePopoverOpen = async () => {
if (await popover.isVisible()) return
await status.click()
await expect(popover).toBeVisible()
const statusPanel = page.getByRole("button", { name: "Right utility panel" })
await expect(statusPanel).toBeVisible()
const rightPanel = page.locator("#right-panel")

const ensureStatusPanelOpen = async () => {
if ((await rightPanel.getAttribute("aria-hidden")) === "false") return
await statusPanel.click()
await expect(rightPanel).toHaveAttribute("aria-hidden", "false")
}

await ensurePopoverOpen()
await popover.getByRole("button", { name: "Manage servers" }).click()
await ensureStatusPanelOpen()
await rightPanel.getByRole("button", { name: "Manage servers" }).click()

const dialog = page.getByRole("dialog")
await expect(dialog).toBeVisible()
Expand All @@ -50,9 +50,9 @@ test("can set a default server on web", async ({ page, gotoSession }) => {

await closeDialog(page, dialog)

await ensurePopoverOpen()
await ensureStatusPanelOpen()

const serverRow = popover.locator("button").filter({ hasText: serverNamePattern }).first()
const serverRow = rightPanel.locator("button").filter({ hasText: serverNamePattern }).first()
await expect(serverRow).toBeVisible()
await expect(serverRow.getByText("Default", { exact: true })).toBeVisible()
})
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `workspace` ADD `owner_directory` text;
Loading
Loading