saleor-dashboard/cypress/url/urlList.js

31 lines
980 B
JavaScript
Raw Normal View History

export const urlList = {
apiUri: Cypress.env("API_URI"),
channels: "channels/",
configuration: "configuration/",
draftOrders: "orders/drafts/",
homePage: "/",
orders: "orders/",
products: "products/",
2021-02-18 09:00:08 +00:00
warehouses: "warehouses/",
shippingMethods: "shipping/",
sales: "discounts/sales/",
collections: "collections/",
vouchers: "discounts/vouchers/",
staffMembers: "staff/",
newPassword: "new-password/",
2021-07-05 10:21:35 +00:00
permissionsGroups: "permission-groups/",
productTypes: "product-types/"
};
export const productDetailsUrl = productId => `${urlList.products}${productId}`;
export const userDetailsUrl = userId => `${urlList.staffMembers}${userId}`;
export const staffMemberDetailsUrl = staffMemberId =>
`${urlList.staffMembers}${staffMemberId}`;
export const permissionGroupDetails = permissionGroupId =>
`${urlList.permissionsGroups}${permissionGroupId}`;
2021-07-05 10:21:35 +00:00
export const productTypeDetailsUrl = productTypeId =>
`${urlList.productTypes}${productTypeId}`;