Skip to content

Commit 05ff991

Browse files
committedMar 24, 2025
remvoe warnings test flakiness
1 parent 7bf9492 commit 05ff991

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed
 

‎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/questdb

Submodule questdb updated 169 files

0 commit comments

Comments
 (0)
Failed to load comments.