fixed playwright tests

This commit is contained in:
Bikram Choudhury
2026-05-22 18:45:18 +05:30
parent d78f3eae28
commit 663f0e6faf
2 changed files with 3 additions and 2 deletions
@@ -74,6 +74,7 @@ export class NewMongoQueryTab extends NewQueryTab {
public duplicateTab(): void { public duplicateTab(): void {
const id = useTabs.getState().getTabs(ViewModels.CollectionTabKind.Query).length + 1; const id = useTabs.getState().getTabs(ViewModels.CollectionTabKind.Query).length + 1;
const queryText = this.iTabAccessor?.onSaveClickEvent() ?? this.persistedState?.query?.text ?? "";
const newTab = new NewMongoQueryTab( const newTab = new NewMongoQueryTab(
{ {
tabKind: ViewModels.CollectionTabKind.Query, tabKind: ViewModels.CollectionTabKind.Query,
@@ -81,7 +82,7 @@ export class NewMongoQueryTab extends NewQueryTab {
tabPath: "", tabPath: "",
collection: this.collection, collection: this.collection,
node: this.collection, node: this.collection,
queryText: this.persistedState?.query?.text ?? "", queryText,
partitionKey: this.partitionKey, partitionKey: this.partitionKey,
splitterDirection: this.persistedState?.splitterDirection, splitterDirection: this.persistedState?.splitterDirection,
queryViewSizePercent: this.persistedState?.queryViewSizePercent, queryViewSizePercent: this.persistedState?.queryViewSizePercent,
+1 -1
View File
@@ -78,7 +78,7 @@ export class NewQueryTab extends TabsBase {
} }
public duplicateTab(): void { public duplicateTab(): void {
const queryText = this.persistedState?.query?.text ?? ""; const queryText = this.iTabAccessor?.onSaveClickEvent() ?? this.persistedState?.query?.text ?? "";
const id = useTabs.getState().getTabs(ViewModels.CollectionTabKind.Query).length + 1; const id = useTabs.getState().getTabs(ViewModels.CollectionTabKind.Query).length + 1;
const newTab = new NewQueryTab( const newTab = new NewQueryTab(
{ {