diff --git a/test/e2e-seed-data-framework/scripts/seed-referral-db.js b/test/e2e-seed-data-framework/scripts/seed-referral-db.js deleted file mode 100644 index 03390aaa..00000000 --- a/test/e2e-seed-data-framework/scripts/seed-referral-db.js +++ /dev/null @@ -1,11 +0,0 @@ -import * as Database from "../../../core/referral-db-context.js"; - -/** - * This class contains the implementation of the seeding data for the Referral Db. - * - * To get started, see "example/seed-referral-db.js". - */ - -export async function seed() { - // TODO: Implement Referral Seeding -} diff --git a/test/e2e-seed-data-framework/scripts/seed-service-directory-db.js b/test/e2e-seed-data-framework/scripts/seed-service-directory-db.js deleted file mode 100644 index 167ef84a..00000000 --- a/test/e2e-seed-data-framework/scripts/seed-service-directory-db.js +++ /dev/null @@ -1,11 +0,0 @@ -import * as Database from "../../../core/service-directory-db-context.js"; - -/** - * This class contains the implementation of the seeding data for the Service Directory Db. - * - * To get started, see "example/seed-service-directory-db.js". - */ - -export async function seed() { - // TODO: Implement Service Directory Seeding -} diff --git a/test/e2e-seed-data-framework/scripts/seed/seed-referral-db.js b/test/e2e-seed-data-framework/scripts/seed/seed-referral-db.js new file mode 100644 index 00000000..72774dba --- /dev/null +++ b/test/e2e-seed-data-framework/scripts/seed/seed-referral-db.js @@ -0,0 +1,17 @@ +import * as Database from "../../core/referral-db-context.js"; + +/** + * This class contains the implementation of the seeding data for the Referral Db. + * + * To get started, see "example/seed-referral-db.js". + */ + +export async function seed() { + // Create an Organisation for our E2E tests + await Database.addOrganisation({ + id: 1, + name: "Test LA", + description: "Test LA based in Westminster", + createdBy: "", + }); +} diff --git a/test/e2e-seed-data-framework/scripts/seed-report-db.js b/test/e2e-seed-data-framework/scripts/seed/seed-report-db.js similarity index 77% rename from test/e2e-seed-data-framework/scripts/seed-report-db.js rename to test/e2e-seed-data-framework/scripts/seed/seed-report-db.js index 90f08bae..b2f6eedb 100644 --- a/test/e2e-seed-data-framework/scripts/seed-report-db.js +++ b/test/e2e-seed-data-framework/scripts/seed/seed-report-db.js @@ -1,4 +1,4 @@ -import * as Database from "../../../core/report-db-context.js"; +import * as Database from "../../core/report-db-context.js"; /** * This class contains the implementation of the seeding data for the Report Db. 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 new file mode 100644 index 00000000..aa3456e6 --- /dev/null +++ b/test/e2e-seed-data-framework/scripts/seed/seed-service-directory-db.js @@ -0,0 +1,18 @@ +import * as Database from "../../core/service-directory-db-context.js"; + +/** + * This class contains the implementation of the seeding data for the Service Directory Db. + * + * To get started, see "example/seed-service-directory-db.js". + */ + +export async function seed() { + // Create an Organisation for our E2E tests + await Database.addOrganisation({ + id: 1, + organisationType: "LA", + name: "Test LA", + description: "Test LA based in Westminster", + adminAreaCode: "E09000033", + }); +}