Skip to content

Commit 795efe6

Browse files
committed
Update tour examples
1 parent 3bcc254 commit 795efe6

8 files changed

+22
-18
lines changed

examples/tour_examples/bootstrap_google_tour.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ def test_google_tour(self):
2121
self.play_tour()
2222

2323
self.highlight_update_text('input[title="Search"]', "GitHub\n")
24+
self.ad_block()
2425
self.wait_for_element("#search")
2526

2627
self.create_bootstrap_tour()
27-
self.add_tour_step("See Results Here!", title="(5-second autoplay)")
28+
self.add_tour_step("3-second autoplay...")
2829
self.add_tour_step("Here's the next tour:")
29-
self.play_tour(interval=5) # Tour automatically continues after 5 sec
30+
self.play_tour(interval=3) # Tour automatically continues after 3 sec
3031

31-
self.open("https://www.google.com/maps/@42.3598616,-71.0912631,15z")
32+
self.open("https://www.google.com/maps/@42.3591234,-71.0915634,15z")
3233
self.wait_for_element("#searchboxinput", timeout=20)
3334
self.wait_for_element("#minimap", timeout=20)
3435
self.wait_for_element("#zoom", timeout=20)

examples/tour_examples/bootstrap_xkcd_tour.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def test_bootstrap_tour(self):
1414
self.add_tour_step("Click here for the next comic.", 'a[rel="next"]')
1515
self.add_tour_step("Click here for the previous one.", 'a[rel="prev"]')
1616
self.add_tour_step("Learn about the author here.", 'a[rel="author"]')
17-
self.add_tour_step("Click here for the license.", 'a[rel="license"]')
1817
self.add_tour_step("Click for a random comic.", 'a[href*="/random/"]')
1918
self.add_tour_step("Thanks for taking this tour!")
2019
self.export_tour(filename="bootstrap_xkcd_tour.js") # Exports the tour

examples/tour_examples/driverjs_maps_tour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class MyTestClass(BaseCase):
55

66
def test_create_tour(self):
7-
self.open("https://www.google.com/maps/@42.3598616,-71.0912631,15z")
7+
self.open("https://www.google.com/maps/@42.3591234,-71.0915634,15z")
88
self.wait_for_element("#searchboxinput", timeout=20)
99
self.wait_for_element("#minimap", timeout=20)
1010
self.wait_for_element("#zoom", timeout=20)

examples/tour_examples/google_tour.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ def test_google_tour(self):
2525
self.play_tour()
2626

2727
self.highlight_update_text('input[title="Search"]', "GitHub\n")
28+
self.ad_block()
2829
self.wait_for_element("#search")
2930

3031
# Create a website tour using the Bootstrap Tour JS library
3132
# Same as: self.create_bootstrap_tour()
3233
self.create_tour(theme="bootstrap")
33-
self.add_tour_step("See Results Here!", title="(5-second autoplay)")
34+
self.add_tour_step("3-second autoplay...")
3435
self.add_tour_step("Here's the next tour:")
35-
self.play_tour(interval=5) # Tour automatically continues after 5 sec
36+
self.play_tour(interval=3) # Tour automatically continues after 3 sec
3637

37-
self.open("https://www.google.com/maps/@42.3598616,-71.0912631,15z")
38+
self.open("https://www.google.com/maps/@42.3591234,-71.0915634,15z")
3839
self.wait_for_element("#searchboxinput")
3940
self.wait_for_element("#minimap")
4041
self.wait_for_element("#zoom")

examples/tour_examples/hopscotch_google_tour.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ def test_google_tour(self):
2121
self.play_tour()
2222

2323
self.highlight_update_text('input[title="Search"]', "GitHub\n")
24+
self.ad_block()
2425
self.wait_for_element("#search")
2526

2627
self.create_hopscotch_tour()
27-
self.add_tour_step("See Results Here!", title="(5-second autoplay)")
28+
self.add_tour_step("3-second autoplay...")
2829
self.add_tour_step("Here's the next tour:")
29-
self.play_tour(interval=5) # Tour automatically continues after 5 sec
30+
self.play_tour(interval=3) # Tour automatically continues after 3 sec
3031

31-
self.open("https://www.google.com/maps/@42.3598616,-71.0912631,15z")
32+
self.open("https://www.google.com/maps/@42.3591234,-71.0915634,15z")
3233
self.wait_for_element("#searchboxinput", timeout=20)
3334
self.wait_for_element("#minimap", timeout=20)
3435
self.wait_for_element("#zoom", timeout=20)

examples/tour_examples/introjs_google_tour.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ def test_google_tour(self):
2121
self.play_tour()
2222

2323
self.highlight_update_text('input[title="Search"]', "GitHub\n")
24+
self.ad_block()
2425
self.wait_for_element("#search")
2526

2627
self.create_introjs_tour()
27-
self.add_tour_step("See Results Here!", title="(5-second autoplay)")
28+
self.add_tour_step("3-second autoplay...")
2829
self.add_tour_step("Here's the next tour:")
29-
self.play_tour(interval=5) # Tour automatically continues after 5 sec
30+
self.play_tour(interval=3) # Tour automatically continues after 3 sec
3031

31-
self.open("https://www.google.com/maps/@42.3598616,-71.0912631,15z")
32+
self.open("https://www.google.com/maps/@42.3591234,-71.0915634,15z")
3233
self.wait_for_element("#searchboxinput", timeout=20)
3334
self.wait_for_element("#minimap", timeout=20)
3435
self.wait_for_element("#zoom", timeout=20)

examples/tour_examples/maps_introjs_tour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class MyTourClass(BaseCase):
55

66
def test_google_maps_tour(self):
7-
self.open("https://www.google.com/maps/@42.3598616,-71.0912631,15z")
7+
self.open("https://www.google.com/maps/@42.3591234,-71.0915634,15z")
88
self.wait_for_element("#searchboxinput", timeout=20)
99
self.wait_for_element("#minimap", timeout=20)
1010
self.wait_for_element("#zoom", timeout=20)

examples/tour_examples/shepherd_google_tour.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ def test_google_tour(self):
2121
self.play_tour()
2222

2323
self.highlight_update_text('input[title="Search"]', "GitHub\n")
24+
self.ad_block()
2425
self.wait_for_element("#search")
2526

2627
self.create_shepherd_tour(theme="square-dark")
27-
self.add_tour_step("See Results Here!", title="(5-second autoplay)")
28+
self.add_tour_step("3-second autoplay...")
2829
self.add_tour_step("Here's the next tour:")
29-
self.play_tour(interval=5) # Tour automatically continues after 5 sec
30+
self.play_tour(interval=3) # Tour automatically continues after 3 sec
3031

31-
self.open("https://www.google.com/maps/@42.3598616,-71.0912631,15z")
32+
self.open("https://www.google.com/maps/@42.3591234,-71.0915634,15z")
3233
self.wait_for_element("#searchboxinput", timeout=20)
3334
self.wait_for_element("#minimap", timeout=20)
3435
self.wait_for_element("#zoom", timeout=20)

0 commit comments

Comments
 (0)