Skip to content

Commit

Permalink
Merge pull request #374 from DFE-Digital/FHB-1183--E2E-Automated-Test…
Browse files Browse the repository at this point in the history
…s--Creating-LA-and-VCS-services-in-Manage-as-Dfe-Admin

FHB-1183: Adding Location Seeding Data
  • Loading branch information
DamiLaleye1 authored Jan 20, 2025
2 parents 857634e + 3f6760a commit 3dc5af5
Showing 1 changed file with 32 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,37 @@ 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",
});

// Add a Location for the LA Service & VCFS 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",
});

// 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",
});
}

0 comments on commit 3dc5af5

Please sign in to comment.