mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-29 01:27:22 +01:00
Fix query tab view: respect default setting and add toggle behavior (#2516)
* Fix query tab view: respect default setting and add toggle behavior - Use getDefaultQueryResultsView() when splitterDirection prop is not provided, so the user's configured default from Settings is respected - Add onCommandClick to the View split button that toggles between Vertical and Horizontal layout when the main button is clicked Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add Playwright E2E tests for query tab View toggle and dropdown - Add View to CommandBarButton enum in test fixtures - Add test: clicking main View button toggles between vertical/horizontal - Add test: selecting options from View dropdown changes layout Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add Playwright E2E tests for query tab View toggle and dropdown - Add View to CommandBarButton enum in test fixtures - Add test: clicking main View button toggles between vertical/horizontal - Add test: selecting options from View dropdown changes layout Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix issue that was failing tests when using account keys for access. * Remove commented code. --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+1
-3
@@ -122,9 +122,6 @@ export async function getTestExplorerUrl(accountType: TestAccount, options?: Tes
|
||||
params.set("feature.enableCopilot", "false");
|
||||
|
||||
const nosqlRbacToken = getNoSqlRbacToken();
|
||||
if (!nosqlRbacToken) {
|
||||
throw new Error("No NOSQL RBAC token found.");
|
||||
}
|
||||
|
||||
const nosqlReadOnlyRbacToken = process.env.NOSQL_READONLY_TESTACCOUNT_TOKEN;
|
||||
const nosqlContainerCopyRbacToken = process.env.NOSQL_CONTAINERCOPY_TESTACCOUNT_TOKEN;
|
||||
@@ -411,6 +408,7 @@ export enum CommandBarButton {
|
||||
ExecuteQuery = "Execute Query",
|
||||
UploadItem = "Upload Item",
|
||||
NewDocument = "New Document",
|
||||
View = "View",
|
||||
}
|
||||
|
||||
/** Helper class that provides locator methods for DataExplorer components, on top of a Frame */
|
||||
|
||||
Reference in New Issue
Block a user