Skip to content

Commit

Permalink
Move project and object modification behind a single submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoila committed Sep 25, 2024
1 parent 37b6a60 commit 768d825
Show file tree
Hide file tree
Showing 38 changed files with 1,771 additions and 1,699 deletions.
2 changes: 1 addition & 1 deletion e2e/test/api/sap.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from '@playwright/test';
import { test } from '@utils/fixtures.js';

test.describe.only('Project endpoints', () => {
test.describe('Project endpoints', () => {
test('SAP project import without WBS', async ({ devSession }) => {
const res = await devSession.session.client.sap.getSapProject.mutate({
projectId: 'A1111_00000',
Expand Down
3 changes: 2 additions & 1 deletion e2e/test/project.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function createProject(
await page.getByLabel('Lautakunta *', { exact: true }).click();
await page.getByRole('option', { name: 'Yhdyskuntalautakunta' }).click();

await page.getByRole('button', { name: 'Lisää hanke' }).click();
await page.getByRole('button', { name: 'Tallenna' }).click();

// URL should include the newly created project ID, parse it from the URL
await expect(page).toHaveURL(/https:\/\/localhost:1443\/investointihanke\/[0-9a-f-]+/);
Expand All @@ -94,6 +94,7 @@ async function deleteProject(page: Page, projectId: string) {
await page.goto(`https://localhost:1443/investointihanke/${projectId}`);

// Delete the project
await page.getByRole('button', { name: 'Muokkaa hanketta' }).click();
await page.getByRole('button', { name: 'Poista hanke' }).click();
await page.getByRole('button', { name: 'Poista' }).click();
await expect(page).toHaveURL('https://localhost:1443/kartta/hankkeet');
Expand Down
52 changes: 41 additions & 11 deletions frontend/src/assets/detailplanClusterPoint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 41 additions & 11 deletions frontend/src/assets/investmentClusterPoint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 41 additions & 11 deletions frontend/src/assets/maintenanceClusterPoint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 41 additions & 11 deletions frontend/src/assets/projectClusterPoint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/components/Map/ColorPatternSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function ColorPatternSelect() {
height: 40px;
position: absolute;
top: 1rem;
right: 0.5rem;
left: 0.5rem;
z-index: 202;
`}
onChange={handleChange}
Expand Down
Loading

0 comments on commit 768d825

Please sign in to comment.