Skip to content

Commit 47cf6a8

Browse files
committedMar 19, 2025
resolve attempt for editor.spec flakiness
1 parent 4cae3d4 commit 47cf6a8

File tree

4 files changed

+28
-17
lines changed

4 files changed

+28
-17
lines changed
 

‎.github/workflows/ci.yml

+20-14
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
- name: Create DB Root
2929
run: mkdir tmp/dbroot
3030

31-
- name: Start QuestDB
32-
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh start -d ./tmp/dbroot
33-
env:
34-
QDB_DEV_MODE_ENABLED: "true"
31+
# - name: Start QuestDB
32+
# run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh start -d ./tmp/dbroot
33+
# env:
34+
# QDB_DEV_MODE_ENABLED: "true"
3535

3636
- uses: actions/setup-node@v4
3737
with:
@@ -47,17 +47,14 @@ jobs:
4747
- name: Build @questdb/web-console
4848
run: yarn workspace @questdb/web-console run build
4949

50-
- name: Run bundle watcher on @questdb/web-console
51-
run: yarn workspace @questdb/web-console bundlewatch
50+
# - name: Run @questdb/web-console unit tests
51+
# run: yarn workspace @questdb/web-console run test:prod
5252

53-
- name: Run @questdb/web-console unit tests
54-
run: yarn workspace @questdb/web-console run test:prod
53+
# - name: Run browser-tests test - auth
54+
# run: node packages/web-console/serve-dist.js & yarn workspace browser-tests test:auth
5555

56-
- name: Run browser-tests test - auth
57-
run: node packages/web-console/serve-dist.js & yarn workspace browser-tests test:auth
58-
59-
- name: Stop QuestDB
60-
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop
56+
# - name: Stop QuestDB
57+
# run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop
6158

6259
- name: Start QuestDB, set auth credentials
6360
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh start -d ./tmp/dbroot
@@ -66,8 +63,17 @@ jobs:
6663
QDB_HTTP_USER: "admin"
6764
QDB_HTTP_PASSWORD: "quest"
6865

66+
- name: Run bundle watcher on @questdb/web-console
67+
run: yarn workspace @questdb/web-console bundlewatch
68+
6969
- name: Run browser-tests test
70-
run: yarn workspace browser-tests test
70+
run: |
71+
node packages/web-console/serve-dist.js &
72+
sleep 5 # Give the server time to start
73+
for i in {1..10}; do
74+
echo "=== Running editor tests - Iteration $i of 10 ==="
75+
yarn workspace browser-tests test
76+
done
7177
7278
- name: Print Log Files
7379
if: success() || failure()

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,12 @@ Cypress.Commands.add("getMountedEditor", () =>
148148
Cypress.Commands.add("getEditor", () => cy.get(".monaco-editor[role='code'] "));
149149

150150
Cypress.Commands.add("getEditorContent", () =>
151-
cy.get(".monaco-editor textarea")
151+
cy
152+
.get(".monaco-editor")
153+
.should("be.visible")
154+
.find("textarea")
155+
.should("exist")
156+
.should("be.visible")
152157
);
153158

154159
Cypress.Commands.add("getEditorHitbox", () =>

‎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/*.spec.js'",
6+
"test": "cypress run --env failOnSnapshotDiff=false --env requireSnapshots=false --spec 'cypress/integration/console/editor.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 353 files

0 commit comments

Comments
 (0)
Failed to load comments.