File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -991,7 +991,7 @@ mod tests {
991
991
992
992
let platform_links: Vec < ( String , String ) > = kuchiki:: parse_html ( )
993
993
. one ( response. text ( ) ?)
994
- . select ( r#"a [aria-label="Platform"] + ul li a"# )
994
+ . select ( r#"summary [aria-label="Platform"] + ul li a"# )
995
995
. expect ( "invalid selector" )
996
996
. map ( |el| {
997
997
let attributes = el. attributes . borrow ( ) ;
Original file line number Diff line number Diff line change @@ -952,7 +952,7 @@ mod test {
952
952
let text = web. get ( "/foo/0.2.0/foo" ) . send ( ) ?. text ( ) ?;
953
953
let platform = kuchiki:: parse_html ( )
954
954
. one ( text)
955
- . select ( r#"ul > li > a [aria-label="Platform"]"# )
955
+ . select ( r#"form.landing-search-form-nav details > summary [aria-label="Platform"]"# )
956
956
. unwrap ( )
957
957
. count ( ) ;
958
958
assert_eq ! ( platform, 1 ) ;
Original file line number Diff line number Diff line change @@ -861,7 +861,7 @@ mod test {
861
861
let dom = kuchiki:: parse_html ( ) . one ( data) ;
862
862
863
863
if let Some ( elem) = dom
864
- . select ( "form > ul > li > a.warn" )
864
+ . select ( "form.landing-search-form-nav > a.warn.pure-menu-item " )
865
865
. expect ( "invalid selector" )
866
866
. next ( )
867
867
{
@@ -1257,7 +1257,7 @@ mod test {
1257
1257
let data = web. get ( path) . send ( ) ?. text ( ) ?;
1258
1258
Ok ( kuchiki:: parse_html ( )
1259
1259
. one ( data)
1260
- . select ( "form > ul > li > .warn" )
1260
+ . select ( "form.landing-search-form-nav > .warn.pure-menu-item " )
1261
1261
. expect ( "invalid selector" )
1262
1262
. any ( |el| el. text_contents ( ) . contains ( "yanked" ) ) )
1263
1263
}
@@ -1502,7 +1502,7 @@ mod test {
1502
1502
let data = web. get ( path) . send ( ) ?. text ( ) ?;
1503
1503
let dom = kuchiki:: parse_html ( ) . one ( data) ;
1504
1504
Ok ( dom
1505
- . select ( r#"a [aria-label="Platform"] + ul li a"# )
1505
+ . select ( r#"summary [aria-label="Platform"] + ul li a"# )
1506
1506
. expect ( "invalid selector" )
1507
1507
. map ( |el| {
1508
1508
let attributes = el. attributes . borrow ( ) ;
You can’t perform that action at this time.
0 commit comments