Skip to content

Commit

Permalink
feat: Test serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Squidonomics committed Nov 28, 2023
1 parent 800bfb2 commit 2f05330
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Tests/UnitTests/APIToRequestMappingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,12 @@ class APIToRequestMappingTests: XCTestCase {
}
XCTAssert(try session.size(window: "myWindow") == (width: 500, height: 500))
}

func testSessionTouchScroll() throws {
let mockWebDriver: MockWebDriver = MockWebDriver()
let session = Session(webDriver: mockWebDriver, existingId: "mySession")
let element = Element(session: session, id: "myElement")
mockWebDriver.expect(path: "session/mySession/touch/scroll", method: .post)
try session.touchScroll(element: element, xOffset: 9, yOffset: 16)
}
}

0 comments on commit 2f05330

Please sign in to comment.