Documentation
¶
Overview ¶
Package routertest provides a first public router-test harness for js/wasm tests.
It builds on testkit/render and the public router package so tests can set an initial path, navigate, inspect params and query state, and assert rendered route output without relying on repo-local router test helpers.
Index ¶
- type Fixture
- func (parseF *Fixture) AllByRole(parseRole string) []*render.QueryNode
- func (parseF *Fixture) ApplyByDescription(parseDescription string) *render.QueryNode
- func (parseF *Fixture) ApplyByLabel(parseLabel string) *render.QueryNode
- func (parseF *Fixture) ApplyByLiveRegion(parsePoliteness string, parseText string) *render.QueryNode
- func (parseF *Fixture) ApplyByRole(parseRole string, parseName string) *render.QueryNode
- func (parseF *Fixture) ByDescription(parseDescription string) *render.QueryNode
- func (parseF *Fixture) ByID(parseId string) *render.QueryNode
- func (parseF *Fixture) ByLabel(parseLabel string) *render.QueryNode
- func (parseF *Fixture) ByLiveRegion(parsePoliteness string, parseText string) *render.QueryNode
- func (parseF *Fixture) ByRole(parseRole string, parseName string) *render.QueryNode
- func (parseF *Fixture) ByText(parseText string) *render.QueryNode
- func (parseF *Fixture) ChangeByID(parseId string, parseValue string)
- func (parseF *Fixture) Cleanup()
- func (parseF *Fixture) ClickByID(parseId string)
- func (parseF *Fixture) DispatchByID(parseId string, parseProperty string, parseEvent render.Event)
- func (parseF *Fixture) InputByID(parseId string, parseValue string)
- func (parseF *Fixture) Inspect() Inspection
- func (parseF *Fixture) Navigate(parsePath string)
- func (parseF *Fixture) Params() map[string]string
- func (parseF *Fixture) Path() string
- func (parseF *Fixture) Query() url.Values
- func (parseF *Fixture) Register(parsePath string, parseComponent any, parseOptions ...any)
- func (parseF *Fixture) Render()
- func (parseF *Fixture) Replace(parsePath string)
- func (parseF *Fixture) Router() any
- func (parseF *Fixture) SetPath(parsePath string)
- func (parseF *Fixture) SubmitByID(parseId string)
- func (parseF *Fixture) Text() string
- type Inspection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixture ¶
type Fixture struct{}
Fixture wraps one router plus a rendered route fixture.
func (*Fixture) ApplyByDescription ¶
func (*Fixture) ApplyByLabel ¶
func (*Fixture) ApplyByLiveRegion ¶
func (*Fixture) ApplyByRole ¶
func (*Fixture) ByDescription ¶
func (*Fixture) ByLiveRegion ¶
func (*Fixture) ChangeByID ¶
func (*Fixture) DispatchByID ¶
func (*Fixture) Inspect ¶
func (parseF *Fixture) Inspect() Inspection
func (*Fixture) SubmitByID ¶
Click to show internal directories.
Click to hide internal directories.