Versions in this module Expand all Collapse all v0 v0.0.1 Apr 27, 2026 Changes in this version + type ColorExpectation struct + RGB []int + Tolerance int + type Config struct + Metadata Metadata + Modes []string + Original Target + Output OutputSpec + React Target + Sections []SectionSpec + Styles []StyleSpec + func Load(path string) (*Config, error) + func (c *Config) Validate() error + type ExpectedResult struct + Description string + Format []string + type Metadata struct + Description string + ExpectedResult ExpectedResult + Goal string + PotentialQuestions []string + RelatedFiles []RelatedFile + Slug string + Title string + type OutputSpec struct + Dir string + ValidatePNGs bool + WriteInspectJSON bool + WriteJSON bool + WriteMarkdown bool + WritePNGs bool + WritePreparedHTML bool + type PNGExpectations struct + BottomStripNear *ColorExpectation + BottomStripNotNear *ColorExpectation + Height int + MaxHeight int + MaxWidth int + MinHeight int + MinWidth int + TopStripNear *ColorExpectation + TopStripNotNear *ColorExpectation + Width int + type PrepareSpec struct + AfterWaitMS int + Background string + Component string + MinHeight int + Props map[string]any + RootSelector string + Script string + ScriptFile string + Type string + WaitFor string + WaitForTimeoutMS int + Width int + type RelatedFile struct + Path string + Reason string + type SectionSpec struct + ExpectPNG *PNGExpectations + ExpectPNGOriginal *PNGExpectations + ExpectPNGReact *PNGExpectations + ExpectText *TextExpectations + ExpectTextOriginal *TextExpectations + ExpectTextReact *TextExpectations + Name string + OCRQuestion string + Selector string + SelectorOriginal string + SelectorReact string + type StyleSpec struct + Attributes []string + IncludeBounds bool + Name string + Props []string + Report []string + Selector string + SelectorOriginal string + SelectorReact string + type Target struct + Name string + Prepare *PrepareSpec + RootSelector string + URL string + Viewport Viewport + WaitMS int + type TextExpectations struct + Excludes []string + Includes []string + type Viewport struct + Height int + Width int