Skip to content

Commit 319507b

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

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed
 

‎.github/workflows/ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ jobs:
6767
QDB_HTTP_PASSWORD: "quest"
6868

6969
- name: Run browser-tests test
70-
run: yarn workspace browser-tests test
70+
run: |
71+
for i in {1..10}; do
72+
echo "=== Running editor tests - Iteration $i of 10 ==="
73+
yarn workspace browser-tests test || exit 1
74+
done
7175
7276
- name: Print Log Files
7377
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.