55
66class HackTests (BaseCase ):
77 def test_all_your_base_are_belong_to_us (self ):
8- self .set_window_size (1220 , 740 )
8+ self .set_window_size (1250 , 740 )
99 ayb = "ALL YOUR BASE"
1010 abtu = "ARE BELONG TO US"
1111 aybabtu = "%s %s" % (ayb , abtu )
@@ -22,8 +22,7 @@ def test_all_your_base_are_belong_to_us(self):
2222 self .set_text_content ("#n-currentevents a" , "BASE" )
2323 self .set_text_content ("#n-randompage a" , "ARE" )
2424 self .set_text_content ("#n-aboutsite a" , "BELONG" )
25- self .set_text_content ("#n-contactpage a" , "TO" )
26- self .set_text_content ("#n-sitesupport a" , "US" )
25+ self .set_text_content ("#n-contactpage a" , "TO US" )
2726 self .highlight ("h1#firstHeading" , loops = 5 , scroll = False )
2827 zoom_in = "#ca-history a{zoom: 1.8;-moz-transform: scale(1.8);}"
2928 self .add_css_style (zoom_in )
@@ -86,11 +85,8 @@ def test_all_your_base_are_belong_to_us(self):
8685 self .highlight ('form[role="search"]' , loops = 8 )
8786
8887 self .open ("https://github.com/features/actions" )
89- self .set_text_content ("h2.h2-mktg" , aybabtu )
90- self .set_text_content ("a.btn-large-mktg" , aybabtu )
91- self .highlight ("h2.h2-mktg" , loops = 8 , scroll = False )
92- self .scroll_to ("h2.h2-mktg" )
93- self .highlight ("a.btn-large-mktg" , loops = 8 , scroll = False )
88+ self .set_text_content ("#hero-section-brand-heading" , aybabtu )
89+ self .highlight ("#hero-section-brand-heading" , loops = 14 , scroll = False )
9490
9591 self .open ("https://dev.to/top/infinity" )
9692 self .click_if_visible ('button[aria-label="Close campaign banner"]' )
0 commit comments