Skip to content

Commit b70edc5

Browse files
committed
Update examples
1 parent a608c6b commit b70edc5

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

examples/pytest.ini

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[pytest]
2+
3+
# Let console output be seen. Don't override the pytest plugin.
4+
addopts = --capture=no --ignore conftest.py -p no:cacheprovider
5+
6+
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
7+
filterwarnings =
8+
ignore::pytest.PytestWarning
9+
ignore:.*U.*mode is deprecated:DeprecationWarning
10+
11+
# Configure the junit_family option explicitly:
12+
junit_family = legacy
13+
14+
# Set pytest discovery rules:
15+
# (Most of the rules here are similar to the default rules.)
16+
# (unittest.TestCase rules override the rules here for classes and functions.)
17+
python_files = test_*.py *_test.py *_tests.py *_suite.py
18+
python_classes = Test* *Test* *Test *Tests *Suite
19+
python_functions = test_*
20+
21+
# Here are some common pytest markers:
22+
# (Some are used in the example tests.)
23+
# (pytest v4.5.0 and newer requires marker registration to prevent warnings.)
24+
# (Future versions of pytest may turn those marker warnings into errors.)
25+
markers =
26+
marker1: custom marker
27+
marker2: custom marker
28+
marker3: custom marker
29+
marker_test_suite: custom marker
30+
expected_failure: custom marker
31+
local: custom marker
32+
remote: custom marker
33+
offline: custom marker
34+
develop: custom marker
35+
qa: custom marker
36+
ci: custom marker
37+
e2e: custom marker
38+
ready: custom marker
39+
smoke: custom marker
40+
deploy: custom marker
41+
active: custom marker
42+
master: custom marker
43+
release: custom marker
44+
staging: custom marker
45+
production: custom marker

examples/test_hack_search.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ def test_hack_search(self):
1717
self.highlight('[value="Bing Search"]')
1818
self.click('[value="Bing Search"]')
1919
self.highlight("h1.b_logo")
20-
self.js_click('a[href*="github.com/seleniumbase/SeleniumBase"]')
20+
self.highlight_click('a[href*="github.com/seleniumbase/SeleniumBase"]')
2121
self.assert_element('[href="/seleniumbase/SeleniumBase"]')
2222
self.assert_true("seleniumbase/SeleniumBase" in self.get_current_url())
2323
self.click('a[title="examples"]')
24-
self.assert_text('examples', 'strong.final-path')
24+
self.assert_text("examples", "strong.final-path")
25+
self.highlight_click('[title="test_hack_search.py"]')
26+
self.assert_text("test_hack_search.py", "strong.final-path")

0 commit comments

Comments
 (0)