@@ -25,17 +25,22 @@ def test_presentation(self):
25
25
self .open ("data:," )
26
26
self .open ("https://www.bostoncodecamp.com/CC34/Schedule/SessionGrid" )
27
27
self .highlight ("h2" , loops = 8 )
28
- self .highlight ('div[data-sessionid="467776"]' , loops = 10 )
29
- self .create_tour (theme = "driverjs" )
30
- self .add_tour_step ("<h2>Here we are</h2>" , '[data-sessionid="467776"]' )
31
- self .play_tour ()
32
- self .click ('a[onclick*="467776"]' )
33
- self .create_tour (theme = "hopscotch" )
34
- self .add_tour_step (
35
- "<h2>What to expect</h2>" , "div.sz-modal-session" , alignment = "left"
36
- )
37
- self .play_tour ()
38
- self .sleep (0.25 )
28
+ if self .is_element_visible ('[data-sessionid="467776"]' ):
29
+ self .highlight ('div[data-sessionid="467776"]' , loops = 10 )
30
+ self .create_tour (theme = "driverjs" )
31
+ self .add_tour_step (
32
+ "<h2>Here we are</h2>" , '[data-sessionid="467776"]'
33
+ )
34
+ self .play_tour ()
35
+ self .click ('a[onclick*="467776"]' )
36
+ self .create_tour (theme = "hopscotch" )
37
+ self .add_tour_step (
38
+ "<h2>What to expect</h2>" ,
39
+ "div.sz-modal-session" ,
40
+ alignment = "left" ,
41
+ )
42
+ self .play_tour ()
43
+ self .sleep (0.25 )
39
44
self .open ("data:," )
40
45
self .create_presentation (theme = "sky" , transition = "fade" )
41
46
self .add_slide (
@@ -708,11 +713,11 @@ def test_presentation(self):
708
713
'<span class="str">'
709
714
' (Slow down the automation. Faster than Demo Mode.)'
710
715
'</span>\n '
711
- '<span class="kwd">--reuse-session / --rs </span>'
716
+ '<span class="kwd">--rs / --reuse-session </span>'
712
717
'<span class="str">'
713
718
' (Reuse browser session for tests.)'
714
719
'</span>\n '
715
- '<span class="kwd">--reuse-class-session / --rcs </span>'
720
+ '<span class="kwd">--rcs / --reuse-class-session </span>'
716
721
'<span class="str">'
717
722
' (RS, but for class tests.)'
718
723
'</span>\n '
@@ -756,7 +761,7 @@ def test_presentation(self):
756
761
'<span class="str">'
757
762
' (Create a detailed pytest-html report.)'
758
763
'</span>\n '
759
- '<span class="kwd">--collect-only / --co </span>'
764
+ '<span class="kwd">--co / --collect-only </span>'
760
765
'<span class="str">'
761
766
' (Only show discovered tests. No run.)'
762
767
'</span>\n '
0 commit comments