summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/support/commands.ts
blob: 3f72c23392066c3c4ef02e55322d733e4ba1590b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Cypress.Commands.add('login', () => {
//   const constant = {
//     'LOGIN_ID': '#loginId',
//     'PASSWORD_ID': '#password'
//   };
//
//   cy.on('fail', (err, runnable) => { return false});
//   cy.visit('/login_external.htm')
//     .get(constant.LOGIN_ID).type('16807000')
//     .get(constant.PASSWORD_ID).type('16807000')
//     .get('#loginBtn').click()
//     .getCookies().then((cookies) => {
//         console.log(cookies[0].value)
//     })
// });