forked from Rink9/WPERP_Automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteps_file.js
29 lines (23 loc) · 894 Bytes
/
steps_file.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
// in this file you can append custom step methods to 'I' object
module.exports = function() {
return actor({
loginAsAdmin: function() {
this.amOnPage('https://erpqa.ajaira.website/wp-admin')
this.fillField('Username or Email Address','mehedi')
this.fillField('Password','hoe)6ULjBvW8*C2P#T')
this.checkOption('Remember Me')
this.click('Log In')
this.see('WP ERP')
},
loginAsEmployee: function() {
this.amOnPage('https://erpqa.ajaira.website/wp-admin')
this.fillField('Username or Email Address','[email protected]')
this.fillField('Password','rinkychowdhury')
this.checkOption('Remember Me')
this.click('Log In')
this.see('Profile')
}
// Define custom steps here, use 'this' to access default methods of I.
// It is recommended to place a general 'login' function here.
});
}