feat(QAWTO-194): test report update configuration #7
GitHub Actions / Playwright tests with Python 3.9 version
failed
Jun 5, 2024 in 0s
1 passed, 1 failed and 0 skipped
Report | Passed | Failed | Skipped | Time |
---|---|---|---|---|
web_playwright/test-result-pytest-3.9.xml | 1✅ | 1s | ||
web_playwright/test-result-sync-3.9.xml | 1❌ | 32s |
✅ web_playwright/test-result-pytest-3.9.xml
1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 1✅ | 1s |
✅ pytest
tests.test_web_playwright_pytest
✅ test_successful_login_logout[chromium]
❌ web_playwright/test-result-sync-3.9.xml
1 tests were completed in 32s with 0 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 1❌ | 32s |
❌ pytest
tests.test_web_playwright_library_sync
❌ test_successful_login_logout
def test_successful_login_logout():
Annotations
Check failure on line 0 in web_playwright/test-result-sync-3.9.xml
github-actions / Playwright tests with Python 3.9 version
pytest ► tests.test_web_playwright_library_sync ► test_successful_login_logout
Failed test found in:
web_playwright/test-result-sync-3.9.xml
Error:
def test_successful_login_logout():
Raw output
def test_successful_login_logout():
user = {'username': 'tomsmith', 'password': 'SuperSecretPassword!'}
expected_login_message = "You logged into a secure area!"
expected_logout_message = "You logged out of the secure area!"
with sync_playwright() as p:
browser = p.firefox.launch(headless=True)
page = browser.new_page()
# Open url
page.goto('http://the-internet.herokuapp.com/login')
# Login and check welcome message
page.get_by_label('Username').fill(user['username'])
page.get_by_label('Password').fill(user['password'])
> page.locator("xpath=//form[@id='login']/button").click()
tests/test_web_playwright_library_sync.py:19:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/playwright/sync_api/_generated.py:14929: in click
self._sync(
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/playwright/_impl/_locator.py:156: in click
return await self._frame.click(self._selector, strict=True, **params)
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/playwright/_impl/_frame.py:488: in click
await self._channel.send("click", locals_to_params(locals()))
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/playwright/_impl/_connection.py:59: in send
return await self._connection.wrap_api_call(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <playwright._impl._connection.Connection object at 0x7fe14a179a00>
cb = <function Channel.send.<locals>.<lambda> at 0x7fe148d85b80>
is_internal = False
async def wrap_api_call(
self, cb: Callable[[], Any], is_internal: bool = False
) -> Any:
if self._api_zone.get():
return await cb()
task = asyncio.current_task(self._loop)
st: List[inspect.FrameInfo] = getattr(task, "__pw_stack__", inspect.stack())
parsed_st = _extract_stack_trace_information_from_stack(st, is_internal)
self._api_zone.set(parsed_st)
try:
return await cb()
except Exception as error:
> raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
E playwright._impl._errors.TimeoutError: Locator.click: Timeout 30000ms exceeded.
E Call log:
E waiting for locator("//form[@id='login']/button")
E - locator resolved to <button type="submit" class="radius">…</button>
E - attempting click action
E - waiting for element to be visible, enabled and stable
E - element is visible, enabled and stable
E - scrolling into view if needed
E - done scrolling
E - performing click action
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/playwright/_impl/_connection.py:514: TimeoutError
Loading