mirror of
https://github.com/penpot/penpot.git
synced 2025-06-24 07:36:59 +02:00
👷 Create firsts e2e tests
This commit is contained in:
parent
36bb5cbe01
commit
6a6f079a84
14 changed files with 21759 additions and 928 deletions
|
@ -23,3 +23,16 @@
|
|||
//
|
||||
// -- This will overwrite an existing command --
|
||||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
||||
|
||||
|
||||
Cypress.Commands.add('login', (email, password) => {
|
||||
cy.visit("http://localhost:3449/#/auth/login");
|
||||
cy.get("#email").type(email);
|
||||
cy.get("#password").type(password);
|
||||
cy.get("input[type=submit]").first().click();
|
||||
})
|
||||
|
||||
Cypress.Commands.add('demoLogin', () => {
|
||||
cy.visit("http://localhost:3449/#/auth/login");
|
||||
cy.get("a").contains("Create demo account").click()
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue