Documentation
¶
Overview ¶
Package devwasm adapts the existing browser WASM harness to the scenario runtime contract.
Index ¶
- type Adapter
- func (a *Adapter) BackgroundTab(tab runtime.Tab) error
- func (a *Adapter) ClickControl(control string) error
- func (a *Adapter) Close()
- func (a *Adapter) DeleteSpace() error
- func (a *Adapter) DoubleClickContent(content string) error
- func (a *Adapter) ExpectAbsent(content string) error
- func (a *Adapter) ExpectRoute(route string) error
- func (a *Adapter) ExpectVisible(content string) error
- func (a *Adapter) MoveContent(source string, target string) error
- func (a *Adapter) Name() string
- func (a *Adapter) OpenRoute(route string) error
- func (a *Adapter) OpenSecondTab(route string) (runtime.Tab, error)
- func (a *Adapter) ReloadPage() error
- func (a *Adapter) ResetSession(requirement runtime.SessionRequirement) error
- func (a *Adapter) RestartWorkerHost() error
- func (a *Adapter) Type(field string, value string) error
- func (a *Adapter) UploadFile(target string, file runtime.File) error
- func (a *Adapter) WaitForEvent(event runtime.Event) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter drives scenarios through the existing browser WASM harness.
func (*Adapter) BackgroundTab ¶
BackgroundTab reports that OS-level tab backgrounding is unsupported.
func (*Adapter) ClickControl ¶
ClickControl activates a named Drive control or Playwright selector.
func (*Adapter) Close ¶
func (a *Adapter) Close()
Close releases the browser context and shared harness.
func (*Adapter) DeleteSpace ¶
DeleteSpace deletes the current Space and waits for the dialog to close and the Space name to leave the observed UI state.
func (*Adapter) DoubleClickContent ¶
DoubleClickContent opens a visible row by text.
func (*Adapter) ExpectAbsent ¶
ExpectAbsent waits for visible text content to disappear.
func (*Adapter) ExpectRoute ¶
ExpectRoute verifies that the current URL contains route.
func (*Adapter) ExpectVisible ¶
ExpectVisible waits for visible text content to appear.
func (*Adapter) MoveContent ¶
MoveContent drops source content onto target content.
func (*Adapter) OpenRoute ¶
OpenRoute opens route through a document load or committed client-side hash.
func (*Adapter) OpenSecondTab ¶
OpenSecondTab opens route in a new page inside the current browser context.
func (*Adapter) ReloadPage ¶
ReloadPage reloads the active browser page.
func (*Adapter) ResetSession ¶
func (a *Adapter) ResetSession(requirement runtime.SessionRequirement) error
ResetSession applies a declared scenario boundary without rebooting the harness or browser process.
func (*Adapter) RestartWorkerHost ¶
RestartWorkerHost reports that worker-host restart control is unsupported.
func (*Adapter) UploadFile ¶
UploadFile supplies an in-memory fixture to a file input.