This commit is contained in:
Ruben Fiszel
2022-07-03 19:26:25 +02:00
parent 5d8798b3f2
commit 394546c797
6 changed files with 6 additions and 8 deletions
+2 -4
View File
@@ -1,10 +1,8 @@
import { defineConfig } from 'cypress'
export default defineConfig({
env: {
e2e: {
setupNodeEvents(on, config) { },
baseUrl: 'http://localhost:8000',
},
e2e: {
setupNodeEvents(on, config) {},
},
})
+1 -1
View File
@@ -12,7 +12,7 @@ describe('Authentication', () => {
})
it('should redirect to login page if user is not logged in', () => {
cy.visit(`${Cypress.env('baseUrl')}/user/workspaces`)
cy.visit(`/user/workspaces`)
cy.url().should('include', '/user/login')
})
})
+1 -1
View File
@@ -1,5 +1,5 @@
Cypress.Commands.add('login', (email: string, password: string) => {
cy.visit(`${Cypress.env('baseUrl')}/user/login`)
cy.visit(`/user/login`)
cy.get('#showPassword').click()
cy.get('#email').type('admin@windmill.dev')
cy.get('#password').type('changeme')
+2 -2
View File
@@ -4,5 +4,5 @@
"lib": ["es5", "dom"],
"types": ["cypress"]
},
"include": ["**/*.ts"]
}
"include": ["**/*.ts", "*.ts"]
}