-
Notifications
You must be signed in to change notification settings - Fork 0
/
HappyPath_test.js
36 lines (31 loc) · 1.04 KB
/
HappyPath_test.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
36
Feature('Happy path tests');
Scenario('test the login form', ({ I, functionsPage}) => {
functionsPage.login('WillOrchard','password')
I.see('Logged in as: WillOrchard');
});
Scenario('create new entry', ({ I, functionsPage}) => {
functionsPage.login('WillOrchard','password');
functionsPage.create_new('New Entry','New Link','Solirius Resource');
I.click('.solirius-link');
I.see('New Entry');
});
Scenario('edit entry', ({ I, functionsPage}) => {
functionsPage.login('WillOrchard','password');
I.click('.solirius-link');
I.click('Edit');
I.fillField('Name','Updated Entry');
I.click('Update Entry');
I.click('.solirius-link');
I.see('Updated Entry');
});
Scenario('delete entry', ({ I, functionsPage}) => {
functionsPage.login('WillOrchard','password');
I.click('.solirius-link');
I.click('Delete');
I.dontSee('Updated Entry');
});
Scenario('logout button', ({ I, functionsPage}) => {
functionsPage.login('WillOrchard','password');
I.clickLink('Log out');
I.see('Login');
});