Skip to content

Commit 475631a

Browse files
committed
Fixed ports
1 parent 52a76ac commit 475631a

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ jobs:
113113
run: docker build -t web-ui:test .
114114

115115
- name: Start container
116-
run: docker run -d -p 3000:80 web-ui:test
116+
run: docker run -d -p 5173:80 web-ui:test
117117

118118
- name: Wait for app
119-
run: npx wait-on http://localhost:3000
119+
run: npx wait-on http://localhost:5173
120120

121121
- name: Run Cypress
122122
run: npx cypress run --spec "cypress/e2e/dashboard/**/*.cy.ts"
@@ -136,10 +136,10 @@ jobs:
136136
run: docker build -t web-ui:test .
137137

138138
- name: Start container
139-
run: docker run -d -p 3000:80 web-ui:test
139+
run: docker run -d -p 5173:80 web-ui:test
140140

141141
- name: Wait for app
142-
run: npx wait-on http://localhost:3000
142+
run: npx wait-on http://localhost:5173
143143

144144
- name: Run Cypress
145145
run: npx cypress run --spec "cypress/e2e/dashboard/**/*.cy.ts"
@@ -159,10 +159,10 @@ jobs:
159159
run: docker build -t web-ui:test .
160160

161161
- name: Start container
162-
run: docker run -d -p 3000:80 web-ui:test
162+
run: docker run -d -p 5173:80 web-ui:test
163163

164164
- name: Wait for app
165-
run: npx wait-on http://localhost:3000
165+
run: npx wait-on http://localhost:5173
166166

167167
- name: Run Cypress
168168
run: npx cypress run --spec "cypress/e2e/dashboard/**/*.cy.ts"
@@ -182,10 +182,10 @@ jobs:
182182
run: docker build -t web-ui:test .
183183

184184
- name: Start container
185-
run: docker run -d -p 3000:80 web-ui:test
185+
run: docker run -d -p 5173:80 web-ui:test
186186

187187
- name: Wait for app
188-
run: npx wait-on http://localhost:3000
188+
run: npx wait-on http://localhost:5173
189189

190190
- name: Run Cypress
191191
run: npx cypress run --spec "cypress/e2e/dashboard/**/*.cy.ts"
@@ -205,10 +205,10 @@ jobs:
205205
run: docker build -t web-ui:test .
206206

207207
- name: Start container
208-
run: docker run -d -p 3000:80 web-ui:test
208+
run: docker run -d -p 5173:80 web-ui:test
209209

210210
- name: Wait for app
211-
run: npx wait-on http://localhost:3000
211+
run: npx wait-on http://localhost:5173
212212

213213
- name: Run Cypress
214214
run: npx cypress run --spec "cypress/e2e/dashboard/**/*.cy.ts"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
describe("Dashboard Page", () => {
2+
it("displays the correct main title", () => {
3+
cy.visit("http://localhost:3000")
4+
5+
cy.get("h1").should("contain", "My Dashboard")
6+
})
7+
})

0 commit comments

Comments
 (0)