@@ -141,24 +141,29 @@ suite(
141
141
} ,
142
142
)
143
143
144
- it ( 'can listen to fragment navigated event' , async function ( ) {
145
- let navigationInfo = null
146
- const browsingConextInspector = await BrowsingContextInspector ( driver )
144
+ ignore ( env . browsers ( Browser . EDGE , Browser . CHROME ) ) . it (
145
+ 'can listen to fragment navigated event' ,
146
+ async function ( ) {
147
+ let navigationInfo = null
148
+ const browsingConextInspector = await BrowsingContextInspector ( driver )
147
149
148
- const browsingContext = await BrowsingContext ( driver , {
149
- browsingContextId : await driver . getWindowHandle ( ) ,
150
- } )
151
- await browsingContext . navigate ( Pages . linkedImage , 'complete' )
150
+ const browsingContext = await BrowsingContext ( driver , {
151
+ browsingContextId : await driver . getWindowHandle ( ) ,
152
+ } )
153
+ await browsingContext . navigate ( Pages . linkedImage , 'complete' )
152
154
153
- await browsingConextInspector . onFragmentNavigated ( ( entry ) => {
154
- navigationInfo = entry
155
- } )
155
+ await browsingConextInspector . onFragmentNavigated ( ( entry ) => {
156
+ navigationInfo = entry
157
+ } )
156
158
157
- await browsingContext . navigate ( Pages . linkedImage + '#linkToAnchorOnThisPage' , 'complete' )
159
+ await browsingContext . navigate ( Pages . linkedImage + '#linkToAnchorOnThisPage' , 'complete' )
158
160
159
- assert . equal ( navigationInfo . browsingContextId , browsingContext . id )
160
- assert ( navigationInfo . url . includes ( 'linkToAnchorOnThisPage' ) )
161
- } )
161
+ // Chrome/Edge do not return the window's browsing context id as per the spec.
162
+ // This assertion fails.
163
+ assert . equal ( navigationInfo . browsingContextId , browsingContext . id )
164
+ assert ( navigationInfo . url . includes ( 'linkToAnchorOnThisPage' ) )
165
+ } ,
166
+ )
162
167
163
168
ignore ( env . browsers ( Browser . EDGE , Browser . CHROME ) ) . it (
164
169
'can listen to user prompt opened event' ,
0 commit comments