by JackC · 5y ago · 0 comments
def test_homepage(live_server, page):
page.goto(live_server.url)
assert page.innerText('#splash-quote') == 'our splash-quote'
$ pytest -k test_homepage --browser chromium --browser firefox --verbose
tests/test_browser.py::test_homepage[chromium] PASSED [ 50%]
tests/test_browser.py::test_homepage[firefox] PASSED [100%]What is that code doing that’s special?
When I was exploring that option, Playwright was still windows only. Super excited to see it is available on Linux and Mac.