feat(dashboard): Admin UI regions v2 (#6943)

This commit is contained in:
Frane Polić
2024-04-06 17:41:54 +02:00
committed by GitHub
parent df0751f122
commit 58c68f6715
72 changed files with 475 additions and 1687 deletions
@@ -0,0 +1,33 @@
import { medusaIntegrationTestRunner } from "medusa-test-utils/dist"
jest.setTimeout(50000)
const env = { MEDUSA_FF_MEDUSA_V2: true }
medusaIntegrationTestRunner({
env,
testSuite: ({ dbConnection, getContainer, api }) => {
describe("Payment Providers", () => {
let appContainer
beforeAll(async () => {
appContainer = getContainer()
})
it("should list payment providers", async () => {
let response = await api.get(`/admin/payments/payment-providers`)
expect(response.status).toEqual(200)
expect(response.data.payment_providers).toEqual([
expect.objectContaining({
id: "pp_system_default_2",
}),
expect.objectContaining({
id: "pp_system_default",
}),
])
expect(response.data.count).toEqual(2)
})
})
},
})