added playwright tests

This commit is contained in:
Bikram Choudhury
2026-05-22 18:09:04 +05:30
parent ba57c92e91
commit d78f3eae28
3 changed files with 137 additions and 0 deletions
+10
View File
@@ -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(