mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 00:04:10 +00:00
baseUrl
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import { defineConfig } from 'cypress'
|
||||
|
||||
export default defineConfig({
|
||||
env: {
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) { },
|
||||
baseUrl: 'http://localhost:8000',
|
||||
},
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
@@ -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')
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
"lib": ["es5", "dom"],
|
||||
"types": ["cypress"]
|
||||
},
|
||||
"include": ["**/*.ts"]
|
||||
}
|
||||
"include": ["**/*.ts", "*.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user