Skip to content

Commit

Permalink
Update the Edge presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Oct 22, 2023
1 parent 9a4e4ae commit b6221cf
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions examples/presenter/edge_presentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,22 @@ def test_presentation(self):
self.open("data:,")
self.open("https://www.bostoncodecamp.com/CC34/Schedule/SessionGrid")
self.highlight("h2", loops=8)
self.highlight('div[data-sessionid="467776"]', loops=10)
self.create_tour(theme="driverjs")
self.add_tour_step("<h2>Here we are</h2>", '[data-sessionid="467776"]')
self.play_tour()
self.click('a[onclick*="467776"]')
self.create_tour(theme="hopscotch")
self.add_tour_step(
"<h2>What to expect</h2>", "div.sz-modal-session", alignment="left"
)
self.play_tour()
self.sleep(0.25)
if self.is_element_visible('[data-sessionid="467776"]'):
self.highlight('div[data-sessionid="467776"]', loops=10)
self.create_tour(theme="driverjs")
self.add_tour_step(
"<h2>Here we are</h2>", '[data-sessionid="467776"]'
)
self.play_tour()
self.click('a[onclick*="467776"]')
self.create_tour(theme="hopscotch")
self.add_tour_step(
"<h2>What to expect</h2>",
"div.sz-modal-session",
alignment="left",
)
self.play_tour()
self.sleep(0.25)
self.open("data:,")
self.create_presentation(theme="sky", transition="fade")
self.add_slide(
Expand Down Expand Up @@ -708,11 +713,11 @@ def test_presentation(self):
'<span class="str">'
' (Slow down the automation. Faster than Demo Mode.)'
'</span>\n'
'<span class="kwd">--reuse-session / --rs</span>'
'<span class="kwd">--rs / --reuse-session</span>'
'<span class="str">'
' (Reuse browser session for tests.)'
'</span>\n'
'<span class="kwd">--reuse-class-session / --rcs</span>'
'<span class="kwd">--rcs / --reuse-class-session</span>'
'<span class="str">'
' (RS, but for class tests.)'
'</span>\n'
Expand Down Expand Up @@ -756,7 +761,7 @@ def test_presentation(self):
'<span class="str">'
' (Create a detailed pytest-html report.)'
'</span>\n'
'<span class="kwd">--collect-only / --co</span>'
'<span class="kwd">--co / --collect-only</span>'
'<span class="str">'
' (Only show discovered tests. No run.)'
'</span>\n'
Expand Down

0 comments on commit b6221cf

Please sign in to comment.