Closed tristanlabelle closed 1 year ago
Enables expectations which assert on the received request body:
mockWebDriver.expect(path: "session/mySession/element", method: .post, type: Session.ElementRequest.self) { XCTAssertEqual($0.using, "name") XCTAssertEqual($0.value, "myElement.name") return WebDriverResponse(value: .init(ELEMENT: "myElement")) }
This required making our Decodable/Encodable types Codable to support decoding requests and encoding responses. In any case it is more idiomatic to make types Codable.
Decodable
Encodable
Codable
How tested: ran all tests
Enables expectations which assert on the received request body:
This required making our
Decodable
/Encodable
typesCodable
to support decoding requests and encoding responses. In any case it is more idiomatic to make typesCodable
.How tested: ran all tests