E2ETestConfig
data class E2ETestConfig(val defaultWaitTimeoutMs: Long, val commandDelayMs: Long = 0, val failureScreenshotPath: String = "build/parikshan/failures/failure-", val captureScreenshotOnFailure: Boolean = true)
Configuration options for an end-to-end test execution.
It is recommended to use e2eTest with its default configuration (defaultWaitTimeoutMs = 10_000L). Overriding E2ETestConfig parameters should only be done when custom timeout scaling is strictly required (such as for slow CI environments or prolonged animations).
Example Usage
// Standard usage: stick to default e2eTest { } invocation
@Test
fun testLoginFlow() = e2eTest {
click("Sign In")
}Content copied to clipboard
Parameters
defaultWaitTimeoutMs
Default timeout in milliseconds for element resolution and assertion polling (default 10,000ms).
commandDelayMs
Optional stabilization delay in milliseconds applied after each UI command (default 0ms).
failureScreenshotPath
File path where failure screenshots will be saved if captureScreenshotOnFailure is true.
captureScreenshotOnFailure
Automatically captures a screenshot of the app if a test block throws an error (default true).