Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

782 B
Raw Blame
import type { MedusaContainer } from "@medusajs/framework/types"
import { createAdminUser } from "./helpers/create-admin-user"
import { createSellerUser } from "./helpers/create-seller-user"

// Known credentials the journeys log in with. Both helpers set the password to
// "somepassword"; the admin email is [email protected], the seller [email protected].
export const E2E_ADMIN = { email: "[email protected]", password: "somepassword" }
export const E2E_SELLER = { email: "[email protected]", password: "somepassword" }

export async function seed(container: MedusaContainer): Promise<void> {
  await createAdminUser(null, { headers: {} }, container, {
    email: E2E_ADMIN.email,
  })
  await createSellerUser(container, {
    email: E2E_SELLER.email,
    name: "E2E Seller",
  })
}