Skip to content

Commit

Permalink
TSFF-827 - Visning av opplysninger ved automatisk vurdert medlemskap (#…
Browse files Browse the repository at this point in the history
…6592)

* Visning av detaljer ved automatisk vurdert medlemskap

* Fiks test

* Fiks test
  • Loading branch information
hallvardastark authored Sep 18, 2024
1 parent ccd4c77 commit c17e015
Show file tree
Hide file tree
Showing 15 changed files with 886 additions and 109 deletions.
4 changes: 4 additions & 0 deletions _mocks/featureToggles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,8 @@ export const featureTogglesFactory = () => [
key: 'NYTT_SKJEMA_FOR_9003',
value: process.env.VITE_NYTT_SKJEMA_FOR_9003,
},
{
key: 'AUTOMATISK_VURDERT_MEDLEMSKAP',
value: process.env.AUTOMATISK_VURDERT_MEDLEMSKAP,
},
];
2 changes: 2 additions & 0 deletions deploy/dev-fss-k9saksbehandling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@ spec:
value: "true"
- name: NYTT_SKJEMA_FOR_9003
value: "false"
- name: AUTOMATISK_VURDERT_MEDLEMSKAP
value: "true"
2 changes: 2 additions & 0 deletions deploy/prod-fss-k9saksbehandling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@ spec:
value: "false"
- name: NYTT_SKJEMA_FOR_9003
value: "false"
- name: AUTOMATISK_VURDERT_MEDLEMSKAP
value: "false"
1 change: 1 addition & 0 deletions envDir/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ VITE_NYE_NOKKELTALL=true
VITE_PROSESS_VILKAR_SOKNADSFRIST=true
VITE_SKILL_UT_PRIVATPERSON=true
VITE_NYTT_SKJEMA_FOR_9003=true
VITE_AUTOMATISK_VURDERT_MEDLEMSKAP=true
4 changes: 4 additions & 0 deletions feature-toggles.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,9 @@
{
"key": "NYTT_SKJEMA_FOR_9003",
"value": "${NYTT_SKJEMA_FOR_9003}"
},
{
"key": "AUTOMATISK_VURDERT_MEDLEMSKAP",
"value": "${AUTOMATISK_VURDERT_MEDLEMSKAP}"
}
]
2 changes: 2 additions & 0 deletions packages/fakta-medlemskap/src/MedlemskapFaktaIndex.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { K9sakApiKeys, requestApi } from '@k9-sak-web/sak-app/src/data/k9sakApi';
import { composeStories, StoryFn } from '@storybook/react';
import { screen, userEvent } from '@storybook/test';
import { act, render } from '@testing-library/react';
Expand All @@ -9,6 +10,7 @@ describe('MedlemskapFaktaIndex', () => {
[key: string]: StoryFn<Partial<typeof MedlemskapFaktaIndex>>;
};
it('skal formatere data ved innsending', async () => {
requestApi.mock(K9sakApiKeys.FEATURE_TOGGLE, []);
const onClickSpy = vi.fn();
const props = { submitCallback: onClickSpy };
render(<VisAksjonspunktForAlleAndreMedlemskapsaksjonspunkter {...props} />);
Expand Down
Loading

0 comments on commit c17e015

Please sign in to comment.