Config

R2EConfiguration test_error

default_config : R2EConfiguration

The default test configuration to run your tests.

The defaults:

results_dir_name - "testResults"

reporters - BasicHtmlReporter.reporter

assert_timeout - 3s

page_load_timeout - 10s

script_execution_timeout - 10s

element_implicit_timeout - 5s

window_size - Size 1024 768

screenshot_on_fail - Yes

attempts - 2

app [test_cases, config] { r2e: platform "..." }

import r2e.Test exposing [test]
import r2e.Config

config = Config.default_config

testCases = [
    test1,
]

default_config_with : { results_dir_name ? Str, reporters ? List (ReporterDefinition ), assert_timeout ? U64, page_load_timeout ? U64, script_execution_timeout ? U64, element_implicit_timeout ? U64, window_size ? [Size U64 U64], screenshot_on_fail ? [ Yes, No ], attempts ? U64 } -> R2EConfiguration

The default test configuration with overrides.

config = Config.default_config_with({
    results_dir_name: "my-results",
    reporters: [BasicHtmlReporter.reporter, my_json_reporter],
    assert_timeout: 5_000,
})