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

Bruke institusjoner fra backend #2883

Closed
wants to merge 9 commits into from
Closed
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Institusjon } from '../../../src/app/api/institusjonService';

const søkerMock = {
aktørId: '2320509955297',
fødselsdato: '1995-06-02',
Expand All @@ -11,7 +13,15 @@ const arbeidsgiverMock = {
organisasjoner: [{ navn: 'Arbeids- og velferdsetaten', organisasjonsnummer: '123451234' }],
};

const institusjonerMock: Institusjon[] = [
{ uuid: '1', navn: 'Ahus (Akershus universitetssykehus)' },
{ uuid: '2', navn: 'Barnas Fysioterapisenter i Bergen' },
{ uuid: '3', navn: 'Barnas språksenter' },
{ uuid: '4', navn: 'Beitostølen Helsesportsenter' },
];

export const playwrightApiMockData = {
søkerMock,
arbeidsgiverMock,
institusjonerMock,
};
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export const setupMockRoutes = async (
},
});
});
await page.route('**/k9sak/opplaringsinstitusjoner', async (route) => {
await route.fulfill({ status: 200, body: JSON.stringify(playwrightApiMockData.institusjonerMock) });
});
await page.route('**/innsending', async (route) => {
await route.fulfill({ status: 200 });
});
Expand Down
Loading
Loading