mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-21 15:56:30 +00:00
9 lines
279 B
JavaScript
9 lines
279 B
JavaScript
Cypress.Commands.add("login", () => {
|
|
const username = "m0abc";
|
|
const password = "demo";
|
|
cy.visit("/index.php/user/login");
|
|
cy.get('input[name="user_name"]').type(username);
|
|
cy.get('input[name="user_password"]').type(password);
|
|
cy.get('button[type="submit"]').click();
|
|
});
|