Skip to content

Commit 25b7bd4

Browse files
committed
Update example tests
1 parent 2bce75e commit 25b7bd4

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

examples/test_docs_site.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
from seleniumbase import BaseCase
2+
3+
4+
class DocsSiteTests(BaseCase):
5+
def test_docs(self):
6+
self.open("https://seleniumbase.io/")
7+
self.assert_exact_text("SeleniumBase ReadMe", "h1")
8+
self.click('a[href="help_docs/features_list/"]')
9+
self.assert_exact_text("Features List", "h1")
10+
self.click('a[href="../../examples/ReadMe/"]')
11+
self.assert_exact_text("Running Example Tests", "h1")
12+
self.click('a[href="../../help_docs/customizing_test_runs/"]')
13+
self.assert_exact_text("Command Line Options", "h1")
14+
self.click('a[href="../../examples/example_logs/ReadMe/"]')
15+
self.assert_exact_text("Dashboard / Reports", "h1")
16+
self.click('a[href="../../../seleniumbase/console_scripts/ReadMe/"]')
17+
self.assert_exact_text("Console Scripts", "h1")
18+
self.click('a[href="../../../help_docs/syntax_formats/"]')
19+
self.assert_exact_text("Syntax Formats", "h1")
20+
self.click('a[href="../recorder_mode/"]')
21+
self.assert_exact_text("Recorder Mode", "h1")
22+
self.click('a[href="../method_summary/"]')
23+
self.assert_exact_text("API Reference", "h1")
24+
self.click('img[alt="logo"]')
25+
self.assert_exact_text("SeleniumBase ReadMe", "h1")

examples/test_swag_labs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def test_swag_labs_basic_flow(self):
6060
# Finish Checkout and verify that the cart is now empty
6161
self.click("button#finish")
6262
self.assert_exact_text("THANK YOU FOR YOUR ORDER", "h2")
63-
self.assert_element("img.pony_express")
6463
self.click("#shopping_cart_container")
6564
self.assert_element_absent("div.inventory_item_name")
6665
self.click("button#continue-shopping")

0 commit comments

Comments
 (0)