From f79d096860efac28b0228873629e80ac61fe9def Mon Sep 17 00:00:00 2001 From: DamiLaleye1 <133227959+DamiLaleye1@users.noreply.github.com> Date: Mon, 20 Jan 2025 07:28:21 +0000 Subject: [PATCH 1/2] adding location seeding data --- .../scripts/seed/seed-service-directory-db.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/e2e-seed-data-framework/scripts/seed/seed-service-directory-db.js b/test/e2e-seed-data-framework/scripts/seed/seed-service-directory-db.js index f80b056a9..71ed842ab 100644 --- a/test/e2e-seed-data-framework/scripts/seed/seed-service-directory-db.js +++ b/test/e2e-seed-data-framework/scripts/seed/seed-service-directory-db.js @@ -25,4 +25,19 @@ export async function seed() { description: "Test Organisation based in Westminster", adminAreaCode: "E09000030", }); + + // Now let's create a Location for our Service & Organisation + await Database.addLocation({ + id: 1, + locationTypeCategory: "NotSet", + name: "Test Location", + description: "Test Description", + latitude: 51.517612, + longitude: -0.056838, + address1: "100 Test Street", + city: "London", + postcode: "E1 2EN", + stateProvince: "City of London", + }); + } From 3f6760a302bc5f69d2cfbe7f4b2b85deae0321c6 Mon Sep 17 00:00:00 2001 From: DamiLaleye1 <133227959+DamiLaleye1@users.noreply.github.com> Date: Mon, 20 Jan 2025 07:33:29 +0000 Subject: [PATCH 2/2] additional formating --- .../scripts/seed/seed-service-directory-db.js | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/test/e2e-seed-data-framework/scripts/seed/seed-service-directory-db.js b/test/e2e-seed-data-framework/scripts/seed/seed-service-directory-db.js index 71ed842ab..eba581946 100644 --- a/test/e2e-seed-data-framework/scripts/seed/seed-service-directory-db.js +++ b/test/e2e-seed-data-framework/scripts/seed/seed-service-directory-db.js @@ -7,26 +7,26 @@ import * as Database from "../../core/service-directory-db-context.js"; */ export async function seed() { - // Create an LA Organisation for our E2E tests - await Database.addOrganisation({ - id: 1, - organisationType: "LA", - name: "Test LA", - description: "Test LA based in Westminster", - adminAreaCode: "E09000033", - }); + // Create an LA Organisation for our E2E tests + await Database.addOrganisation({ + id: 1, + organisationType: "LA", + name: "Test LA", + description: "Test LA based in Westminster", + adminAreaCode: "E09000033", + }); - // Create an VCFS Organisation for our Service - await Database.addOrganisation({ - id: 2, - associatedOrganisationId: 1, - organisationType: "VCFS", - name: "Test Organisation", - description: "Test Organisation based in Westminster", - adminAreaCode: "E09000030", - }); + // Create an VCFS Organisation for our Service + await Database.addOrganisation({ + id: 2, + associatedOrganisationId: 1, + organisationType: "VCFS", + name: "Test Organisation", + description: "Test Organisation based in Westminster", + adminAreaCode: "E09000030", + }); - // Now let's create a Location for our Service & Organisation + // Add a Location for the LA Service & VCFS Organisation await Database.addLocation({ id: 1, locationTypeCategory: "NotSet", @@ -39,5 +39,5 @@ export async function seed() { postcode: "E1 2EN", stateProvince: "City of London", }); - + }