mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-08 13:37:29 +01:00
fixed playwright tests
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user