-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexampleTest.js
35 lines (26 loc) · 873 Bytes
/
exampleTest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#import "eyeTestMatchers.js"
describe("a basic eyeTest test", function() {
it("can check if a view contains text", function() {
readText("Welcome to eyeTest");
});
it("allows you to fill in a text input field", function() {
fillInTextField("nameField", "Hello");
readText("Hello");
});
it("allows you to tap buttons", function() {
tapButton("Tap me");
readText("You tapped the button");
});
it("allows you to swipe in each direction", function() {
swipe("left");
swipe("right");
swipe("up");
swipe("down");
readText("This is a new page");
});
});
describe("a test with verbose output to the log", function() {
it("will provide feedback on all actions if set to verbose", function() {
fillInTextField("field", "text");
});
}, "verbose");