Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Nov 29, 2024
1 parent 19bc0fb commit 61f34b2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions shared/studio/tabs/queryEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ const QueryCodeEditor = observer(function QueryCodeEditor() {
{
key: "Mod-Enter",
run: () => {
console.log("run query keybinding");
editorState.runQuery();
return true;
},
Expand Down
1 change: 1 addition & 0 deletions shared/studio/tabs/queryEditor/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@ export class QueryEditor extends Model({

@modelFlow
runQuery = _async(function* (this: QueryEditor) {
console.log(this.canRunQuery);
if (!this.canRunQuery) {
return;
}
Expand Down
1 change: 1 addition & 0 deletions web/tests/_testenv.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {Builder, Browser, By, until, Key, error} from "selenium-webdriver";
import chrome from "selenium-webdriver/chrome.js";

let opts = new chrome.Options();
opts.enableBidi();

if (process.env["CI"] || !process.argv.slice(2).includes("--no-headless")) {
opts.addArguments("--headless=new");
Expand Down
7 changes: 7 additions & 0 deletions web/tests/clientSettings.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {LogInspector} from "selenium-webdriver";

import {ByUIClass, goToPage, uiClass, cmdCtrl} from "./_utils";

describe("clientSettings:", () => {
Expand All @@ -13,6 +15,11 @@ describe("clientSettings:", () => {
});

test("change implicit limit to 10 and show up to 10 results", async () => {
const inspector = await LogInspector(driver);
await inspector.onConsoleEntry(function (log) {
console.log(log);
});

// wait until schema loaded and open panel button available
const openPanelButton = await driver.wait(
until.elementLocated(ByUIClass("sessionState_openPanel"))
Expand Down

0 comments on commit 61f34b2

Please sign in to comment.