* Setup Cypress e2e tests * Add login function * Cypress github action setup * Fix CI github action * Properly setup node and install dependencies * Wait on localhost to respond before running the tests * Install missing dependencies * Remove rust setup * Stop caddy after installation * Remove Caddy from CI * Properly connect to DB * CI clean up * Run cypress after build * Testing CI * Restore commented code * Fix docker image tag * Fix tags * Fix tag * Fix tag * Fix node_modules * Fix postgres host name * Bind * Fix port * Logs * Fix DB Host * Test GA * Create docker network * Get IP from container * Try removing custom wait-on * Correctly run cypress tests * Print IP * Add logs * Debug docker * Add logs * Logs * logs * Fix DB hostname * tring my way * tring my way * tring my way * tring my way * works Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
8 lines
281 B
TypeScript
8 lines
281 B
TypeScript
Cypress.Commands.add('login', (email: string, password: string) => {
|
|
cy.visit(`${Cypress.env('baseUrl')}/user/login`)
|
|
cy.get('#showPassword').click()
|
|
cy.get('#email').type('admin@windmill.dev')
|
|
cy.get('#password').type('changeme')
|
|
cy.get('.flex > .default-button').click()
|
|
})
|