Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 10 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
BASE_URL=http://localhost:3000
BASE_URL=http://localhost:3000
BASE_URL_API=http://localhost:9000
CONFAC_APP_PATH= ../confac
#TESTCONTAINERS_RYUK_DISABLED=true

MONGO_HOST=localhost
MONGO_PORT=27017
MONGO_USERNAME=admin
MONGO_PASSWORD=pwd
MONGO_DB=confac
49 changes: 0 additions & 49 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ jobs:
with:
node-version: lts/*

- name: Start MongoDB
run: |
docker volume create mongodata
docker run -d \
-p 27017:27017 \
-e MONGO_INITDB_ROOT_USERNAME=admin \
-e MONGO_INITDB_ROOT_PASSWORD=pwd \
-v mongodata:/data/db \
--name confac-mongo \
mongo:3.6.3

- name: Install confac dependencies
run: |
cd confac/backend
Expand All @@ -46,21 +35,6 @@ jobs:
cd confac/backend
cp .env.sample .env

- name: Start confac backend and frontend
run: |
cd confac/backend
nohup npm start > backend.log 2>&1 &
cd ../frontend
nohup npm start > frontend.log 2>&1 &
shell: bash

- name: inject dummy data
run: |
cd confac/backend
node ./public/faker/index.js
shell: bash
continue-on-error: true

- name: Install test dependencies
run: npm ci

Expand All @@ -77,26 +51,3 @@ jobs:
path:
playwright-report/
retention-days: 30

- name: Upload backend log
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: backend-log
path: confac/backend/backend.log
retention-days: 30

- name: Upload frontend log
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: frontend-log
path: confac/frontend/frontend.log
retention-days: 30

- name: Cleanup containers
if: always()
run: |
docker stop confac-mongo || true
docker rm confac-mongo || true
docker volume rm mongodata || true
89 changes: 88 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"testcontainers": "^11.7.2"
},
"dependencies": {
"dotenv": "^17.2.3"
"dotenv": "^17.2.3",
"redis": "^5.9.0"
}
}
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineConfig({

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",

storageState:'playwright/.auth/user.json',
screenshot: "only-on-failure"
},

Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions src/enum/klantTypes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export enum klantTypes {
Onderaannemer = 'Onderaannemer',
Klant = 'Klant',
Eindklant = 'Eindklant',
}
Loading