Skip to content

Commit

Permalink
arkistointi-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oplekal committed Dec 11, 2024
1 parent 2b50891 commit d4027ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions tests/perusteestaAmmatillinenPutki.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ test.describe('Uusi peruste ja perusteesta ammatillinen', async () => {
await page.getByRole('button', { name: 'Kyllä' }).click();
await expect(page.locator('body').first()).toContainText('Arkistoitu onnistuneesti');

await login(page, DEFAULT_VALUES.loginAmmatillinenUrl)
await waitMedium(page);
await page.goto(totsuUrl);
await page.getByText('Lisätoiminnot').click();
await page.getByRole('menuitem', { name: 'Arkistoi toteutussuunnitelma' }).click();
Expand Down
2 changes: 0 additions & 2 deletions tests/perusteestaOpsPutki.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,12 @@ test.describe('Uusi peruste ja perusteesta OPS', async () => {
await page.getByRole('button', { name: 'Kyllä' }).click();
await expect(page.locator('body').first()).toContainText('Arkistoitu onnistuneesti');

await login(page, DEFAULT_VALUES.baseYlopsUrl)
await page.goto(opsPohjaUrl);
await page.getByText('Lisätoiminnot').click();
await page.getByRole('menuitem', { name: 'Arkistoi pohja' }).click();
await page.getByRole('button', { name: 'Kyllä' }).click();
await expect(page.locator('body').first()).toContainText('Arkistoitu onnistuneesti');

await login(page, DEFAULT_VALUES.baseYlopsUrl)
await page.goto(opetussuunnitelmaUrl);
await page.getByText('Lisätoiminnot').click();
await page.getByRole('menuitem', { name: 'Arkistoi opetussuunnitelma' }).click();
Expand Down
7 changes: 3 additions & 4 deletions utils/defaultvalues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ export const julkinenBaseUrl = 'https://eperusteet.testiopintopolku.fi';
export const koulutustoimija = process.env.CI ? '98278' : process.env.test_koulutustoimija;

export const CI_VALUES = {
basePerusteetUrl: CI_baseUrl,
baseAmosaaUrl: CI_baseUrl,
baseYlopsUrl: CI_baseUrl,
basePerusteetUrl: `${CI_baseUrl}/eperusteet-service/ui`,
baseAmosaaUrl: `${CI_baseUrl}/eperusteet-amosaa-service/ui`,
baseYlopsUrl: `${CI_baseUrl}/eperusteet-ylops-service/ui`,
baseJulkinenUrl: julkinenBaseUrl,
eperusteUrl: `${CI_baseUrl}/eperusteet-service/ui`,
amosaaUrl: `${CI_baseUrl}/eperusteet-amosaa-service/ui`,
Expand All @@ -27,7 +27,6 @@ export const ENVIRONMENT_VALUES = process.env.CI ? CI_VALUES : LOCAL_VALUES;
export const DEFAULT_VALUES = {
...ENVIRONMENT_VALUES,
loginPerusteetUrl: `${ENVIRONMENT_VALUES.basePerusteetUrl}`,
loginAmosaaUrl: `${ENVIRONMENT_VALUES.baseAmosaaUrl}`,
loginAmmatillinenUrl: `${ENVIRONMENT_VALUES.baseAmosaaUrl}/#/ammatillinen`,
loginYlopsUrl: `${ENVIRONMENT_VALUES.baseYlopsUrl}`,
loginTitleExpect: 'Perusteprojektit - ePerusteet',
Expand Down

0 comments on commit d4027ef

Please sign in to comment.