BaseBatchRequestExpectation

class BaseBatchRequestExpectation(tab: Tab, urlPatterns: List<<Error class: unknown class>>) : BatchRequestExpectation

Batch expectation built on top of BaseRequestExpectation instances.

Constructors

Link copied to clipboard
constructor(tab: Tab, urlPatterns: List<<Error class: unknown class>>)

Properties

Link copied to clipboard
open override val expectations: Map<<Error class: unknown class>, RequestExpectation>

A map of URL patterns (as Regex) to their corresponding RequestExpectations.

Functions

Link copied to clipboard
open suspend override fun <T> use(block: suspend BatchRequestExpectation.() -> T): T

Activate all expectations for the duration of block. Expectations are enabled concurrently by nesting RequestExpectation.use calls, so all handlers are active while block executes.