@@ -91,10 +91,11 @@ def test_all_your_base_are_belong_to_us(self):
91
91
self .open ("https://dev.to/top/infinity" )
92
92
self .click_if_visible ('button[aria-label="Close campaign banner"]' )
93
93
self .click_if_visible ('svg[aria-label="Close campaign banner"]' )
94
- try :
94
+ self .click_if_visible ('button[id*="sponsorship-close-trigger"]' )
95
+ if self .is_element_visible ('main div:contains("Pinned")' ):
95
96
self .hide_elements ('main div:contains("Pinned")' )
96
- except Exception :
97
- pass
97
+ if self . is_element_visible ( '[data-type-of="in_house"]' ) :
98
+ self . hide_elements ( '[data-type-of="in_house"]' )
98
99
self .set_text_content ('nav a[data-text="Relevant"]' , "ALL" )
99
100
self .set_text_content ('nav a[data-text="Latest"]' , "YOUR" )
100
101
self .set_text_content ('nav a[data-text="Top"]' , "BASE" )
@@ -124,8 +125,6 @@ def test_all_your_base_are_belong_to_us(self):
124
125
self .highlight ('nav a[data-text="Month"]' , loops = 1 , scroll = False )
125
126
self .highlight ('nav a[data-text="Year"]' , loops = 1 , scroll = False )
126
127
self .highlight ('nav a[data-text="Infinity"]' , loops = 3 , scroll = False )
127
- if self .is_element_visible ('h2 a[href*="simonh"]' ):
128
- self .highlight ('h2 a[href*="simonh"]' , loops = 7 , scroll = False )
129
128
if self .is_element_visible ('main h2 a[id*="article"]' ):
130
129
self .highlight ('main h2 a[id*="article"]' , loops = 7 , scroll = False )
131
130
self .highlight ("section.crayons-card" , loops = 7 , scroll = False )
0 commit comments