@@ -137,12 +137,14 @@ def test_all_your_base_are_belong_to_us(self):
137
137
self .highlight ("h1" , loops = 8 , scroll = False )
138
138
139
139
self .open ("https://dev.to/top/infinity" )
140
+ self .click_if_visible ('button[aria-label="Close campaign banner"]' )
140
141
self .set_text_content ('nav a[data-text="Feed"]' , "ALL" )
141
- self .set_text_content ('nav a[data-text="Week"]' , "YOUR" )
142
- self .set_text_content ('nav a[data-text="Month"]' , "BASE" )
143
- self .set_text_content ('nav a[data-text="Year"]' , "ARE" )
144
- self .set_text_content ('nav a[data-text="Infinity"]' , "BELONG" )
145
- self .set_text_content ('nav a[data-text="Latest"]' , "TO_US" )
142
+ self .set_text_content ('nav a[data-text="Latest"]' , "YOUR" )
143
+ self .set_text_content ('nav a[data-text="Top"]' , "BASE" )
144
+ self .set_text_content ('nav a[data-text="Week"]' , "ARE" )
145
+ self .set_text_content ('nav a[data-text="Month"]' , "BELONG" )
146
+ self .set_text_content ('nav a[data-text="Year"]' , "TO" )
147
+ self .set_text_content ('nav a[data-text="Infinity"]' , "US" )
146
148
self .set_text_content ('aside a[class*="tful"]' , aybabtu )
147
149
self .set_text_content ('aside a[aria-label="Create new account"]' , ayb )
148
150
self .set_text_content ('aside a[aria-label="Log in"]' , abtu )
@@ -156,13 +158,13 @@ def test_all_your_base_are_belong_to_us(self):
156
158
self .type ('input[name="q"]' , aybabtu )
157
159
self .highlight ('input[name="q"]' , loops = 4 , scroll = False )
158
160
self .highlight ('[aria-label="Primary sidebar"] div div' , scroll = False )
159
- self .highlight ('nav.crayons-tabs' , loops = 3 , scroll = False )
160
161
self .highlight ('nav a[data-text="Feed"]' , loops = 1 , scroll = False )
162
+ self .highlight ('nav a[data-text="Latest"]' , loops = 1 , scroll = False )
163
+ self .highlight ('nav a[data-text="Top"]' , loops = 2 , scroll = False )
161
164
self .highlight ('nav a[data-text="Week"]' , loops = 1 , scroll = False )
162
- self .highlight ('nav a[data-text="Month"]' , loops = 2 , scroll = False )
165
+ self .highlight ('nav a[data-text="Month"]' , loops = 1 , scroll = False )
163
166
self .highlight ('nav a[data-text="Year"]' , loops = 1 , scroll = False )
164
- self .highlight ('nav a[data-text="Infinity"]' , loops = 1 , scroll = False )
165
- self .highlight ('nav a[data-text="Latest"]' , loops = 2 , scroll = False )
167
+ self .highlight ('nav a[data-text="Infinity"]' , loops = 2 , scroll = False )
166
168
self .highlight ('aside[id*="sidebar"] section' , loops = 5 , scroll = False )
167
169
self .highlight ("div.crayons-story__body" , loops = 7 , scroll = False )
168
170
0 commit comments