uitest

package
v0.0.0-...-870e9c6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: AGPL-3.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Browser

func Browser(t *testing.T, ctx *testcontext.Context, planet *testplanet.Planet, fn func(*rod.Browser))

Browser starts a browser for testing using environment variables for configuration.

func Edge

func Edge(t *testing.T, test EdgeTest)

Edge starts a testplanet together with auth service and gateway.

func MaxDuration

func MaxDuration(max time.Duration) func() utils.Sleeper

MaxDuration returns a sleeper constructor with the max duration.

func Multinode

func Multinode(t *testing.T, multinodeCount int, test Test)

Multinode starts a new UI test with multinode instance(s).

func Run

func Run(t *testing.T, test Test)

Run starts a new UI test.

Types

type EdgePlanet

type EdgePlanet struct {
	*testplanet.Planet

	Gateway struct {
		AccessKey string
		SecretKey string

		Addr string
	}

	Auth struct {
		Addr string
	}
}

EdgePlanet contains defaults for testplanet with Edge.

type EdgeTest

type EdgeTest func(t *testing.T, ctx *testcontext.Context, planet *EdgePlanet, browser *rod.Browser)

EdgeTest defines common args for edge testing.

type Test

type Test func(t *testing.T, ctx *testcontext.Context, planet *testplanet.Planet, browser *rod.Browser)

Test defines common services for uitests.

Jump to

Keyboard shortcuts

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