@@ -56,7 +56,8 @@ export default function ({ getService }: FtrProviderContext) {
5656 await ml . api . cleanMlIndices ( ) ;
5757 } ) ;
5858
59- it ( 'loads from job list row link' , async ( ) => {
59+ it ( 'displays error on broken annotation index and recovers after fix' , async ( ) => {
60+ await ml . testExecution . logTestStep ( 'loads from job list row link' ) ;
6061 await ml . navigation . navigateToMl ( ) ;
6162 await ml . navigation . navigateToJobManagement ( ) ;
6263
@@ -66,43 +67,35 @@ export default function ({ getService }: FtrProviderContext) {
6667 expect ( rows . filter ( ( row ) => row . id === JOB_CONFIG . job_id ) ) . to . have . length ( 1 ) ;
6768
6869 await ml . jobTable . clickOpenJobInSingleMetricViewerButton ( JOB_CONFIG . job_id ) ;
69- await ml . common . waitForMlLoadingIndicatorToDisappear ( ) ;
70- } ) ;
70+ await ml . commonUI . waitForMlLoadingIndicatorToDisappear ( ) ;
7171
72- it ( 'pre-fills the job selection' , async ( ) => {
72+ await ml . testExecution . logTestStep ( 'pre-fills the job selection' ) ;
7373 await ml . jobSelection . assertJobSelection ( [ JOB_CONFIG . job_id ] ) ;
74- } ) ;
7574
76- it ( 'pre-fills the detector input' , async ( ) => {
75+ await ml . testExecution . logTestStep ( 'pre-fills the detector input' ) ;
7776 await ml . singleMetricViewer . assertDetectorInputExsist ( ) ;
7877 await ml . singleMetricViewer . assertDetectorInputValue ( '0' ) ;
79- } ) ;
8078
81- it ( 'should display the annotations section showing an error' , async ( ) => {
79+ await ml . testExecution . logTestStep ( 'should display the annotations section showing an error' ) ;
8280 await ml . singleMetricViewer . assertAnnotationsExists ( 'error' ) ;
83- } ) ;
8481
85- it ( 'should navigate to anomaly explorer' , async ( ) => {
82+ await ml . testExecution . logTestStep ( 'should navigate to anomaly explorer' ) ;
8683 await ml . navigation . navigateToAnomalyExplorerViaSingleMetricViewer ( ) ;
87- } ) ;
8884
89- it ( 'should display the annotations section showing an error' , async ( ) => {
85+ await ml . testExecution . logTestStep ( 'should display the annotations section showing an error' ) ;
9086 await ml . anomalyExplorer . assertAnnotationsPanelExists ( 'error' ) ;
91- } ) ;
9287
93- it ( 'should display the annotations section without an error' , async ( ) => {
88+ await ml . testExecution . logTestStep ( 'should display the annotations section without an error' ) ;
9489 // restores the aliases to point to the original working annotations index
9590 // so we can run tests against successfully loaded annotations sections.
9691 await ml . testResources . restoreAnnotationsIndexState ( ) ;
9792 await ml . anomalyExplorer . refreshPage ( ) ;
9893 await ml . anomalyExplorer . assertAnnotationsPanelExists ( 'loaded' ) ;
99- } ) ;
10094
101- it ( 'should navigate to single metric viewer' , async ( ) => {
95+ await ml . testExecution . logTestStep ( 'should navigate to single metric viewer' ) ;
10296 await ml . navigation . navigateToSingleMetricViewerViaAnomalyExplorer ( ) ;
103- } ) ;
10497
105- it ( 'should display the annotations section without an error' , async ( ) => {
98+ await ml . testExecution . logTestStep ( 'should display the annotations section without an error' ) ;
10699 await ml . singleMetricViewer . assertAnnotationsExists ( 'loaded' ) ;
107100 } ) ;
108101 } ) ;
0 commit comments