Update example tests

This commit is contained in:
Michael Mintz 2022-08-04 14:10:41 -04:00
parent 4200f10f76
commit 2c01fa381b
2 changed files with 4 additions and 7 deletions

View File

@ -14,5 +14,6 @@ class ProxyTests(BaseCase):
if row.strip() != "":
data.append(row.strip())
print("\n".join(data).replace('\n"', " "))
print("\nThe browser will close automatically in 7 seconds...")
self.sleep(7)
if not self.headless:
print("\nThe browser will close automatically in 7 seconds...")
self.sleep(7)

View File

@ -3,11 +3,7 @@ from seleniumbase import BaseCase
class DocsSiteTests(BaseCase):
def test_docs(self):
self.open("https://seleniumbase.io/")
self.assert_text("SeleniumBase", "h1")
self.js_click('a[href="help_docs/features_list/"]')
self.assert_exact_text("Features List", "h1")
self.js_click('a[href="../../examples/ReadMe/"]')
self.open("https://seleniumbase.io/examples/ReadMe/")
self.assert_exact_text("Running Example Tests", "h1")
self.js_click('a[href="../../help_docs/customizing_test_runs/"]')
self.assert_exact_text("Command Line Options", "h1")