@@ -11,7 +11,7 @@ import { BASE_PATH } from '../../../utils/constants';
1111
1212dayjs . extend ( customParseFormat ) ;
1313
14- const delay = 100 ;
14+ const delay = 5000 ;
1515const GANTT_VIS_NAME =
1616 'A test gantt chart ' + Math . random ( ) . toString ( 36 ) . substring ( 2 ) ;
1717const Y_LABEL = 'A unique label for Y-axis' ;
@@ -57,6 +57,7 @@ describe('Dump test data', () => {
5757describe ( 'Save a gantt chart' , ( ) => {
5858 beforeEach ( ( ) => {
5959 cy . visit ( `${ BASE_PATH } /app/visualize#` ) ;
60+ cy . wait ( delay ) ;
6061 } ) ;
6162
6263 it ( 'Creates and saves a gantt chart' , ( ) => {
@@ -83,8 +84,10 @@ describe('Save a gantt chart', () => {
8384
8485describe ( 'Render and configure a gantt chart' , ( ) => {
8586 beforeEach ( ( ) => {
87+ cy . wait ( delay ) ;
8688 cy . visit ( `${ BASE_PATH } /app/visualize#` ) ;
8789 cy . contains ( GANTT_VIS_NAME ) . click ( { force : true } ) ;
90+ cy . wait ( delay ) ;
8891 } ) ;
8992
9093 it ( 'Renders no data message' , ( ) => {
@@ -114,7 +117,7 @@ describe('Render and configure a gantt chart', () => {
114117 cy . wait ( delay ) ;
115118
116119 cy . get ( '.traces' ) . should ( 'have.length' , DEFAULT_SIZE ) ;
117-
120+ cy . wait ( delay ) ;
118121 cy . get ( '.euiButton__text' ) . contains ( 'Save' ) . click ( { force : true } ) ;
119122 cy . wait ( delay ) ;
120123 cy . get ( 'button[data-test-subj="confirmSaveSavedObjectButton"]' ) . click ( {
@@ -128,6 +131,7 @@ describe('Configure panel settings', () => {
128131 cy . visit ( `${ BASE_PATH } /app/visualize#` ) ;
129132 cy . contains ( GANTT_VIS_NAME ) . click ( { force : true } ) ;
130133 cy . contains ( 'Panel settings' ) . click ( { force : true } ) ;
134+ cy . wait ( delay ) ;
131135 } ) ;
132136
133137 it ( 'Changes y-axis label' , ( ) => {
@@ -244,7 +248,7 @@ describe('Configure panel settings', () => {
244248describe ( 'Add gantt chart to dashboard' , ( ) => {
245249 it ( 'Adds gantt chart to dashboard' , ( ) => {
246250 cy . visit ( `${ BASE_PATH } /app/dashboards#/create` ) ;
247-
251+ cy . wait ( delay ) ;
248252 cy . contains ( 'Add an existing' ) . click ( { force : true } ) ;
249253 cy . wait ( delay ) ;
250254 cy . get ( 'input[data-test-subj="savedObjectFinderSearchInput"]' )
0 commit comments