Created
January 23, 2017 06:25
-
-
Save yaakaito/3273e6b1b273888b1aedca760453ad9a 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
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