Skip to content

Releases: treatwell/twuitests

Swift Package Manager support

07 Oct 16:57
1327c99
Compare
Choose a tag to compare
Added Swift Package Manager support (#22)

* Added Swift Package Manager support
* Update README

Try - catch for `replace` and `update`

17 Jul 10:14
257e719
Compare
Choose a tag to compare

Add try - catch to replace and update methods.

Try - catch support

15 Jul 12:00
fd105d0
Compare
Choose a tag to compare

Add try - catch support in tests.

Custom HTTP created 201 response body

11 Jun 09:12
f22f1ee
Compare
Choose a tag to compare

Add support for custom HTTP created 201 response body

Inject custom API mocks on app launch

10 Jun 08:49
aa9330e
Compare
Choose a tag to compare

In order to use custom API response mocks (with special data) we used

start(using: AppConfiguration())

app.replaceValues(
    of: [
        "result": "NOT_AUTHENTICATED"
    ],
    in: Stub.Authentication.success
)

But API mocked responses were replaced only after next refresh/API call. So as a workaround we had to do additional UI actions like pull to refresh, closing and opening screens again and so on, just to get that API endpoint called again.

This PR adds nicer way to do that by introducing initiationClosure param to start(using:)
So, now there is a way to do:

start(using: Configuration()) { app in
    app.replaceValues(
        of: [
            "result": "NOT_AUTHENTICATED"
        ],
        in: Stub.Authentication.success
    )
}
.loginStep.authenticationStatusIsVisible()
.loginStep.authenticationStatusIs(equal: "NOT_AUTHENTICATED")

Using this closure we get our custom replaced API mocks right after UI Tests launches the app.

To better illustrate that, I have updated example app with few examples.

0.13: Merge pull request #16 from treatwell/Add-support-for-HTTP-201-created

01 Jun 13:41
57d35f6
Compare
Choose a tag to compare

0.12: Merge pull request #15 from antranapp/change_protocol

01 Jun 09:22
af38f4b
Compare
Choose a tag to compare

Expose start function to be used in tests for restart scenario.

Add scrollView swipe helpers

05 Feb 12:39
be90a3b
Compare
Choose a tag to compare
Merge pull request #13 from treatwell/Add-XCUIelement-find-method-

Add XCUIElement find method

Tableview load checking

09 Jan 10:24
55cf652
Compare
Choose a tag to compare

Add tableview loaded checking method

Check element if it exists on screen

13 Dec 10:28
6e97c81
Compare
Choose a tag to compare
Merge pull request #10 from treatwell/Add-check-for-is-element-hittab…

…le-to-swipeUp

Added a check for element.isHittable to swipeUp func to ensure…