Skip to content

Commit ee7b625

Browse files
committed
Fix failing tests
1 parent 66b2364 commit ee7b625

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/frontend/src/features/properties/shapeUpload/ShapeUploadForm.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('ShapeUploadForm', () => {
7474
});
7575

7676
expect(
77-
screen.getByText(/You have attached a shapefile for property: property-456/i),
77+
screen.getByText(/You have attached a boundary file for property: property-456/i),
7878
).toBeInTheDocument();
7979
});
8080

@@ -88,7 +88,7 @@ describe('ShapeUploadForm', () => {
8888
});
8989

9090
expect(
91-
screen.getByText(/You have attached a shapefile. Do you want to proceed and save/i),
91+
screen.getByText(/You have attached a boundary file. Do you want to proceed and save/i),
9292
).toBeInTheDocument();
9393
});
9494

source/frontend/src/features/properties/shapeUpload/ShapeUploadResultView.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('ShapeUploadResultView', () => {
5858
uploadResult.isSuccess = true;
5959
setup({ props: { uploadResult } });
6060

61-
expect(screen.getByText(/Shapefile uploaded successfully/i)).toBeInTheDocument();
61+
expect(screen.getByText(/Boundary file uploaded successfully/i)).toBeInTheDocument();
6262
expect(screen.getByText('example.zip')).toBeInTheDocument();
6363
const icon = screen.getByTestId('file-check-icon');
6464
expect(icon).toBeInTheDocument();
@@ -71,7 +71,7 @@ describe('ShapeUploadResultView', () => {
7171
uploadResult.errorMessage = 'Upload failed';
7272
setup({ props: { uploadResult } });
7373

74-
expect(screen.getByText(/Shapefile upload failed/i)).toBeInTheDocument();
74+
expect(screen.getByText(/Boundary file upload failed/i)).toBeInTheDocument();
7575
expect(screen.getByText('example.zip')).toBeInTheDocument();
7676
expect(screen.getByText('Upload failed')).toBeInTheDocument();
7777
const icon = screen.getByTestId('file-error-icon');

0 commit comments

Comments
 (0)