1234567891011121314151617181920212223242526272829303132333435363738394041 |
- Cypress.Commands.add('login', ()=>{
- cy.request({
- method: "POST",
- url: "http://localhost:7001/api/login",
- body: {
- "application": "app-built-in",
- "organization": "built-in",
- "username": "admin",
- "password": "123",
- "autoSignin": true,
- "type": "login",
- },
- }).then((Response) => {
- expect(Response).property("body").property("status").to.equal("ok");
- });
- })
|