Skip to content

feat: simulate Flow triggers and actions for clipboard testing - #146

Draft
mcollovati wants to merge 1 commit into
mainfrom
pr/trigger-simulation-core
Draft

feat: simulate Flow triggers and actions for clipboard testing#146
mcollovati wants to merge 1 commit into
mainfrom
pr/trigger-simulation-core

Conversation

@mcollovati

Copy link
Copy Markdown
Contributor

Add a browserless simulation of Flow's client-side trigger/action API,
which is otherwise unreachable server-side. TriggerSimulation installs
a Triggers arming listener per mocked environment and fires armed
triggers, dispatching matched ActionSimulators. First slice covers the
clipboard: ClipboardSimulator exposes clipboard-write state, and
click() on Clickable/ContextMenuTester now fires client-side
triggers so context-menu actions run.

Installed and torn down in BaseBrowserlessTest,
BrowserlessApplicationContext and AbstractBrowserlessExtension.

Add a browserless simulation of Flow's client-side trigger/action API,
which is otherwise unreachable server-side. `TriggerSimulation` installs
a `Triggers` arming listener per mocked environment and fires armed
triggers, dispatching matched `ActionSimulator`s. First slice covers the
clipboard: `ClipboardSimulator` exposes clipboard-write state, and
`click()` on `Clickable`/`ContextMenuTester` now fires client-side
triggers so context-menu actions run.

Installed and torn down in `BaseBrowserlessTest`,
`BrowserlessApplicationContext` and `AbstractBrowserlessExtension`.
@mcollovati

Copy link
Copy Markdown
Contributor Author

Part of a 4-PR split (2 PRs per repo).

  • Depends on feat: add test-support seam for simulating triggers and actions flow#25045 (the test-support seam). CI here will stay red until that flow PR is merged and a new 25.3-SNAPSHOT flow-server is published; verified locally against a local mvn -pl flow-server install of the seam.
  • This is a clean regrouping of a larger branch. An earlier "install from MockVaadin.createUI" approach was reverted during development, so this PR has no net change to MockVaadin.kt.
  • Verified locally: shared ClipboardSimulationTest 6/6, TriggerSimulationSerializationTest 1/1; spring & quarkus ClipboardSmokeTest 2/2 each.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant