testing

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package frontend/testing allows to test a frontend package (i.e. a Go package compiled to a wasm file) by launching a Chrome instance using chromedp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TFE

type TFE struct {
	*it.TF
	// contains filtered or unexported fields
}

Type TFE is a frontend functional testing instance that is based on a functional testing instance from the go-integrator package and contains a Chrome browser proxy (based on chromedp) for accessing the activity in the browser during testing.

func SetUpF

func SetUpF(tbase *testing.T, home string, conf m.Map, logger b.Logger) *TFE

func (*TFE) Chrome

func (t *TFE) Chrome() *chrome.ChromeProxy

func (*TFE) GetSessionMailbox

func (st *TFE) GetSessionMailbox(sid string) chan b.Message

func (*TFE) Run

func (t *TFE) Run(name string, f func(*TFE)) bool

func (*TFE) TearDown

func (t *TFE) TearDown()

Jump to

Keyboard shortcuts

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