New Angular UI from 1806
[vid.git] / vid-webpack-master / cypress / support / commands.ts
1 // 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 // });