From 709136d19e72b2e4a3493121a6e834b67a33aa1f Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Wed, 29 Sep 2021 03:21:35 -0400 Subject: [PATCH] Update examples --- examples/test_hack_search.py | 4 +--- examples/translations/pytest.ini | 7 ++++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/test_hack_search.py b/examples/test_hack_search.py index 68b34889..b3b5dc27 100755 --- a/examples/test_hack_search.py +++ b/examples/test_hack_search.py @@ -12,18 +12,16 @@ class HackingTests(BaseCase): self.assert_element('input[title="Search"]') self.set_attribute('[action="/search"]', "action", "//bing.com/search") self.set_attributes('[value="Google Search"]', "value", "Bing Search") - self.type('input[title="Search"]', "SeleniumBase GitHub") + self.type('input[title="Search"]', "SeleniumBase GitHub Docs Install") self.sleep(0.5) self.js_click('[value="Bing Search"]') self.highlight("h1.b_logo") help_docs_install_link = 'a[href*="seleniumbase.io/help_docs/install"]' if self.is_element_visible(help_docs_install_link): self.highlight_click(help_docs_install_link) - self.switch_to_newest_window() self.assert_text("Install SeleniumBase", "h1") self.click_link_text("GitHub branch") self.highlight_click('a[href*="github.com/seleniumbase/SeleniumBase"]') - self.switch_to_newest_window() self.assert_element('[href="/seleniumbase/SeleniumBase"]') self.assert_true("seleniumbase/SeleniumBase" in self.get_current_url()) self.click('a[title="examples"]') diff --git a/examples/translations/pytest.ini b/examples/translations/pytest.ini index ac4f1c71..502b0f8b 100644 --- a/examples/translations/pytest.ini +++ b/examples/translations/pytest.ini @@ -18,7 +18,8 @@ python_files = test_*.py *_test.py *_tests.py *_suite.py *_test_*.py python_classes = Test* *Test* *Test *Tests *Suite python_functions = test_* -# Here are the pytest markers used in the example tests: +# Here are some common pytest markers: +# (Some are used in the example tests.) # (pytest v4.5.0 and newer requires marker registration to prevent warnings.) # (Future versions of pytest may turn those marker warnings into errors.) markers = @@ -32,7 +33,11 @@ markers = offline: custom marker develop: custom marker qa: custom marker + ci: custom marker + e2e: custom marker ready: custom marker + smoke: custom marker + deploy: custom marker active: custom marker master: custom marker release: custom marker