Guard and name Raw manual entry and browsing workflows

This commit is contained in:
Joseph Doherty
2026-11-14 00:19:09 -05:00
parent 78b95cab08
commit ea5bb6a0bc
78 changed files with 3462 additions and 211 deletions
@@ -0,0 +1,29 @@
Traceback (most recent call last):
File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-raw-workflows/browse-browser.py", line 39, in <module>
ctx=browser.new_context(viewport={'width':width,'height':900});case(ctx.new_page(),kind,str(width));ctx.close()
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-raw-workflows/browse-browser.py", line 32, in case
page.keyboard.press('Escape');expect(dialog).to_have_count(0);expect(trigger).to_be_focused()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/opt/homebrew/lib/python3.14/site-packages/playwright/sync_api/_generated.py", line 19651, in to_have_count
self._sync(self._impl_obj.to_have_count(count=count, timeout=timeout))
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_sync_base.py", line 115, in _sync
return task.result()
~~~~~~~~~~~^^
File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_assertions.py", line 382, in to_have_count
await self._expect_impl(
...<5 lines>...
)
File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_assertions.py", line 85, in _expect_impl
raise AssertionError(
f"{out_message}\nActual value: {actual}{error_message} {format_call_log(result.get('log'))}"
)
AssertionError: Locator expected to have count '0'
Actual value: 1
Call log:
- Expect "to_have_count" with timeout 5000ms
- waiting for get_by_role("dialog")
9 × locator resolved to 1 element
- unexpected value "1"