Example screen pytest fixture is likely too strict about logs #2829
Replies: 2 comments
-
also , it might be best to only screenshot if a test fails? |
Beta Was this translation helpful? Give feedback.
-
Yes, that could be a valuable addition. Would you like to create a pull request?
The default should support downloads in my opinion. But of course you can change that in your testing code.
Why? Is the screenshot taking to much time? Otherwise they serve as a documentation for a successful executed test. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
the example screen fixture calls pytest.fail if there are any logs. This should probably be left to the user to configure.
this is the fixture I wrote, I didnt know what to do with downloads and I dont have any so i just deleted it.
conftest.py:
Beta Was this translation helpful? Give feedback.
All reactions