Skip to content

Commit d86ef5b

Browse files
committed
Adjusted Cypress tests
1 parent 95560b4 commit d86ef5b

8 files changed

Lines changed: 10 additions & 39 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ jobs:
9898
push: false
9999
tags: web-ui:test
100100

101-
cypress-dashboard:
102-
name: Cypress - Dashboard
101+
cypress-home:
102+
name: Cypress - Home
103103
runs-on: ubuntu-latest
104104

105105
steps:
@@ -118,7 +118,7 @@ jobs:
118118
run: npx wait-on http://localhost:5173
119119

120120
- name: Run Cypress
121-
run: npx cypress run --spec "cypress/e2e/dashboard/**/*.cy.ts"
121+
run: npx cypress run --spec "cypress/e2e/home/**/*.cy.ts"
122122

123123
cypress-events:
124124
name: Cypress - Events
@@ -142,28 +142,6 @@ jobs:
142142
- name: Run Cypress
143143
run: npx cypress run --spec "cypress/e2e/dashboard/**/*.cy.ts"
144144

145-
cypress-insights:
146-
name: Cypress - Insights
147-
runs-on: ubuntu-latest
148-
149-
steps:
150-
- uses: actions/checkout@v4
151-
152-
- name: Install dependencies
153-
run: npm ci
154-
155-
- name: Build Docker image
156-
run: docker build -t web-ui:test .
157-
158-
- name: Start container
159-
run: docker run -d --name webui -p 5173:80 web-ui:test
160-
161-
- name: Wait for app
162-
run: npx wait-on http://localhost:5173
163-
164-
- name: Run Cypress
165-
run: npx cypress run --spec "cypress/e2e/dashboard/**/*.cy.ts"
166-
167145
cypress-organizations:
168146
name: Cypress - Organizations
169147
runs-on: ubuntu-latest

cypress/e2e/events/events.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ describe('Event Page', () => {
22
it('displays the correct main title', () => {
33
cy.visit('localhost:5173/events');
44

5-
cy.get('h1').should('contain', 'My Events');
5+
cy.get('h1').should('contain', 'Events');
66
});
77
});
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
describe('Dashboard Page', () => {
1+
describe('Home Page', () => {
22
it('displays the correct main title', () => {
33
cy.visit('localhost:5173');
44

5-
cy.get('h1').should('contain', 'My Dashboard');
5+
cy.get('h1').should('contain', 'Home');
66
});
77
});

cypress/e2e/insights/insights.cy.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

cypress/e2e/profile/profile.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ describe('Profile Page', () => {
22
it('displays the correct main title', () => {
33
cy.visit('localhost:5173/profile');
44

5-
cy.get('h1').should('contain', 'My Profile');
5+
cy.get('h1').should('contain', 'Profile');
66
});
77
});

src/pages/Events.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default function Events() {
22
return (
33
<>
44
<div>
5-
<h1>My Events</h1>
5+
<h1>Events</h1>
66
</div>
77
</>
88
);

src/pages/Organizations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default function Organizations() {
22
return (
33
<>
44
<div>
5-
<h1>My Organizations</h1>
5+
<h1>Organizations</h1>
66
</div>
77
</>
88
);

src/pages/Profile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default function Profile() {
22
return (
33
<>
44
<div>
5-
<h1>My Profile</h1>
5+
<h1>Profile</h1>
66
</div>
77
</>
88
);

0 commit comments

Comments
 (0)