@@ -340,6 +340,11 @@ def user(_access_token)
340340 expect ( organization_repository . body ) . to include ( '"@type": "SoftwareSourceCode"' )
341341 expect ( organization_repository . body ) . to include ( 'id="organization-repository-star-history-heading"' )
342342 expect ( organization_repository . body ) . to include ( '>Historia gwiazdek</h2>' )
343+ expect ( organization_repository . body ) . to include (
344+ '<h2 id="organization-repository-badge-heading">Odznaka</h2>'
345+ )
346+ expect ( organization_repository . body ) . to include ( '/badges/repositories/github/polish-org/toolkit.svg' )
347+ expect ( organization_repository . body ) . to include ( 'class="badge-markdown__copy js-copy-badge-markdown"' )
343348 expect ( organization_repository . body ) . to include ( 'href="https://www.star-history.com/polish-org/toolkit"' )
344349 expect ( organization_repository . body ) . to include (
345350 'src="https://api.star-history.com/chart?repos=polish-org%2Ftoolkit&type=date&legend=top-left"'
@@ -2098,10 +2103,14 @@ def expect_user_profile_page(ranking_response:, profile_response:, badge_respons
20982103 '#1' ,
20992104 'Najlepsze projekty' ,
21002105 'alice/app' ,
2101- '12 345'
2106+ '12 345' ,
2107+ '<h2 id="profile-badge-heading">Odznaka</h2>' ,
2108+ '/badges/users/github/alice.svg' ,
2109+ '/badges/repositories/github/alice/app.svg' ,
2110+ 'class="badge-markdown__copy js-copy-badge-markdown"'
21022111 )
21032112 expect ( profile_response . body ) . not_to include ( 'class="ranking-action"' )
2104- expect ( profile_response . body ) . not_to include ( '/badges/users/github/alice.svg ' )
2113+ expect ( profile_response . body ) . not_to include ( 'Twój dostęp Discord ' )
21052114 expect ( badge_response . status ) . to eq ( 200 )
21062115 expect ( badge_response . content_type ) . to include ( 'image/svg+xml' )
21072116 expect_body_to_include ( badge_response , 'Polish Open Source' , '1st' , 'href="https://rank.example/people"' )
@@ -2199,12 +2208,11 @@ def expect_repository_profile_page(**responses)
21992208 'src="https://api.star-history.com/chart?repos=alice%2Fapp&type=date&legend=top-left"'
22002209 )
22012210 expect ( profile_response . body ) . not_to include ( 'Odznaka na GitHub' )
2202- expect ( profile_response . body ) . not_to include ( '/badges/repositories/github/alice/app.svg' )
2203- expect ( owner_profile_response . body ) . to include ( '<h2 id="repository-badge-heading">Odznaka</h2>' )
2211+ expect ( profile_response . body ) . to include ( '<h2 id="repository-badge-heading">Odznaka</h2>' )
22042212 expect ( owner_profile_response . body ) . not_to include ( 'Odznaka na GitHub' )
2205- expect ( owner_profile_response . body ) . to include ( 'class="badge-markdown__copy js-copy-badge-markdown"' )
2206- expect ( owner_profile_response . body ) . to include ( '/badges/repositories/github/alice/app.svg' )
2207- expect ( owner_profile_response . body ) . to include (
2213+ expect ( profile_response . body ) . to include ( 'class="badge-markdown__copy js-copy-badge-markdown"' )
2214+ expect ( profile_response . body ) . to include ( '/badges/repositories/github/alice/app.svg' )
2215+ expect ( profile_response . body ) . to include (
22082216 '[]'
22092217 )
22102218 expect ( badge_response . status ) . to eq ( 200 )
0 commit comments