mailtrain/server/test/e2e/page-objects/user.js
Tomas Bures e3a5a3c4eb Fixed some bugs in subscription process
Added timezone selector to campaign scheduling
Fixed problems with pausing campaign.
2019-07-10 02:06:56 +04:00

33 lines
910 B
JavaScript

'use strict';
const config = require('../lib/config');
const web = require('../lib/web');
module.exports = {
login: web({
baseUrl: config.baseTrustedUrl,
url: '/users/login',
elementsToWaitFor: ['submitButton'],
elements: {
usernameInput: 'form[action="/login"] input[name="username"]',
passwordInput: 'form[action="/login"] input[name="password"]',
submitButton: 'form[action="/login"] [type=submit]'
}
}),
logout: web({
baseUrl: config.baseTrustedUrl,
requestUrl: '/users/logout',
url: '/'
}),
account: web({
baseUrl: config.baseTrustedUrl,
url: '/users/account',
elementsToWaitFor: ['form'],
elements: {
form: 'form[action="/users/account"]',
emailInput: 'form[action="/users/account"] input[name="email"]'
}
})
};