mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-08 13:37:29 +01:00
feat: Add "Duplicate Tab" support for Items, Query, and Settings tabs (#2498)
* feat: Add "Duplicate Tab" support for Items, Query, and Settings tabs * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * added UT * Fix QueryTab useTabs import path for duplicate tab test mock --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
+10
@@ -616,6 +616,16 @@ export class DataExplorer {
|
||||
await page.goto(url);
|
||||
return DataExplorer.waitForExplorer(page);
|
||||
}
|
||||
|
||||
/** Returns the tab navigation <li> element for the given tab ID or React tab name (e.g. "tab0", "Home") */
|
||||
tabNavHeader(tabId: string): Locator {
|
||||
return this.frame.getByTestId(`TabNav:${tabId}`);
|
||||
}
|
||||
|
||||
/** Returns a context menu item in the tab right-click menu by visible label */
|
||||
tabContextMenuItem(label: string): Locator {
|
||||
return this.frame.getByRole("menuitem", { name: label });
|
||||
}
|
||||
}
|
||||
|
||||
export async function waitForApiResponse(
|
||||
|
||||
Reference in New Issue
Block a user