s4wave_core_e2e_browser

package
v0.51.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SpacewaveCorePluginID = "spacewave-core"

SpacewaveCorePluginID is the plugin ID for the spacewave-core plugin.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserTestServer

type BrowserTestServer struct {
	// contains filtered or unexported fields
}

BrowserTestServer provides a WebSocket-based RPC server for browser E2E tests. It exposes the spacewave-core plugin's resource services for testing the complete app, plus a standalone LayoutHost for simple layout component tests.

func NewBrowserTestServer

func NewBrowserTestServer(
	le *logrus.Entry,
	b bus.Bus,
) *BrowserTestServer

NewBrowserTestServer creates a new BrowserTestServer. It waits for the spacewave-core plugin to be loaded and exposes its RPC services.

func (*BrowserTestServer) GetPort

func (s *BrowserTestServer) GetPort() int

GetPort returns the port the server is listening on, or 0 if not running.

func (*BrowserTestServer) Start

func (s *BrowserTestServer) Start(ctx context.Context) (int, error)

Start starts the WebSocket server on a random available port. It first waits for the spacewave-core plugin to be ready, then exposes its services. Returns the port number the server is listening on.

func (*BrowserTestServer) Stop

func (s *BrowserTestServer) Stop(ctx context.Context) error

Stop stops the server and releases the plugin client.

Jump to

Keyboard shortcuts

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