@@ -11,7 +11,7 @@ import { BASE_PATH } from '../../../utils/constants';
11
11
12
12
dayjs . extend ( customParseFormat ) ;
13
13
14
- const delay = 100 ;
14
+ const delay = 5000 ;
15
15
const GANTT_VIS_NAME =
16
16
'A test gantt chart ' + Math . random ( ) . toString ( 36 ) . substring ( 2 ) ;
17
17
const Y_LABEL = 'A unique label for Y-axis' ;
@@ -57,6 +57,7 @@ describe('Dump test data', () => {
57
57
describe ( 'Save a gantt chart' , ( ) => {
58
58
beforeEach ( ( ) => {
59
59
cy . visit ( `${ BASE_PATH } /app/visualize#` ) ;
60
+ cy . wait ( delay ) ;
60
61
} ) ;
61
62
62
63
it ( 'Creates and saves a gantt chart' , ( ) => {
@@ -83,8 +84,10 @@ describe('Save a gantt chart', () => {
83
84
84
85
describe ( 'Render and configure a gantt chart' , ( ) => {
85
86
beforeEach ( ( ) => {
87
+ cy . wait ( delay ) ;
86
88
cy . visit ( `${ BASE_PATH } /app/visualize#` ) ;
87
89
cy . contains ( GANTT_VIS_NAME ) . click ( { force : true } ) ;
90
+ cy . wait ( delay ) ;
88
91
} ) ;
89
92
90
93
it ( 'Renders no data message' , ( ) => {
@@ -114,7 +117,7 @@ describe('Render and configure a gantt chart', () => {
114
117
cy . wait ( delay ) ;
115
118
116
119
cy . get ( '.traces' ) . should ( 'have.length' , DEFAULT_SIZE ) ;
117
-
120
+ cy . wait ( delay ) ;
118
121
cy . get ( '.euiButton__text' ) . contains ( 'Save' ) . click ( { force : true } ) ;
119
122
cy . wait ( delay ) ;
120
123
cy . get ( 'button[data-test-subj="confirmSaveSavedObjectButton"]' ) . click ( {
@@ -128,6 +131,7 @@ describe('Configure panel settings', () => {
128
131
cy . visit ( `${ BASE_PATH } /app/visualize#` ) ;
129
132
cy . contains ( GANTT_VIS_NAME ) . click ( { force : true } ) ;
130
133
cy . contains ( 'Panel settings' ) . click ( { force : true } ) ;
134
+ cy . wait ( delay ) ;
131
135
} ) ;
132
136
133
137
it ( 'Changes y-axis label' , ( ) => {
@@ -244,7 +248,7 @@ describe('Configure panel settings', () => {
244
248
describe ( 'Add gantt chart to dashboard' , ( ) => {
245
249
it ( 'Adds gantt chart to dashboard' , ( ) => {
246
250
cy . visit ( `${ BASE_PATH } /app/dashboards#/create` ) ;
247
-
251
+ cy . wait ( delay ) ;
248
252
cy . contains ( 'Add an existing' ) . click ( { force : true } ) ;
249
253
cy . wait ( delay ) ;
250
254
cy . get ( 'input[data-test-subj="savedObjectFinderSearchInput"]' )
0 commit comments