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

Move project and object modification behind a single submit button #1307

Merged
merged 1 commit into from
Sep 25, 2024
Merged
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
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
Loading