April 2020
Beginner
316 pages
8h 20m
English
Now, let's add some more UI Tests regarding the navigation buttons. Here are some more I've created. Copy these into your project and see if you can add the relevant accessibility modifiers to get them to pass. Go on – I know you can do it!
func testCanTapFilterButton() { let app = XCUIApplication() app.launch() app.buttons["accessibility.filter.button"].tap()} func testCanTapAddButton() { let app = XCUIApplication() app.launch() app.buttons["accessibility.add.button"].tap()}
Did they pass? I'm sure they did, but if you are struggling, just take a look at the sample project for this chapter and it will point you in the right direction.
Now, let's take a closer look at all three UI Tests we have. Notice anything? ...
Read now
Unlock full access