mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-30 05:16:50 +01:00
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:
1 parent
d0341c36b9
commit
b255f5512a
2 files changed
+19
-9
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user