File tree 5 files changed +9
-14
lines changed
5 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 55
55
56
56
- name : Run browser-tests test - auth
57
57
run : node packages/web-console/serve-dist.js & yarn workspace browser-tests test:auth
58
- env :
59
- CYPRESS_RECORD_KEY : ${{ secrets.CYPRESS_RECORD_KEY }}
60
58
61
59
- name : Stop QuestDB
62
60
run : ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop
70
68
71
69
- name : Run browser-tests test
72
70
run : yarn workspace browser-tests test
73
- env :
74
- CYPRESS_RECORD_KEY : ${{ secrets.CYPRESS_RECORD_KEY }}
75
71
76
72
- name : Print Log Files
77
73
if : success() || failure()
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ const contextPath = process.env.QDB_HTTP_CONTEXT_WEB_CONSOLE || ""
7
7
const baseUrl = `http://localhost:9999${ contextPath } ` ;
8
8
9
9
module . exports = defineConfig ( {
10
- projectId : "8vtikv" ,
11
10
defaultCommandTimeout : 10000 ,
12
11
e2e : {
13
12
defaultCommandTimeout : 30000 ,
14
13
screenshotOnRunFailure : false ,
15
- video : true ,
14
+ video : false ,
16
15
baseUrl : baseUrl ,
17
16
chromeWebSecurity : false , //if it is true, cypress does not allow redirects
18
17
viewportWidth : 1280 ,
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ Cypress.Commands.add("getGridCol", (n) =>
112
112
Cypress . Commands . add ( "getGridRows" , ( ) => cy . get ( ".qg-r" ) . filter ( ":visible" ) ) ;
113
113
114
114
Cypress . Commands . add ( "typeQuery" , ( query ) =>
115
- cy . getEditor ( ) . click ( ) . type ( query )
115
+ cy . getEditor ( ) . realClick ( ) . type ( query )
116
116
) ;
117
117
118
118
Cypress . Commands . add ( "runLine" , ( ) => {
@@ -250,7 +250,6 @@ Cypress.Commands.add("loginWithUserAndPassword", () => {
250
250
Cypress . Commands . add ( "loadConsoleWithAuth" , ( clearWarnings ) => {
251
251
cy . clearLocalStorage ( ) ;
252
252
indexedDB . deleteDatabase ( "web-console" ) ;
253
- cy . wait ( 1000 ) ;
254
253
cy . visit ( baseUrl ) ;
255
254
cy . loginWithUserAndPassword ( ) ;
256
255
cy . wait ( 1000 ) ;
Original file line number Diff line number Diff line change @@ -434,19 +434,20 @@ describe("editor tabs", () => {
434
434
435
435
it ( "should close and archive tabs" , ( ) => {
436
436
cy . getEditorContent ( ) . should ( "be.visible" ) ;
437
+ cy . typeQuery ( "--1" ) ;
438
+ cy . get ( ".new-tab-button" ) . click ( ) ;
439
+ cy . get ( ".new-tab-button" ) . click ( ) ;
437
440
[ "SQL 1" , "SQL 2" ] . forEach ( ( title , index ) => {
438
- cy . get ( ".new-tab-button" ) . click ( ) ;
439
441
cy . get ( getTabDragHandleByTitle ( title ) ) . click ( ) ;
440
442
cy . getEditorContent ( ) . should ( "be.visible" ) ;
441
- cy . wait ( 500 ) ;
442
443
cy . typeQuery ( `-- ${ index + 1 } ` ) ;
443
444
cy . getEditorTabByTitle ( title ) . within ( ( ) => {
444
445
cy . get ( ".chrome-tab-close" ) . click ( ) ;
445
446
} ) ;
446
447
cy . getEditorTabByTitle ( title ) . should ( "not.exist" ) ;
447
448
} ) ;
448
449
cy . getByDataHook ( "editor-tabs-history-button" ) . click ( ) ;
449
- cy . wait ( 1000 ) ;
450
+ cy . getByDataHook ( "editor-tabs-history" ) . should ( "be.visible" ) ;
450
451
cy . getByDataHook ( "editor-tabs-history-item" )
451
452
. should ( "have.length" , 2 )
452
453
. should ( "contain" , "SQL 1" ) ;
Original file line number Diff line number Diff line change 3
3
"packageManager" : " yarn@3.1.1" ,
4
4
"private" : true ,
5
5
"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'" ,
8
8
"test:enterprise" : " cypress run --env failOnSnapshotDiff=false --env requireSnapshots=false --spec 'cypress/integration/enterprise/*.spec.js'" ,
9
9
"test:update" : " yarn run test --env updateSnapshots=true"
10
10
},
16
16
"dependencies" : {
17
17
"cypress-real-events" : " ^1.13.0"
18
18
}
19
- }
19
+ }
You can’t perform that action at this time.
0 commit comments