Skip to content

Commit 35add3f

Browse files
committed
Hardcoding base url
1 parent c38c3b3 commit 35add3f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
wait-on: 'http://localhost:5173'
4646
browser: chrome
4747
config: baseUrl=http://localhost:5173/ab-test-calculator-link/
48-
env: CYPRESS_BASE_URL=http://localhost:5173/ab-test-calculator-link/,DEBUG=cypress:*
48+
env:
49+
CYPRESS_BASE_URL: http://localhost:5173/ab-test-calculator-link/
50+
DEBUG: cypress:*
4951

5052
- name: Upload artifact
5153
uses: actions/upload-pages-artifact@v3

cypress/e2e/home.cy.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
describe('Home Page', () => {
22
beforeEach(() => {
3-
const baseUrl = process.env.CYPRESS_BASE_URL || ''
4-
const url = `${baseUrl}/?cs=1000&cc=24&vs=1000&vc=54`
3+
const baseUrl = 'http://localhost:5173/ab-test-calculator-link/'
4+
const url = `${baseUrl}?cs=1000&cc=24&vs=1000&vc=54`
55

6-
cy.task("log", `--> CYPRESS_BASE_URL: ${process.env.CYPRESS_BASE_URL}`)
76
cy.task("log", `--> Visiting URL: ${url}`)
87

98
cy.visit(url)

0 commit comments

Comments
 (0)