New project structure
Beta of extract.js for extracting english locale
This commit is contained in:
parent
e18d2b2f84
commit
2edbd67205
247 changed files with 6405 additions and 4237 deletions
29
server/test/e2e/page-objects/user.js
Normal file
29
server/test/e2e/page-objects/user.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
'use strict';
|
||||
|
||||
const web = require('../lib/web');
|
||||
|
||||
module.exports = {
|
||||
login: web({
|
||||
url: '/users/login',
|
||||
elementsToWaitFor: ['submitButton'],
|
||||
elements: {
|
||||
usernameInput: 'form[action="/account/login"] input[name="username"]',
|
||||
passwordInput: 'form[action="/account/login"] input[name="password"]',
|
||||
submitButton: 'form[action="/account/login"] [type=submit]'
|
||||
}
|
||||
}),
|
||||
|
||||
logout: web({
|
||||
requestUrl: '/users/logout',
|
||||
url: '/'
|
||||
}),
|
||||
|
||||
account: web({
|
||||
url: '/users/account',
|
||||
elementsToWaitFor: ['form'],
|
||||
elements: {
|
||||
form: 'form[action="/users/account"]',
|
||||
emailInput: 'form[action="/users/account"] input[name="email"]'
|
||||
}
|
||||
})
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue