Last active
July 9, 2018 12:02
-
-
Save KaneCheshire/d76bfd2dc645af7c78259a8d82a83261 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PhotosTests.swift | |
class PhotosTests: XCTestCase, LoginContext { | |
func test_navigatingToPhotos() { | |
Given(I: logIn) | |
When(I: selectPhotosButton) | |
Then(I: seePhotosScreen) | |
} | |
private func selectPhotosButton() { | |
// Select photos button code | |
} | |
private func seePhotosScreen() { | |
// Assert photos screen is visible | |
} | |
} | |
// SettingsTests.swift | |
class SettingsTests: XCTestCase, LoginContext { | |
func test_navigatingToSettings() { | |
Given(I: logIn) | |
When(I: selectSettingsTab) | |
Then(I: seeSettingsScreen) | |
} | |
private func selectSettingsTab() { | |
// Select settings tab code | |
} | |
private func seeSettingsScreen() { | |
// Assert settings screen is visible | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment