Skip to content

Commit

Permalink
added baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
talhainvenxion committed Oct 8, 2023
1 parent e2364c4 commit d3c0772
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: End-to-end tests
on: push
jobs:
cypress-run:
env:
CYPRESS_BASE_URL: https://appserver.zenml.io/api/v1
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
setupNodeEvents(on, config) {
// implement node event listeners here
},
Expand Down
7 changes: 0 additions & 7 deletions cypress/e2e/all.spec.cy.ts

This file was deleted.

2 changes: 1 addition & 1 deletion cypress/e2e/utils/loginUtils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const login = () => {
cy.visit('http://localhost:3000/login');
cy.visit('/login');

cy.get('[data-testid="username"]').type('username');
cy.get('[data-testid="password"').type('password');
Expand Down

0 comments on commit d3c0772

Please sign in to comment.