File tree 1 file changed +1
-17
lines changed
cypress/integration/plugins/observability-dashboards
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import {
10
10
BASE_PATH ,
11
11
delayTime ,
12
12
MARKDOWN_TEXT ,
13
- OBSERVABILITY_INDEX_NAME ,
14
13
} from '../../../utils/constants' ;
15
14
16
15
import { skipOn } from '@cypress/skip-test' ;
@@ -33,22 +32,7 @@ const makeTestNotebook = () => {
33
32
cy . get ( 'input[data-test-subj="custom-input-modal-input"]' ) . type ( notebookName ) ;
34
33
cy . get ( 'button[data-test-subj="custom-input-modal-confirm-button"]' ) . click ( ) ;
35
34
36
- // Force refresh the observablity index and reload page to load notebooks.
37
- cy . request ( {
38
- method : 'POST' ,
39
- failOnStatusCode : false ,
40
- form : false ,
41
- url : 'api/console/proxy' ,
42
- headers : {
43
- 'content-type' : 'application/json;charset=UTF-8' ,
44
- 'osd-xsrf' : true ,
45
- } ,
46
- qs : {
47
- path : `${ OBSERVABILITY_INDEX_NAME } /_refresh` ,
48
- method : 'POST' ,
49
- } ,
50
- } ) ;
51
- cy . reload ( ) ;
35
+ cy . contains ( `Notebook "${ notebookName } " successfully created` ) ;
52
36
53
37
cy . get ( 'h1[data-test-subj="notebookTitle"]' )
54
38
. contains ( notebookName )
You can’t perform that action at this time.
0 commit comments