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

This commit is contained in:
Frane Polić authored and GitHub committed 2024-04-06 17:41:54 +02:00
1 parent df0751f122
commit 58c68f6715
72 files changed
+475 -1687

No files matched your search

@@ -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)
})
})
},
})