Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Playwright ¶
type Playwright struct { ProjectPath string `yaml:"projectPath,omitempty" json:"projectPath,omitempty"` Version string `yaml:"version,omitempty" json:"version,omitempty"` Params SuiteConfig `yaml:"params,omitempty" json:"params,omitempty"` // LocalProjectPath represents the project before nested folder removal LocalProjectPath string `yaml:"-" json:"-"` }
Playwright represents crucial playwright configuration that is required for setting up a project.
type Project ¶
type Project struct { config.TypeDef `yaml:",inline"` ShowConsoleLog bool DryRun bool `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"` }
Project represents the playwright project configuration.
type Suite ¶
type Suite struct { Name string `yaml:"name,omitempty" json:"name"` 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.