@@ -111,8 +111,16 @@ module.exports = () => {
111111 ) ;
112112
113113 await waitForNavigation ( page , ( ) => pressElement ( page , '#env-overview' ) ) ;
114- await waitForNavigation ( page , ( ) => pressElement ( page , '#rowDxi029djX a:first-of-type' ) ) ;
115- await pressElement ( page , '#raw-configuration-tab' ) ;
114+ try {
115+ await waitForNavigation ( page , ( ) => pressElement ( page , '#rowDxi029djX a:first-of-type' ) ) ;
116+ await pressElement ( page , '#raw-configuration-tab' ) ;
117+ } catch ( error ) {
118+ const html = await page . content ( ) ;
119+
120+ console . log ( html ) ;
121+
122+ throw error ;
123+ }
116124
117125 await expectInnerText (
118126 page ,
@@ -149,14 +157,22 @@ module.exports = () => {
149157 it ( 'should successfully display FLP and ECS links' , async ( ) => {
150158 const containerSelector = '.flex-row.w-100.g2.items-baseline.mb3' ;
151159
152- await expectLink ( page , `${ containerSelector } a:nth-of-type(1)` , {
153- href :
154- 'http://localhost:8081/?q={%22partition%22:{%22match%22:%22CmCvjNbg%22},%22severity%22:{%22in%22:%22W%20E%20F%22}}' ,
155- innerText : 'FLP' ,
156- } ) ;
157- await expectLink ( page , `${ containerSelector } a:nth-of-type(2)` , {
158- href : 'http://localhost:8080/?page=environment&id=CmCvjNbg' ,
159- innerText : 'ECS' ,
160- } ) ;
160+ try {
161+ await expectLink ( page , `${ containerSelector } a:nth-of-type(1)` , {
162+ href :
163+ 'http://localhost:8081/?q={%22partition%22:{%22match%22:%22CmCvjNbg%22},%22severity%22:{%22in%22:%22W%20E%20F%22}}' ,
164+ innerText : 'FLP' ,
165+ } ) ;
166+ await expectLink ( page , `${ containerSelector } a:nth-of-type(2)` , {
167+ href : 'http://localhost:8080/?page=environment&id=CmCvjNbg' ,
168+ innerText : 'ECS' ,
169+ } ) ;
170+ } catch ( error ) {
171+ const html = await page . content ( ) ;
172+
173+ console . log ( html ) ;
174+
175+ throw error ;
176+ }
161177 } ) ;
162178} ;
0 commit comments