Skip to content

Instantly share code, notes, and snippets.

@yaakaito
Created January 23, 2017 06:25
Show Gist options
  • Save yaakaito/3273e6b1b273888b1aedca760453ad9a to your computer and use it in GitHub Desktop.
Save yaakaito/3273e6b1b273888b1aedca760453ad9a to your computer and use it in GitHub Desktop.
class FirstViewSpec: QuickSpec {
override func spec() {
describe("ラベルは") {
context("「ハロー」が押された時") {
grey_execute_sync({
EarlGrey.select(elementWithMatcher:grey_buttonTitle("ハロー"))
.perform(grey_tap())
it("「ハロー」と表示される") {
EarlGrey.select(elementWithMatcher: grey_accessibilityLabel("LABEL"))
.assert(grey_text("ハロー"))
}
})
}
context("「アローラ」が押された時") {
grey_execute_sync({
EarlGrey.select(elementWithMatcher: grey_buttonTitle("アローラ"))
.perform(grey_tap())
it("「アローラ」になる") {
EarlGrey.select(elementWithMatcher: grey_accessibilityLabel("LABEL"))
.assert(grey_text("アローラ"))
}
})
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment