Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/connecta 297 caritas-rework playwright setup #134

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
8500c03
Update dockerImage.yml
Leandro13Silva13 Jun 18, 2024
5b992d1
feat(initializeFeedbackChat): rm initializeFeedbackChat functionality
koepferd Jul 23, 2024
cc3fb8c
feat(NEW_FEEDBACK_MESSAGE_FROM_ADVICE_SEEKER): rm NEW_FEEDBACK_MESSAG…
koepferd Jul 23, 2024
9da1eee
feat(ForwardMessage): rm all related ForwardMessage functionality
koepferd Jul 23, 2024
92bd00c
feat(initializeFeedbackChat): rm initializeFeedbackChat functionality
koepferd Jul 23, 2024
8ede5c9
feat(feedbackRead): rm feedbackRead functionality
koepferd Jul 23, 2024
23c3d48
feat(sendFeedback): rm sendFeedback functionality and yellowTheme
koepferd Jul 23, 2024
4c8aba1
feat(session-header,-menu-and-copy-message): rm feedback functionalit…
koepferd Jul 23, 2024
deb69fd
feat(feedback-flow): rm feedback from interfaces, routing, authoritie…
koepferd Jul 23, 2024
12312cd
feat(peer-and-mainconsultant): rm peer and main consultant functional…
koepferd Jul 24, 2024
d61b614
feat(SessionAssign): rm SessionAssign for main/peer consultant functions
koepferd Jul 25, 2024
18b6876
feat(sessionList-filter): removed sessionList filter / feedback filter
koepferd Jul 25, 2024
65fccb2
feat(cypress-fixtures): remove consulting type u25
koepferd Jul 25, 2024
2e6e119
style(removed-feedback-features): prettier fixes
koepferd Jul 25, 2024
a758381
fix(prettier-and-build-error): removed deprecated parameter, prettier…
koepferd Jul 25, 2024
14e25ec
style(devToolbar): prettier fix
koepferd Jul 25, 2024
12f6d74
fix(list-filter): removed deprecated styles
koepferd Jul 25, 2024
2b6361f
fix(remove-feedback-chat-functions): cleanup, removde unused import, …
koepferd Jul 25, 2024
b957eb1
style(EmptyListItem): remove unused import
koepferd Jul 25, 2024
2c625b3
fix(EmptyListItem): missing import
koepferd Jul 25, 2024
3e4f0ce
test(u25-cypress-fixture): revert ct u25 removal
koepferd Aug 7, 2024
c7a0fb7
feat(livechat): rm waiting room/routes/livechat session
koepferd Aug 8, 2024
ee75b2a
feat(livechat): remove livechat related api
koepferd Aug 8, 2024
e305ca6
feat(livechat): remove anonymous session handling
koepferd Aug 8, 2024
368f0a3
feat(livechat): remove related ct and user data functions, cleanup we…
koepferd Aug 8, 2024
3b7c0ae
feat(livechat): removal session tab anonymous and related functions
koepferd Aug 8, 2024
cbc989b
feat(livechat): remove deprecated handler in routing
koepferd Aug 8, 2024
0cb3f01
feat(livechat): cleanup waiting room and style fixes
koepferd Aug 8, 2024
c8ed236
feat(livechat): removal activeSession.isLive
koepferd Aug 8, 2024
d7e428d
feat(livechat): removal anonymous functions/routing/authorization
koepferd Aug 8, 2024
0d79b6a
feat(livechat): removal livechat translations, fix eslint errors
koepferd Aug 8, 2024
48b984c
refactor(live-chat): remove unused state
koepferd Aug 9, 2024
6c7a7ba
fix(sessionList-api): fix url
koepferd Aug 20, 2024
d472edd
fix(livechat-removal): session list rendering
koepferd Aug 28, 2024
b0dbff7
style(remove-livechat): linting fix
koepferd Aug 28, 2024
3f6f8ec
style(remove-livechat): linting fix
koepferd Aug 28, 2024
09b86f3
refactor(removal-livechat): remove unused state
koepferd Aug 29, 2024
95eb102
feat(teamsessions-removal): remove all teamsession functionality
koepferd Aug 30, 2024
3e9b4d1
feat(caritas-theme): remove diakonie texts
koepferd Sep 4, 2024
8c2a811
Merge pull request #4 from virtualidentityag/feat/CARITAS-243-rm-team…
koepferd Sep 11, 2024
28199e6
Merge pull request #3 from virtualidentityag/feat/CARITAS-243-rm-live…
koepferd Sep 11, 2024
68c2464
Merge pull request #2 from virtualidentityag/feat/CARITAS-243-rm-lega…
koepferd Sep 11, 2024
2a98043
feat(caritas-theme): remove release notes, update public assets and c…
koepferd Sep 17, 2024
83e2c3b
feat(caritas-theme): remove deprecated registration
koepferd Sep 17, 2024
4cdf9a5
feat(caritas-theme): moved legal pages from extensions to core
koepferd Sep 17, 2024
78790e6
feat(caritas-theme): remove extension, move i18n to core
koepferd Sep 17, 2024
2cc1b09
feat(caritas-theme): move new registration to core, cleanup styles & …
koepferd Sep 17, 2024
83fb4ac
feat(caritas-theme): cypress registration tests exclusion
koepferd Sep 17, 2024
ee7d3e1
Merge branch 'develop' into feat/CARITAS-245-caritas-theme
koepferd Sep 17, 2024
c9eaca2
ci(github-workflows): update artifact action versions
koepferd Sep 17, 2024
5c3295c
Update dockerImage.yml
Leandro13Silva13 Sep 18, 2024
2669a66
feat(caritas-theme): pr review styling changes
koepferd Sep 19, 2024
3508e1a
Merge pull request #6 from virtualidentityag/feat/CARITAS-245-caritas…
koepferd Sep 20, 2024
6ad21cc
feat: playwright setup first step
Nov 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
branch: ${{env.BRANCH}}
force: true
tags: true
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dockerImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
echo "127.0.0.1 localhost" | sudo tee -a /etc/hosts
echo "fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.conf
npm run test:build
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: buildfiles
path: build/**/*
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download buildfiles artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: buildfiles
path: build
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
USER_NAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
2 changes: 1 addition & 1 deletion .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- run: npm ci
- name: set env
run: |
echo REACT_APP_API_URL=https://dev.diakonie.dev.virtual-identity.com >> $GITHUB_ENV
echo REACT_APP_API_URL=https://dev.caritas-rework.dev.virtual-identity.net >> $GITHUB_ENV
- name: Run build
run: npm run build-storybook
- name: Setup Pages
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.idea/
node_modules/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import i18n from 'i18next';
import { ThemeProvider } from '@mui/material';
import { Preview } from '@storybook/react';
import * as React from 'react';
import theme from '../src/extensions/theme';
import theme from '../src/resources/scripts/theme';
import { config } from '../src/resources/scripts/config';
import { LegalLinksProvider } from '../src/globalState/provider/LegalLinksProvider';
import { init, FALLBACK_LNG } from '../src/i18n';
Expand Down
10 changes: 5 additions & 5 deletions cypress/e2e/login.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {
closeWebSocketServer,
mockWebSocket,
startWebSocketServer
} from '../support/websocket';
} from '../../cypress/support/websocket';
import { config } from '../../src/resources/scripts/config';

describe('Login', () => {
before(() => {
Expand All @@ -14,6 +15,7 @@ describe('Login', () => {
});

beforeEach(() => {
cy.willReturn('frontend.settings', config);
mockWebSocket();
});

Expand All @@ -23,11 +25,9 @@ describe('Login', () => {
cy.get('#appRoot').should('exist');
});

it('displays the login at the root', () => {
it('displays the consultingtype page at the root', () => {
cy.visit('/');
cy.contains('Login');
cy.contains('Impressum');
cy.contains('Datenschutzerklärung');
cy.contains('Willkommen bei der Online-Beratung');
});

it('displays the login for resorts', () => {
Expand Down
1 change: 0 additions & 1 deletion cypress/fixtures/registration/agency.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"postcode": "postcode",
"city": "city",
"description": "description",
"teamAgency": true,
"offline": false,
"consultingType": 1,
"topicIds": null
Expand Down
10 changes: 0 additions & 10 deletions cypress/fixtures/registration/consultingType.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isSetEmailAllowed": true,
"slug": "suchtberatung",
"languageFormal": true,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": true,
"whiteSpotAgencyId": 100
Expand All @@ -46,20 +44,12 @@
"relation": true,
"state": false
},
"initializeFeedbackChat": false,
"roles": {
"consultant": {
"main": ["consultant"],
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"welcomeScreen": {
"anonymous": {
Expand Down
1 change: 0 additions & 1 deletion cypress/fixtures/service.agencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"postcode": "postcode",
"city": "city",
"description": "description",
"teamAgency": true,
"offline": false,
"consultingType": 1,
"url": "url",
Expand Down
10 changes: 0 additions & 10 deletions cypress/fixtures/service.consultingtypes.addiction.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isSetEmailAllowed": true,
"slug": "suchtberatung",
"languageFormal": true,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": true,
"whiteSpotAgencyId": 100
Expand All @@ -46,20 +44,12 @@
"relation": true,
"state": false
},
"initializeFeedbackChat": false,
"roles": {
"consultant": {
"main": ["consultant"],
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"welcomeScreen": {
"anonymous": {
Expand Down
10 changes: 0 additions & 10 deletions cypress/fixtures/service.consultingtypes.emigration.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isSetEmailAllowed": true,
"slug": "rw-auswanderung",
"languageFormal": true,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": true,
"whiteSpotAgencyId": 1731
Expand All @@ -43,20 +41,12 @@
"sendFurtherStepsMessage": true,
"sendSaveSessionDataMessage": true,
"sessionDataInitializing": {},
"initializeFeedbackChat": false,
"roles": {
"consultant": {
"main": ["consultant"],
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": false,
"welcomeScreen": {
"anonymous": {
Expand Down
10 changes: 0 additions & 10 deletions cypress/fixtures/service.consultingtypes.pregnancy.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
}
},
"isSubsequentRegistrationAllowed": true,
"isAnonymousConversationAllowed": true,
"isVideoCallAllowed": true,
"isSetEmailAllowed": true,
"slug": "suchtberatung",
"languageFormal": true,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": true,
"whiteSpotAgencyId": 100
Expand All @@ -47,20 +45,12 @@
"relation": true,
"state": false
},
"initializeFeedbackChat": false,
"roles": {
"consultant": {
"main": ["consultant"],
"peer": ["consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"welcomeScreen": {
"anonymous": {
Expand Down
10 changes: 0 additions & 10 deletions cypress/fixtures/service.consultingtypes.u25.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@
}
},
"isSubsequentRegistrationAllowed": false,
"isAnonymousConversationAllowed": false,
"isSetEmailAllowed": false,
"slug": "u25",
"languageFormal": false,
"lockedAgencies": false,
"excludeNonMainConsultantsFromTeamSessions": false,
"whiteSpot": {
"whiteSpotAgencyAssigned": false
},
Expand All @@ -50,20 +48,12 @@
"relation": false,
"state": true
},
"initializeFeedbackChat": true,
"roles": {
"consultant": {
"main": ["consultant", "u25-consultant", "u25-main-consultant"],
"peer": ["consultant", "u25-consultant"]
}
},
"notifications": {
"teamSessions": {
"newMessage": {
"allTeamConsultants": false
}
}
},
"showAskerProfile": true,
"requiredComponents": {
"age": {
Expand Down
17 changes: 2 additions & 15 deletions cypress/fixtures/service.users.data.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"postcode": "12345",
"city": "city",
"description": "description",
"teamAgency": true,
"offline": false,
"consultingType": 0
}
Expand All @@ -23,11 +22,9 @@
"AUTHORIZATION_VIEW_AGENCY_CONSULTANTS",
"AUTHORIZATION_ASSIGN_CONSULTANT_TO_SESSION"
],
"hasAnonymousConversations": false,
"consultingTypes": null,
"formalLanguage": true,
"absent": false,
"inTeamAgency": true,
"languages": [],
"emailToggles": [
{
Expand All @@ -37,10 +34,6 @@
{
"name": "NEW_CHAT_MESSAGE_FROM_ADVICE_SEEKER",
"state": true
},
{
"name": "NEW_FEEDBACK_MESSAGE_FROM_ADVICE_SEEKER",
"state": true
}
]
},
Expand All @@ -58,17 +51,14 @@
"postcode": "12345",
"city": "city",
"description": "description",
"teamAgency": true,
"offline": false,
"consultingType": 2
}
],
"grantedAuthorities": ["AUTHORIZATION_CONSULTANT_DEFAULT"],
"hasAnonymousConversations": false,
"consultingTypes": null,
"formalLanguage": true,
"absent": false,
"inTeamAgency": true
"absent": false
},
{
"userId": "asker",
Expand All @@ -90,16 +80,13 @@
"postcode": "12345",
"city": "city",
"description": null,
"teamAgency": true,
"offline": false,
"consultingType": 1
}
},
"17": { "sessionData": null, "isRegistered": false, "agency": null }
},
"hasAnonymousConversations": false,
"formalLanguage": true,
"absent": false,
"inTeamAgency": false
"absent": false
}
]
4 changes: 0 additions & 4 deletions cypress/fixtures/service.users.sessions.room.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@
"postcode": "12345",
"language": "de",
"groupId": "someGroupId",
"feedbackGroupId": null,
"isPeerChat": false,
"askerRcId": "askerRcId",
"e2eLastMessage": null,
"lastMessage": null,
"messageDate": 0,
"messagesRead": false,
"feedbackRead": true,
"isTeamSession": false,
"registrationType": "REGISTERED",
"createDate": "2022-06-15T08:09:18Z",
"attachment": null,
Expand Down
4 changes: 0 additions & 4 deletions cypress/support/commands/mockApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ const defaultReturns = {
{
name: 'NEW_CHAT_MESSAGE_FROM_ADVICE_SEEKER',
state: false
},
{
name: 'NEW_FEEDBACK_MESSAGE_FROM_ADVICE_SEEKER',
state: false
}
]
},
Expand Down
Loading