Fix workspace-owned Playwright flows
This commit is contained in:
@@ -12,6 +12,9 @@ function pinToggle(page: Page, target: PinnedTabTarget) {
|
||||
}
|
||||
|
||||
function menuItemFor(page: Page, target: PinnedTabTarget) {
|
||||
if (target.kind === "draft") {
|
||||
return page.getByTestId("workspace-new-tab-menu-agent");
|
||||
}
|
||||
return page.getByTestId(`workspace-new-tab-menu-${target.kind}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user