File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -991,7 +991,7 @@ mod tests {
991991
992992 let platform_links: Vec < ( String , String ) > = kuchiki:: parse_html ( )
993993 . one ( response. text ( ) ?)
994- . select ( r#"a [aria-label="Platform"] + ul li a"# )
994+ . select ( r#"summary [aria-label="Platform"] + ul li a"# )
995995 . expect ( "invalid selector" )
996996 . map ( |el| {
997997 let attributes = el. attributes . borrow ( ) ;
Original file line number Diff line number Diff line change @@ -952,7 +952,7 @@ mod test {
952952 let text = web. get ( "/foo/0.2.0/foo" ) . send ( ) ?. text ( ) ?;
953953 let platform = kuchiki:: parse_html ( )
954954 . one ( text)
955- . select ( r#"ul > li > a [aria-label="Platform"]"# )
955+ . select ( r#"form.landing-search-form-nav details > summary [aria-label="Platform"]"# )
956956 . unwrap ( )
957957 . count ( ) ;
958958 assert_eq ! ( platform, 1 ) ;
Original file line number Diff line number Diff line change @@ -861,7 +861,7 @@ mod test {
861861 let dom = kuchiki:: parse_html ( ) . one ( data) ;
862862
863863 if let Some ( elem) = dom
864- . select ( "form > ul > li > a.warn" )
864+ . select ( "form.landing-search-form-nav > a.warn.pure-menu-item " )
865865 . expect ( "invalid selector" )
866866 . next ( )
867867 {
@@ -1257,7 +1257,7 @@ mod test {
12571257 let data = web. get ( path) . send ( ) ?. text ( ) ?;
12581258 Ok ( kuchiki:: parse_html ( )
12591259 . one ( data)
1260- . select ( "form > ul > li > .warn" )
1260+ . select ( "form.landing-search-form-nav > .warn.pure-menu-item " )
12611261 . expect ( "invalid selector" )
12621262 . any ( |el| el. text_contents ( ) . contains ( "yanked" ) ) )
12631263 }
@@ -1502,7 +1502,7 @@ mod test {
15021502 let data = web. get ( path) . send ( ) ?. text ( ) ?;
15031503 let dom = kuchiki:: parse_html ( ) . one ( data) ;
15041504 Ok ( dom
1505- . select ( r#"a [aria-label="Platform"] + ul li a"# )
1505+ . select ( r#"summary [aria-label="Platform"] + ul li a"# )
15061506 . expect ( "invalid selector" )
15071507 . map ( |el| {
15081508 let attributes = el. attributes . borrow ( ) ;
You can’t perform that action at this time.
0 commit comments