โ€‹x
35
 
1
// ๐ŸŒ Lets load up the website
2
I.goTo("https://opencollective.com/")
3
I.see("A new form of association, transparent by design.");
4
โ€‹
5
// ๐Ÿ‘‰ Lets click on something
6
I.click("How it Works")
7
โ€‹
8
// โฐ And see if it loads
9
I.amAt("https://opencollective.com/how-it-works")
10
I.see("This is how Open Collective works")
11
I.see("Create different tiers")
12
I.see("Set up budget goals")
13
I.see("Transparent ledger")
14
โ€‹
15
// ๐Ÿ˜Ž Lets go to vue.js, which we use
16
// to help build this very site
17
I.fill("Search Open Collective", "vue")
18
I.pressEnter()
19
โ€‹
20
// ๐Ÿ‘‰ Lets click on the first card
21
// you can use css selectors / id / xpath
22
// useful when duplicates occurs, instead of text
23
I.click(".CollectiveCard")
24
โ€‹
25
// ๐Ÿค“ And validate that it loads vue
26
I.see("Vue (pronounced /vjuห/, like view)")
27
I.see("Meet the awesome people")
28
โ€‹
29
//
30
// Interested to do more complex test scripts for your website?
31
// Heade over to - https://uilicious.com
32
//
33
โ€‹
34
โ€‹
35
โ€‹
Test
1280 x 960
13 Apr 2019, 01:26 PM
vue - Open Collective
SUCCESS. No errors.
21.7s
1.
I go to "https://opencollective.com/" 7.0s
2.
I see "A new form of association, transparent by design."
3.
I click "How it Works" 1.8s
4.
I am at "https://opencollective.com/how-it-works"
5.
I see "This is how Open Collective works"
6.
I see "Create different tiers"
7.
I see "Set up budget goals"
8.
I see "Transparent ledger"
9.
I fill "Search Open Collective": "vue"
10.
I press "Enter"
11.
I click ".CollectiveCard" 4.0s
12.
I see "Vue (pronounced /vjuห/, like view)" 8.0s
13.
I see "Meet the awesome people"
14.
[end of test]