blob: 3f72c23392066c3c4ef02e55322d733e4ba1590b [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001// Cypress.Commands.add('login', () => {
2// const constant = {
3// 'LOGIN_ID': '#loginId',
4// 'PASSWORD_ID': '#password'
5// };
6//
7// cy.on('fail', (err, runnable) => { return false});
8// cy.visit('/login_external.htm')
9// .get(constant.LOGIN_ID).type('16807000')
10// .get(constant.PASSWORD_ID).type('16807000')
11// .get('#loginBtn').click()
12// .getCookies().then((cookies) => {
13// console.log(cookies[0].value)
14// })
15// });