diff options
| author | Adam <[email protected]> | 2026-01-19 08:38:42 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-01-19 09:03:52 -0600 |
| commit | 1ba7c606e679bdcd1212c23a46146aed5646c504 (patch) | |
| tree | 89974eaec30cf283e6503b5a130893198511dfa0 /packages/app/e2e/file-open.spec.ts | |
| parent | f00f18b926e21c5d48b8fdf5cb216888f1c52f82 (diff) | |
| download | opencode-1ba7c606e679bdcd1212c23a46146aed5646c504.tar.gz opencode-1ba7c606e679bdcd1212c23a46146aed5646c504.zip | |
chore: cleanup
Diffstat (limited to 'packages/app/e2e/file-open.spec.ts')
| -rw-r--r-- | packages/app/e2e/file-open.spec.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/app/e2e/file-open.spec.ts b/packages/app/e2e/file-open.spec.ts index 673caf9dc..fb7104b6b 100644 --- a/packages/app/e2e/file-open.spec.ts +++ b/packages/app/e2e/file-open.spec.ts @@ -12,13 +12,12 @@ test("can open a file tab from the search palette", async ({ page, gotoSession } const input = dialog.getByRole("textbox").first() await input.fill("package.json") - const firstItem = dialog.locator('[data-slot="list-item"]').first() - await expect(firstItem).toBeVisible() - await firstItem.click() + const fileItem = dialog.locator('[data-slot="list-item"][data-key^="file:"]').first() + await expect(fileItem).toBeVisible() + await fileItem.click() await expect(dialog).toHaveCount(0) const tabs = page.locator('[data-component="tabs"][data-variant="normal"]') - await expect(tabs).toBeVisible() - await expect(tabs.getByRole("tab").first()).toBeVisible() + await expect(tabs.locator('[data-slot="tabs-trigger"]').first()).toBeVisible() }) |
