Skip to content

Commit

Permalink
FHB-1113: E2E Automated Tests: Adding Users in Manage as Dfe Admin (#357
Browse files Browse the repository at this point in the history
)

* added seed data for test LA

* test: added vcfs org data

---------

Co-authored-by: Tina Gohil <[email protected]>
  • Loading branch information
tgohil-hippo and Tina Gohil authored Jan 13, 2025
1 parent 3bc5c36 commit 791c8d2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
10 changes: 9 additions & 1 deletion test/e2e-seed-data-framework/scripts/seed/seed-referral-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ import * as Database from "../../core/referral-db-context.js";
*/

export async function seed() {
// Create an Organisation for our E2E tests
// Create an LA Organisation for our E2E tests
await Database.addOrganisation({
id: 1,
name: "Test LA",
description: "Test LA based in Westminster",
createdBy: "",
});

// Create an VCFS Organisation for our E2E tests
await Database.addOrganisation({
id: 2,
name: "Test Organisation",
description: "Test VCFS Organisation based in Westminster",
createdBy: "",
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,22 @@ import * as Database from "../../core/service-directory-db-context.js";
*/

export async function seed() {
// Create an Organisation for our E2E tests
// 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",
});
}

0 comments on commit 791c8d2

Please sign in to comment.