devwasm

package
v0.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package devwasm adapts the existing browser WASM harness to the scenario runtime contract.

Index

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 New

func New(ctx context.Context, _ Options) (*Adapter, error)

New boots the browser WASM harness and opens the first scenario page.

func (*Adapter) BackgroundTab

func (a *Adapter) BackgroundTab(tab runtime.Tab) error

BackgroundTab reports that OS-level tab backgrounding is unsupported.

func (*Adapter) ClickControl

func (a *Adapter) ClickControl(control string) error

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

func (a *Adapter) DeleteSpace() error

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

func (a *Adapter) DoubleClickContent(content string) error

DoubleClickContent opens a visible row by text.

func (*Adapter) ExpectAbsent

func (a *Adapter) ExpectAbsent(content string) error

ExpectAbsent waits for visible text content to disappear.

func (*Adapter) ExpectRoute

func (a *Adapter) ExpectRoute(route string) error

ExpectRoute verifies that the current URL contains route.

func (*Adapter) ExpectVisible

func (a *Adapter) ExpectVisible(content string) error

ExpectVisible waits for visible text content to appear.

func (*Adapter) MoveContent

func (a *Adapter) MoveContent(source string, target string) error

MoveContent drops source content onto target content.

func (*Adapter) Name

func (a *Adapter) Name() string

Name returns the report identifier for the dev WASM runtime.

func (*Adapter) OpenRoute

func (a *Adapter) OpenRoute(route string) error

OpenRoute opens route through a document load or committed client-side hash.

func (*Adapter) OpenSecondTab

func (a *Adapter) OpenSecondTab(route string) (runtime.Tab, error)

OpenSecondTab opens route in a new page inside the current browser context.

func (*Adapter) ReloadPage

func (a *Adapter) ReloadPage() error

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

func (a *Adapter) RestartWorkerHost() error

RestartWorkerHost reports that worker-host restart control is unsupported.

func (*Adapter) Type

func (a *Adapter) Type(field string, value string) error

Type fills a named placeholder field or selector.

func (*Adapter) UploadFile

func (a *Adapter) UploadFile(target string, file runtime.File) error

UploadFile supplies an in-memory fixture to a file input.

func (*Adapter) WaitForEvent

func (a *Adapter) WaitForEvent(event runtime.Event) error

WaitForEvent waits for a named app readiness transition.

type Options

type Options struct{}

Options configures the dev WASM runtime adapter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL