Skip to content

Instantly share code, notes, and snippets.

@KaneCheshire
Last active July 9, 2018 12:02
Show Gist options
  • Save KaneCheshire/4ab682d9207ff54648b61c7221b16c91 to your computer and use it in GitHub Desktop.
Save KaneCheshire/4ab682d9207ff54648b61c7221b16c91 to your computer and use it in GitHub Desktop.
// PhotosContext.swift
protocol PhotosContext {}
extension PhotosContext where Self: LoginContext {
func navigateToPhotos() {
logIn()
selectPhotosButton()
seePhotosScreen()
}
private func selectPhotosButton() {
// Select photos button code
}
private func seePhotosScreen() {
// Assert photos screen is visible
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment