Skip to content

Commit c6cd50d

Browse files
committed
Revert "folds #345"
This reverts commit 1933954.
1 parent 1933954 commit c6cd50d

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

.github/workflows/ci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ jobs:
5555

5656
- name: Run browser-tests test - auth
5757
run: node packages/web-console/serve-dist.js & yarn workspace browser-tests test:auth
58-
env:
59-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
6058

6159
- name: Stop QuestDB
6260
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop
@@ -70,8 +68,6 @@ jobs:
7068

7169
- name: Run browser-tests test
7270
run: yarn workspace browser-tests test
73-
env:
74-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
7571

7672
- name: Print Log Files
7773
if: success() || failure()

packages/browser-tests/cypress.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ const contextPath = process.env.QDB_HTTP_CONTEXT_WEB_CONSOLE || ""
77
const baseUrl = `http://localhost:9999${contextPath}`;
88

99
module.exports = defineConfig({
10-
projectId: "8vtikv",
1110
defaultCommandTimeout: 10000,
1211
e2e: {
1312
defaultCommandTimeout: 30000,
1413
screenshotOnRunFailure: false,
15-
video: true,
14+
video: false,
1615
baseUrl: baseUrl,
1716
chromeWebSecurity: false, //if it is true, cypress does not allow redirects
1817
viewportWidth: 1280,

packages/browser-tests/cypress/commands.js

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

114114
Cypress.Commands.add("typeQuery", (query) =>
115-
cy.getEditor().click().type(query)
115+
cy.getEditor().realClick().type(query)
116116
);
117117

118118
Cypress.Commands.add("runLine", () => {
@@ -250,7 +250,6 @@ Cypress.Commands.add("loginWithUserAndPassword", () => {
250250
Cypress.Commands.add("loadConsoleWithAuth", (clearWarnings) => {
251251
cy.clearLocalStorage();
252252
indexedDB.deleteDatabase("web-console");
253-
cy.wait(1000);
254253
cy.visit(baseUrl);
255254
cy.loginWithUserAndPassword();
256255
cy.wait(1000);

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -434,19 +434,20 @@ describe("editor tabs", () => {
434434

435435
it("should close and archive tabs", () => {
436436
cy.getEditorContent().should("be.visible");
437+
cy.typeQuery("--1");
438+
cy.get(".new-tab-button").click();
439+
cy.get(".new-tab-button").click();
437440
["SQL 1", "SQL 2"].forEach((title, index) => {
438-
cy.get(".new-tab-button").click();
439441
cy.get(getTabDragHandleByTitle(title)).click();
440442
cy.getEditorContent().should("be.visible");
441-
cy.wait(500);
442443
cy.typeQuery(`-- ${index + 1}`);
443444
cy.getEditorTabByTitle(title).within(() => {
444445
cy.get(".chrome-tab-close").click();
445446
});
446447
cy.getEditorTabByTitle(title).should("not.exist");
447448
});
448449
cy.getByDataHook("editor-tabs-history-button").click();
449-
cy.wait(1000);
450+
cy.getByDataHook("editor-tabs-history").should("be.visible");
450451
cy.getByDataHook("editor-tabs-history-item")
451452
.should("have.length", 2)
452453
.should("contain", "SQL 1");

packages/browser-tests/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"packageManager": "yarn@3.1.1",
44
"private": true,
55
"scripts": {
6-
"test": "cypress run --record --env failOnSnapshotDiff=false --env requireSnapshots=false --spec 'cypress/integration/console/*.spec.js'",
7-
"test:auth": "cypress run --record --env failOnSnapshotDiff=false --env requireSnapshots=false --spec 'cypress/integration/auth/*.spec.js'",
6+
"test": "cypress run --env failOnSnapshotDiff=false --env requireSnapshots=false --spec 'cypress/integration/console/*.spec.js'",
7+
"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"
1010
},
@@ -16,4 +16,4 @@
1616
"dependencies": {
1717
"cypress-real-events": "^1.13.0"
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)