mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-25 02:49:32 +01:00
167a79fa2f
Co-authored-by: yakkomajuri <yakko.majuri@gmail.com>
27 lines
578 B
JavaScript
27 lines
578 B
JavaScript
import './commands'
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
require('cypress-terminal-report/src/installLogsCollector')()
|
|
|
|
beforeEach(() => {
|
|
cy.visit('/')
|
|
|
|
cy.url().then((url) => {
|
|
if (url.includes('login')) {
|
|
logIn()
|
|
}
|
|
})
|
|
})
|
|
|
|
const logIn = () => {
|
|
cy.get('#inputEmail').type('test@posthog.com').should('have.value', 'test@posthog.com')
|
|
|
|
cy.get('#inputPassword').type('12345678').should('have.value', '12345678')
|
|
|
|
cy.get('.btn').click()
|
|
}
|
|
|
|
Cypress.on('uncaught:exception', () => {
|
|
return false
|
|
})
|