File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1245,12 +1245,15 @@ mod tests {
1245
1245
. add_target ( "x86_64-pc-windows-msvc" )
1246
1246
. create ( ) ?;
1247
1247
1248
- let response = env. frontend ( ) . get ( "/crate/dummy/0.4.0" ) . send ( ) ?;
1248
+ let response = env
1249
+ . frontend ( )
1250
+ . get ( "/menus/platforms/dummy/0.4.0/x86_64-pc-windows-msvc" )
1251
+ . send ( ) ?;
1249
1252
assert ! ( response. status( ) . is_success( ) ) ;
1250
1253
1251
1254
let platform_links: Vec < ( String , String ) > = kuchikiki:: parse_html ( )
1252
1255
. one ( response. text ( ) ?)
1253
- . select ( r#"a[aria-label="Platform"] + ul li a"# )
1256
+ . select ( r#"li a"# )
1254
1257
. expect ( "invalid selector" )
1255
1258
. map ( |el| {
1256
1259
let attributes = el. attributes . borrow ( ) ;
Original file line number Diff line number Diff line change @@ -2260,7 +2260,7 @@ mod test {
2260
2260
2261
2261
// test rustdoc pages stay on the documentation
2262
2262
let page = kuchikiki:: parse_html ( )
2263
- . one ( env. frontend ( ) . get ( "/hexponent /releases" ) . send ( ) ?. text ( ) ?) ;
2263
+ . one ( env. frontend ( ) . get ( "/menus /releases/hexponent " ) . send ( ) ?. text ( ) ?) ;
2264
2264
let selector =
2265
2265
r#"ul > li a[href="/crate/hexponent/0.3.1/target-redirect/hexponent/index.html"]"#
2266
2266
. to_string ( ) ;
You can’t perform that action at this time.
0 commit comments