File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 56
56
strategy :
57
57
fail-fast : false
58
58
matrix :
59
- grafana_image : ['grafana:latest', 'grafana:9.0.9']
59
+ grafana_image : ['grafana:latest', 'grafana:10.2.5', 'grafana: 9.0.9']
60
60
steps :
61
61
- name : Checkout
62
62
uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -20,7 +20,16 @@ describe('PCP Redis data source', () => {
20
20
21
21
it ( 'should auto-complete metric names' , ( ) => {
22
22
cy . visit ( '/dashboard/new' ) ;
23
- cy . contains ( 'Add a new panel' ) . click ( ) ;
23
+
24
+ //tests for grafana 10 UI
25
+ cy . get ( 'body' ) . then ( ( $body ) => {
26
+ if ( $body . text ( ) . search ( 'Add a new panel' ) > 0 ) {
27
+ cy . contains ( 'Add a new panel' ) . click ( ) ;
28
+ } else {
29
+ cy . contains ( 'Add visualization' ) . click ( ) ;
30
+ cy . get ( 'div.scrollbar-view' ) . contains ( 'PCP Redis' ) . click ( ) ;
31
+ }
32
+ } ) ;
24
33
25
34
// start typing
26
35
cy . get ( '.monaco-editor textarea' ) . type ( 'disk.dev.by' , { force : true } ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,16 @@ describe('PCP Vector data source', () => {
20
20
21
21
it ( 'should auto-complete metric names' , ( ) => {
22
22
cy . visit ( '/dashboard/new' ) ;
23
- cy . contains ( 'Add a new panel' ) . click ( ) ;
23
+
24
+ //test for Grafana 10 UI
25
+ cy . get ( 'body' ) . then ( ( $body ) => {
26
+ if ( $body . text ( ) . search ( 'Add a new panel' ) > 0 ) {
27
+ cy . contains ( 'Add a new panel' ) . click ( ) ;
28
+ } else {
29
+ cy . contains ( 'Add visualization' ) . click ( ) ;
30
+ cy . contains ( 'PCP Vector' ) . click ( ) ; ;
31
+ }
32
+ } ) ;
24
33
25
34
// start typing
26
35
cy . get ( '.monaco-editor' ) . type ( 'disk.dev.write_b' ) ;
You can’t perform that action at this time.
0 commit comments