Skip to content

Commit 9f24cb9

Browse files
committedMar 24, 2025
open all tests - remove snapshot match
1 parent ee14efa commit 9f24cb9

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed
 

‎packages/browser-tests/cypress/commands.js

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

115115
Cypress.Commands.add("typeQuery", (query) =>
116-
cy.getEditor().realClick().type(query)
116+
cy.getEditor().click({ force: true }).type(query)
117117
);
118118

119119
Cypress.Commands.add("runLine", () => {
@@ -145,7 +145,7 @@ Cypress.Commands.add("getMountedEditor", () =>
145145
cy.get(".monaco-scrollable-element")
146146
);
147147

148-
Cypress.Commands.add("getEditor", () => cy.get(".monaco-editor[role='code'] "));
148+
Cypress.Commands.add("getEditor", () => cy.get(".monaco-editor[role='code']"));
149149

150150
Cypress.Commands.add("getEditorContent", () =>
151151
cy

‎packages/browser-tests/cypress/integration/console/grid.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ describe("questdb grid", () => {
3737
cy.getGridRows().should("have.length", totalRows);
3838
cy.getGridRow(totalRows - 1).should("contain", "100");
3939
});
40-
cy.matchImageSnapshot();
4140
});
4241

4342
it("multiple scrolls till the bottom", () => {

‎packages/browser-tests/cypress/integration/console/warnings.spec.js

+4-10
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,19 @@ describe("System configuration - no warnings", () => {
1212

1313
describe("System configuration - 3 warnings", () => {
1414
after(() => {
15-
cy.getEditorContent().should("be.visible").focus();
16-
cy.executeSQL("select simulate_warnings('', '');");
17-
cy.clearEditor();
15+
cy.typeQuery("select simulate_warnings('', '');").runLine().clearEditor();
1816
});
1917

2018
before(() => {
2119
cy.loadConsoleWithAuth(true);
22-
cy.getEditorContent().should("be.visible").focus();
20+
cy.getEditor().should("be.visible");
2321
cy.clearEditor();
2422
[
2523
"select simulate_warnings('UNSUPPORTED FILE SYSTEM', 'Unsupported file system [dir=/questdb/path/dbRoot, magic=0x6400A468]');",
2624
"select simulate_warnings('TOO MANY OPEN FILES', 'fs.file-max limit is too low [current=1024, recommended=1048576]');",
2725
"select simulate_warnings('OUT OF MMAP AREAS', 'vm.max_map_count limit is too low [current=4096, recommended=1048576]');",
28-
].forEach((query, index) => {
29-
if (index > 0) {
30-
cy.wait(500);
31-
}
32-
cy.getEditorContent().should("be.visible").focus();
33-
cy.executeSQL(query);
26+
].forEach((query) => {
27+
cy.typeQuery(query).runLine().clearEditor();
3428
});
3529
cy.loadConsoleWithAuth();
3630
});

‎packages/browser-tests/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packageManager": "yarn@3.1.1",
44
"private": true,
55
"scripts": {
6-
"test": "cypress run --env failOnSnapshotDiff=false --env requireSnapshots=false --spec 'cypress/integration/console/warnings.spec.js'",
6+
"test": "cypress run --env failOnSnapshotDiff=false --env requireSnapshots=false --spec 'cypress/integration/console/*.spec.js'",
77
"test:auth": "cypress run --env failOnSnapshotDiff=false --env requireSnapshots=false --spec 'cypress/integration/auth/*.spec.js'",
88
"test:enterprise": "cypress run --env failOnSnapshotDiff=false --env requireSnapshots=false --spec 'cypress/integration/enterprise/*.spec.js'",
99
"test:update": "yarn run test --env updateSnapshots=true"

0 commit comments

Comments
 (0)
Failed to load comments.