Handle remembered projects in Runner browser fixtures

Verify repeated task creation and switching projects without starting a provider.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-06 09:27:33 -05:00
1 parent d0341c36b9
commit b255f5512a
2 files changed
+19 -9

No files matched your search

+2 -1
View File
@@ -52,7 +52,8 @@ export async function createTaskThroughUi(input: {
await input.page.getByRole("option").filter({ has: input.page.getByText(input.agentName, { exact: true }) }).click();
await expect(input.page.getByRole("searchbox", { name: "Search assignees", exact: true })).toBeHidden();
if (input.projectName) {
await dialog.getByRole("button", { name: "Project", exact: true }).click();
// The selector remembers the previous project, so its visible label changes.
await dialog.locator('button[data-slot="new-issue-compact-control"]').click();
await input.page.getByPlaceholder("Search projects...").fill(input.projectName);
await input.page.getByText(input.projectName, { exact: true }).last().click();
}