Skip to content

Commit 7f14f11

Browse files
committed
update for typequery
1 parent cb0f5d4 commit 7f14f11

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/browser-tests/cypress/commands.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Cypress.Commands.add("getGridCol", (n) =>
110110
Cypress.Commands.add("getGridRows", () => cy.get(".qg-r").filter(":visible"));
111111

112112
Cypress.Commands.add("typeQuery", (query) =>
113-
cy.getEditor().realClick().type(query)
113+
cy.getEditor().realClick().focused().type(query)
114114
);
115115

116116
Cypress.Commands.add("typeQueryDirectly", (query) => {
@@ -149,7 +149,9 @@ Cypress.Commands.add("getMountedEditor", () =>
149149
cy.get(".monaco-scrollable-element")
150150
);
151151

152-
Cypress.Commands.add("getEditor", () => cy.get(".monaco-editor[role='code']"));
152+
Cypress.Commands.add("getEditor", () => {
153+
cy.get(".monaco-editor[role='code']");
154+
});
153155

154156
Cypress.Commands.add("getEditorContent", () =>
155157
cy

packages/browser-tests/cypress/integration/console/editor.spec.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,7 @@ describe("editor tabs", () => {
456456
cy.getByDataHook("editor-tabs-history-item").should("not.exist");
457457
});
458458

459-
// TODO: fix the flakiness
460-
it.skip("should drag tabs", () => {
459+
it("should drag tabs", () => {
461460
cy.get(".new-tab-button").click();
462461

463462
cy.getEditorTabByTitle("SQL").should("be.visible");

0 commit comments

Comments
 (0)