Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Kind represents the type definition of this config. Kind = "playwright" // APIVersion represents the supported config version. APIVersion = "v1alpha" )
Config descriptors.
Functions ¶
func SplitSuites ¶ added in v0.38.0
SplitSuites divided Suites to dockerSuites and sauceSuites
Types ¶
type Playwright ¶
type Playwright struct { // Deprecated. ProjectPath is succeeded by Project.RootDir. ProjectPath string `yaml:"projectPath,omitempty" json:"projectPath,omitempty"` Version string `yaml:"version,omitempty" json:"version,omitempty"` }
Playwright represents crucial playwright configuration that is required for setting up a project.
type Project ¶
type Project struct { config.TypeDef `yaml:",inline"` ShowConsoleLog bool ConfigFilePath string `yaml:"-" json:"-"` Sauce config.SauceConfig `yaml:"sauce,omitempty" json:"sauce"` Playwright Playwright `yaml:"playwright,omitempty" json:"playwright"` Suites []Suite `yaml:"suites,omitempty" json:"suites"` BeforeExec []string `yaml:"beforeExec,omitempty" json:"beforeExec"` Docker config.Docker `yaml:"docker,omitempty" json:"docker"` Npm config.Npm `yaml:"npm,omitempty" json:"npm"` RootDir string `yaml:"rootDir,omitempty" json:"rootDir"` RunnerVersion string `yaml:"runnerVersion,omitempty" json:"runnerVersion"` Artifacts config.Artifacts `yaml:"artifacts,omitempty" json:"artifacts"` Defaults config.Defaults `yaml:"defaults,omitempty" json:"defaults"` }
Project represents the playwright project configuration.
type Suite ¶
type Suite struct { Name string `yaml:"name,omitempty" json:"name"` Mode string `yaml:"mode,omitempty" json:"-"` PlaywrightVersion string `yaml:"playwrightVersion,omitempty" json:"playwrightVersion,omitempty"` TestMatch string `yaml:"testMatch,omitempty" json:"testMatch,omitempty"` PlatformName string `yaml:"platformName,omitempty" json:"platformName,omitempty"` Params SuiteConfig `yaml:"params,omitempty" json:"param,omitempty"` ScreenResolution string `yaml:"screenResolution,omitempty" json:"screenResolution,omitempty"` Env map[string]string `yaml:"env,omitempty" json:"env,omitempty"` }
Suite represents the playwright test suite configuration.
type SuiteConfig ¶
type SuiteConfig struct { BrowserName string `yaml:"browserName,omitempty" json:"browserName,omitempty"` HeadFul bool `yaml:"headful,omitempty" json:"headful,omitempty"` ScreenshotOnFailure bool `yaml:"screenshotOnFailure,omitempty" json:"screenshotOnFailure,omitempty"` SlowMo int `yaml:"slowMo,omitempty" json:"slowMo,omitempty"` Video bool `yaml:"video,omitempty" json:"video,omitempty"` }
SuiteConfig represents the configuration specific to a suite
Click to show internal directories.
Click to hide internal directories.