@@ -21,6 +21,7 @@ import { FtrProviderContext } from '../ftr_provider_context';
2121
2222export default function ( { getService, getPageObjects } : FtrProviderContext ) {
2323 const PageObjects = getPageObjects ( [ 'common' , 'discover' , 'header' , 'share' , 'timePicker' ] ) ;
24+ const retry = getService ( 'retry' ) ;
2425 const a11y = getService ( 'a11y' ) ;
2526 const esArchiver = getService ( 'esArchiver' ) ;
2627 const kibanaServer = getService ( 'kibanaServer' ) ;
@@ -33,8 +34,7 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
3334 [ 'geo.src' , 'IN' ] ,
3435 ] ;
3536
36- // FLAKY: https://github.com/elastic/kibana/issues/62497
37- describe . skip ( 'Discover' , ( ) => {
37+ describe ( 'Discover' , ( ) => {
3838 before ( async ( ) => {
3939 await esArchiver . load ( 'discover' ) ;
4040 await esArchiver . loadIfNeeded ( 'logstash_functional' ) ;
@@ -133,7 +133,14 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
133133 // Context view test
134134 it ( 'should open context view on a doc' , async ( ) => {
135135 await docTable . clickRowToggle ( ) ;
136- await ( await docTable . getRowActions ( ) ) [ 0 ] . click ( ) ;
136+ // click the open action
137+ await retry . try ( async ( ) => {
138+ const rowActions = await docTable . getRowActions ( ) ;
139+ if ( ! rowActions . length ) {
140+ throw new Error ( 'row actions empty, trying again' ) ;
141+ }
142+ await rowActions [ 0 ] . click ( ) ;
143+ } ) ;
137144 await a11y . testAppSnapshot ( ) ;
138145 } ) ;
139146
0 commit comments