Config
R2EConfiguration testError
defaultConfig : R2EConfiguration
The default test configuration to run your tests.
The defaults:
resultsDirName - "testResults"
reporters - BasicHtmlReporter.reporter
assertTimeout - 3s
pageLoadTimeout - 10s
scriptExecutionTimeout - 10s
elementImplicitTimeout - 5s
windowSize - Size 1024 768
screenshotOnFail - Yes
attempts - 2
app [testCases, config] { r2e: platform "..." } import r2e.Test exposing [test] import r2e.Config config = Config.defaultConfig testCases = [ test1, ]
defaultConfigWith : { resultsDirName ? Str, reporters ? List (ReporterDefinition ), assertTimeout ? U64, pageLoadTimeout ? U64, scriptExecutionTimeout ? U64, elementImplicitTimeout ? U64, windowSize ? [Size U64 U64], screenshotOnFail ? [ Yes, No ], attempts ? U64 } -> R2EConfiguration
The default test configuration with overrides.
config = Config.defaultConfigWith { resultsDirName: "my-results", reporters: [BasicHtmlReporter.reporter, myJsonReporter], assertTimeout: 5_000, }