Skip to content

Commit 140df2c

Browse files
committedMar 24, 2025
remvoe warnings test flakiness
1 parent 7bf9492 commit 140df2c

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed
 

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Cypress.Commands.add("loadConsoleWithAuth", (clearWarnings) => {
259259
cy.clearLocalStorage();
260260
indexedDB.deleteDatabase("web-console");
261261
cy.visit(baseUrl);
262-
//cy.loginWithUserAndPassword();
262+
cy.loginWithUserAndPassword();
263263
cy.getEditorContent().should("be.visible");
264264
if (clearWarnings) {
265265
cy.clearSimulatedWarnings();

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

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

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

1820
before(() => {
1921
cy.loadConsoleWithAuth(true);
20-
cy.getEditorContent().should("be.visible");
22+
cy.getEditorContent().should("be.visible").focus();
2123
cy.clearEditor();
2224
[
2325
"select simulate_warnings('UNSUPPORTED FILE SYSTEM', 'Unsupported file system [dir=/questdb/path/dbRoot, magic=0x6400A468]');",
2426
"select simulate_warnings('TOO MANY OPEN FILES', 'fs.file-max limit is too low [current=1024, recommended=1048576]');",
2527
"select simulate_warnings('OUT OF MMAP AREAS', 'vm.max_map_count limit is too low [current=4096, recommended=1048576]');",
26-
].forEach((query) => {
27-
cy.typeQuery(query).runLine().clearEditor();
28+
].forEach((query, index) => {
29+
if (index > 0) {
30+
cy.wait(500);
31+
}
32+
cy.getEditorContent().should("be.visible").focus();
33+
cy.executeSQL(query);
2834
});
2935
cy.loadConsoleWithAuth();
3036
});

‎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/editor.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"

‎packages/browser-tests/questdb

Submodule questdb updated 169 files

0 commit comments

Comments
 (0)
Failed to load comments.