openpencil/tests/e2e/chat
Danila Poyarkov 3289649da8
fix: repair the app e2e suite and the bugs it was hiding (#968)
* fix(code): evaluate behaviour parts such as Switch.Root in the Code tab

Behaviour parts are named through a namespace, and the sandbox passed every element name to new Function as a parameter. A dotted name is not one, so every Design JSX evaluation in the Code tab failed with "Arg string terminates parameters early". Dotted elements are now members of their namespace object, as JSX reads the tag.

* fix(properties): show a fill's whole hex value

The hex input used 12 px text in a field sized for 11 px, so six digits needed 45 px of the 38 px left beside the opacity and variable controls, and the last digit was cut off. The value now uses the field's 11 px text, and the opacity field gives up the space its suffix did not use.

* test: answer the desktop app's startup commands in the Tauri mock

The app now reads credential status and sets native menu checkmarks on startup, and the mock threw on both, failing every spec that simulates the desktop app.

* test: wait for the clipboard write and the previous menu in rich copy

Copy writes once the document is encoded, so reading right after the click found an empty clipboard or one that changed mid-read. Reopening Edit while the menu used for Copy still animated lost the click. openAppMenu waits for every menu to go before clicking a trigger.

* test: follow current settings, page, and picker behaviour in e2e specs

Specs had fallen behind the app: Media settings open a provider editor with its own Save, adding a page opens it, the variable picker's search is a textbox, a reverted reply is no longer dimmed by opacity, and the zoom spec addressed a fixed port instead of the configured server.

* fix(properties): show the whole opacity beside the variable button

A number field with a unit kept the unit's right padding and then the variable button added its own, so Appearance opacity showed "1… %" in the 83 px column. The unit now leaves the spacing to the trailing control.

* test: refresh panel and canvas baselines verified against their changes

Every baseline was compared with its previous image and each difference traced to a merged change: stored colors drawn exactly after color management (#716), stored page backgrounds kept (#949), themed section fills and node-owned section corners (#931, #940), frame names on every top-level frame (#930), Design Check markers (#804), .pen frames laid out horizontally by default (#652), no-rulers honored, stacked W and H fields, Clip content on new frames, and the whole hex and opacity values from this branch.

* docs: note the clipped paint and opacity values in the changelog

* test: open menus through the shared menu driver in menu specs
2026-10-08 17:15:18 +00:00
..
streaming feat(collab): show MCP agents, follow streamed JSX, and follow your agents as they work (#725) 2026-10-07 10:04:58 +00:00
attachments.spec.ts feat(chat): attach dropped images and style tables, menus, and link prompts in replies (#955) 2026-10-07 18:18:15 +00:00
composer.spec.ts feat: persist AI conversations and add chat history (#661) 2026-09-08 11:19:07 +03:00
file-identity.spec.ts fix(ai): polish chat history and stabilize chat tests (#923) 2026-10-07 09:53:05 +00:00
history-save.webkit.spec.ts fix(ai): keep saving chat history in Safari Private Browsing (#920) 2026-10-06 13:57:56 +00:00
history.spec.ts feat(ai): refine tool change and run views (#858) 2026-10-06 11:56:06 +00:00
lazy-connection.spec.ts fix: protect unsaved documents and defer credential access (#713) 2026-09-17 15:25:15 +03:00
markdown.spec.ts feat(chat): attach dropped images and style tables, menus, and link prompts in replies (#955) 2026-10-07 18:18:15 +00:00
menu.spec.ts fix(ai): polish chat history and stabilize chat tests (#923) 2026-10-07 09:53:05 +00:00
navigation.spec.ts fix(ai): reach the custom model option and update stale chat specs (#719) 2026-09-17 16:34:08 +03:00
profiles.spec.ts fix(ai): polish chat history and stabilize chat tests (#923) 2026-10-07 09:53:05 +00:00
real-llm.spec.ts feat(desktop): show updates in a Software Update window (#936) 2026-10-06 14:57:31 +00:00
reasoning.spec.ts fix(ai): polish chat history and stabilize chat tests (#923) 2026-10-07 09:53:05 +00:00
recovery.spec.ts feat: persist AI conversations and add chat history (#661) 2026-09-08 11:19:07 +03:00
responses.spec.ts feat(ai): render tool calls as summarized, highlighted cards (#811) 2026-10-03 22:04:31 +04:00
restore.spec.ts feat: persist AI conversations and add chat history (#661) 2026-09-08 11:19:07 +03:00
turns.spec.ts fix: repair the app e2e suite and the bugs it was hiding (#968) 2026-10-08 17:15:18 +00:00