Some updates to Visual Testing
- Add the
full_diff
option to thecheck_window()
method:
def check_window(
self,
name="default",
level=0,
baseline=False,
check_domain=True,
full_diff=False,
):
"""*** Automated Visual Testing with SeleniumBase ***
...
If "full_diff" is set to False, the error output will only include the first differing element in the list comparison. Set "full_diff" to True if you want to see the full output.
- Add the
deferred
version of thecheck_window()
method:
def deferred_check_window(
self,
name="default",
level=0,
baseline=False,
check_domain=True,
full_diff=False,
)
This won't fail the test right away if the call fails.
Use with self.process_deferred_asserts()
to fail the test later.
See https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_deferred_asserts.py for examples of other deferred_assert_*
methods.
For more info on SeleniumBase Visual Testing in general, see: https://seleniumbase.io/examples/visual_testing/ReadMe/
(Watch the tutorial on YouTube)
Other changes include:
- Refactor and improve the Dashboard code
- Refresh Python dependencies:
--tomli>=1.2.2;python_version>="3.6"
--traitlets==5.1.1;python_version>="3.7"