32 lines
3.7 KiB
Plaintext
32 lines
3.7 KiB
Plaintext
Traceback (most recent call last):
|
||
File "/Users/dohertj2/Desktop/OtOpcUa/infra/tools/ui-consistency/check_monaco_name.py", line 9, in <module>
|
||
page=b.new_page(viewport={'width':width,'height':900});errors=[];page.on('pageerror',lambda e:errors.append(str(e)));page.goto(origin+'/editor-pilot',wait_until='networkidle');box=page.get_by_role('textbox',name=re.compile('^Calculation script source'));box.wait_for();initial=box.evaluate('e=>({tag:e.tagName,role:e.getAttribute("role"),label:e.getAttribute("aria-label"),internal:!!e.closest(".monaco-editor")})');before=page.evaluate('monaco.editor.getModels().map(m=>({text:m.getValue(),language:m.getLanguageId(),equipment:m.__otEquipmentId}))');page.locator('#rename-editor').click();updated=page.get_by_role('textbox',name=re.compile('^Updated calculation script source'));updated.wait_for();after=page.evaluate('monaco.editor.getModels().map(m=>({text:m.getValue(),language:m.getLanguageId(),equipment:m.__otEquipmentId}))');page.locator('#read-editor').click();page.wait_for_function('document.querySelector("#editor-read").textContent==="return 1;"');record={'width':width,'initial':initial,'updatedLabel':updated.get_attribute('aria-label'),'before':before,'after':after,'read':page.locator('#editor-read').inner_text(),'errors':errors,'layout':page.evaluate('({width:innerWidth,document:document.documentElement.scrollWidth})')};record['passed']=initial['internal'] and before==after and before[0]['text']=='return 1;' and before[0]['language']=='csharp' and before[0]['equipment']=='equipment-local' and not errors and record['layout']['width']==record['layout']['document'];out.append(record);page.screenshot(path=f'docs/ui-consistency/evidence/ot13-common/monaco-{width}.png');page.close()
|
||
~~~~~~~~~~~~^^
|
||
File "/opt/homebrew/lib/python3.14/site-packages/playwright/sync_api/_generated.py", line 18074, in wait_for
|
||
self._sync(self._impl_obj.wait_for(timeout=timeout, state=state))
|
||
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
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/_locator.py", line 710, in wait_for
|
||
await self._frame.wait_for_selector(
|
||
self._selector, strict=True, timeout=timeout, state=state
|
||
)
|
||
File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_frame.py", line 369, in wait_for_selector
|
||
await self._channel.send(
|
||
"waitForSelector", self._timeout, locals_to_params(locals())
|
||
)
|
||
File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_connection.py", line 69, in send
|
||
return await self._connection.wrap_api_call(
|
||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
...<3 lines>...
|
||
)
|
||
^
|
||
File "/opt/homebrew/lib/python3.14/site-packages/playwright/_impl/_connection.py", line 559, in wrap_api_call
|
||
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
|
||
playwright._impl._errors.TimeoutError: Locator.wait_for: Timeout 30000ms exceeded.
|
||
Call log:
|
||
- waiting for get_by_role("textbox", name=re.compile(r"^Calculation script source")) to be visible
|
||
64 × locator resolved to hidden <div tabindex="0" role="textbox" autocorrect="off" autocomplete="off" spellcheck="false" autocapitalize="off" aria-required="false" aria-multiline="true" aria-autocomplete="both" class="native-edit-context" aria-roledescription="editor" aria-label="Calculation script source"></div>
|
||
|