File tree Expand file tree Collapse file tree 2 files changed +49
-2
lines changed Expand file tree Collapse file tree 2 files changed +49
-2
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ def test_hack_search(self):
17
17
self .highlight ('[value="Bing Search"]' )
18
18
self .click ('[value="Bing Search"]' )
19
19
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"]' )
21
21
self .assert_element ('[href="/seleniumbase/SeleniumBase"]' )
22
22
self .assert_true ("seleniumbase/SeleniumBase" in self .get_current_url ())
23
23
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" )
You can’t perform that action at this time.
0 commit comments