Skip to content

Commit 2c01fa3

Browse files
committed
Update example tests
1 parent 4200f10 commit 2c01fa3

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

examples/proxy_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ def test_proxy(self):
1414
if row.strip() != "":
1515
data.append(row.strip())
1616
print("\n".join(data).replace('\n"', " "))
17-
print("\nThe browser will close automatically in 7 seconds...")
18-
self.sleep(7)
17+
if not self.headless:
18+
print("\nThe browser will close automatically in 7 seconds...")
19+
self.sleep(7)

examples/test_docs_site.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33

44
class DocsSiteTests(BaseCase):
55
def test_docs(self):
6-
self.open("https://seleniumbase.io/")
7-
self.assert_text("SeleniumBase", "h1")
8-
self.js_click('a[href="help_docs/features_list/"]')
9-
self.assert_exact_text("Features List", "h1")
10-
self.js_click('a[href="../../examples/ReadMe/"]')
6+
self.open("https://seleniumbase.io/examples/ReadMe/")
117
self.assert_exact_text("Running Example Tests", "h1")
128
self.js_click('a[href="../../help_docs/customizing_test_runs/"]')
139
self.assert_exact_text("Command Line Options", "h1")

0 commit comments

Comments
 (0)