Skip to content

Commit c8054de

Browse files
committed
Merge branch 'main' into innsyn-ettersendelse
2 parents c773cc4 + 35e674d commit c8054de

File tree

268 files changed

+19140
-17254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+19140
-17254
lines changed

.changeset/bright-bees-itch.md

-5
This file was deleted.

.github/workflows/test.endringsmelding-pleiepenger.yml

+16-32
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v4
25-
25+
2626
- name: Setup .yarnrc.yml
2727
run: |
2828
yarn config set npmScopes.navikt.npmRegistryServer "https://npm.pkg.github.com"
2929
yarn config set npmScopes.navikt.npmAlwaysAuth true
3030
yarn config set npmScopes.navikt.npmAuthToken $NODE_AUTH_TOKEN
3131
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
32+
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
3333

3434
- name: Setup Node.js environment
3535
uses: actions/setup-node@v4
@@ -43,51 +43,35 @@ jobs:
4343
- name: Run code tests
4444
run: yarn test --filter=endringsmelding-pleiepenger
4545

46-
run-cypress-test:
46+
run-playwright-test:
47+
timeout-minutes: 60
4748
runs-on: ubuntu-latest
4849
steps:
4950
- name: Checkout
5051
uses: actions/checkout@v4
51-
52+
5253
- name: Setup .yarnrc.yml
5354
run: |
5455
yarn config set npmScopes.navikt.npmRegistryServer "https://npm.pkg.github.com"
5556
yarn config set npmScopes.navikt.npmAlwaysAuth true
5657
yarn config set npmScopes.navikt.npmAuthToken $NODE_AUTH_TOKEN
5758
env:
58-
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
59+
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
5960

6061
- name: Setup Node.js environment
6162
uses: actions/setup-node@v4
6263
with:
6364
node-version: 18
6465
cache: 'yarn'
6566

66-
- name: Build and start e2e server
67-
uses: cypress-io/[email protected]
68-
env:
69-
API_URL_INNSYN: http://localhost:8099
70-
API_URL: http://localhost:8099
71-
DEKORATOR_URL: https://www.nav.no/dekoratoren/?simple=true&chatbot=false
72-
PUBLIC_PATH: /familie/sykdom-i-familien/soknad/endringsmelding-pleiepenger
73-
MSW: off
74-
FRONTEND_API_PATH: http://localhost:8099/
75-
FRONTEND_VEDLEGG_URL: http://localhost:8099/api
76-
FRONTEND_INNSYN_API_PATH: http://localhost:8099/api
77-
VELG_SAK: off
78-
APPSTATUS_PROJECT_ID: ryujtq87
79-
APPSTATUS_DATASET: staging
80-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
81-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82-
with:
83-
project: ./apps/endringsmelding-pleiepenger/e2e
84-
build: yarn turbo run build --filter=@navikt/endringsmelding-pleiepenger
85-
start: yarn turbo start-e2e-server --filter=endringsmelding-pleiepenger
86-
wait-on: 'http://localhost:8080/familie/sykdom-i-familien/soknad/endringsmelding-pleiepenger/alive'
87-
wait-on-timeout: 60
88-
runTests: false
67+
- name: Install dependencies
68+
run: yarn
8969

90-
- name: Run cypress tests
91-
run: yarn turbo cypress-run --filter=endringsmelding-pleiepenger
92-
env:
93-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
70+
- name: Install Playwright Browsers
71+
run: npx playwright install chromium --with-deps
72+
73+
- name: Build application
74+
run: yarn build --filter=endringsmelding-pleiepenger
75+
76+
- name: Run tests
77+
run: yarn turbo playwright-test --filter=endringsmelding-pleiepenger

.github/workflows/test.pleiepenger-sykt-barn.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
cache: 'yarn'
6565

6666
- name: Build and start e2e server
67-
uses: cypress-io/github-action@v6.6.1
67+
uses: cypress-io/github-action@v6.7.0
6868
env:
6969
DEKORATOR_URL: https://www.nav.no/dekoratoren/?simple=true&chatbot=false
7070
PUBLIC_PATH: /familie/sykdom-i-familien/soknad/pleiepenger

0 commit comments

Comments
 (0)