Skip to content

Instantly share code, notes, and snippets.

@KaneCheshire
Created July 8, 2018 17:30
Show Gist options
  • Save KaneCheshire/c2215bea32f2db1e0ebfb340918ad087 to your computer and use it in GitHub Desktop.
Save KaneCheshire/c2215bea32f2db1e0ebfb340918ad087 to your computer and use it in GitHub Desktop.
// PhotosTests.swift
class PhotosTests: XCTestCase, LoginContext, PhotosContext {
func test_editingPhotos() {
Given(I: navigateToPhotos)
When(I: selectEditButton)
Then(I: seeEditOptions)
}
private func selectEditButton() {
// Select edit button
}
private func seeEditOptions() {
// Assert in edit mode
}
}
// CameraTests.swift
class CameraTests: XCTestCase, LoginContext, PhotosContext {
func test_navigatingToCamera() {
Given(I: navigateToPhotos)
When(I: selectCameraButton)
Then(I: seeCameraOptions)
}
private func selectCameraButton() {
// Select camera button code
}
private func seeCameraOptions() {
// Assert camera options
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment