refactor(app): refactored tests + added project tests (#11349)

This commit is contained in:
Filip
2026-01-30 21:59:37 +01:00
committed by opencode
parent 4a56491e42
commit 77fa8ddc88
29 changed files with 409 additions and 221 deletions

View File

@@ -1,5 +1,5 @@
import { test, expect } from "../fixtures"
import { promptSelector } from "../utils"
import { promptSelector } from "../selectors"
test("context panel can be opened from the prompt", async ({ page, sdk, gotoSession }) => {
const title = `e2e smoke context ${Date.now()}`

View File

@@ -1,5 +1,5 @@
import { test, expect } from "../fixtures"
import { promptSelector } from "../utils"
import { promptSelector } from "../selectors"
test("smoke @mention inserts file pill token", async ({ page, gotoSession }) => {
await gotoSession()

View File

@@ -1,5 +1,5 @@
import { test, expect } from "../fixtures"
import { promptSelector } from "../utils"
import { promptSelector } from "../selectors"
test("smoke /open opens file picker dialog", async ({ page, gotoSession }) => {
await gotoSession()

View File

@@ -1,10 +1,6 @@
import { test, expect } from "../fixtures"
import { promptSelector } from "../utils"
function sessionIDFromUrl(url: string) {
const match = /\/session\/([^/?#]+)/.exec(url)
return match?.[1]
}
import { promptSelector } from "../selectors"
import { sessionIDFromUrl } from "../actions"
test("can send a prompt and receive a reply", async ({ page, sdk, gotoSession }) => {
test.setTimeout(120_000)