@@ -25,17 +25,22 @@ def test_presentation(self):
2525 self .open ("data:," )
2626 self .open ("https://www.bostoncodecamp.com/CC34/Schedule/SessionGrid" )
2727 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 )
3944 self .open ("data:," )
4045 self .create_presentation (theme = "sky" , transition = "fade" )
4146 self .add_slide (
@@ -708,11 +713,11 @@ def test_presentation(self):
708713 '<span class="str">'
709714 ' (Slow down the automation. Faster than Demo Mode.)'
710715 '</span>\n '
711- '<span class="kwd">--reuse-session / --rs </span>'
716+ '<span class="kwd">--rs / --reuse-session </span>'
712717 '<span class="str">'
713718 ' (Reuse browser session for tests.)'
714719 '</span>\n '
715- '<span class="kwd">--reuse-class-session / --rcs </span>'
720+ '<span class="kwd">--rcs / --reuse-class-session </span>'
716721 '<span class="str">'
717722 ' (RS, but for class tests.)'
718723 '</span>\n '
@@ -756,7 +761,7 @@ def test_presentation(self):
756761 '<span class="str">'
757762 ' (Create a detailed pytest-html report.)'
758763 '</span>\n '
759- '<span class="kwd">--collect-only / --co </span>'
764+ '<span class="kwd">--co / --collect-only </span>'
760765 '<span class="str">'
761766 ' (Only show discovered tests. No run.)'
762767 '</span>\n '
0 commit comments