
* Add marketplace * Update messages * Extract styles * Update test env * Update config and rename uri * Update template * Trigger CI * Possible fix * Update deploy yml * Add marketplace to staging * Fix responsiveness * Trigger CI * Fix navigation tests (#2081) * fix navigate through shop * wait for progress bar not to exist * simplify code * add wait * Fix navigate through shop (#2076) * fix navigate through shop * wait for progress bar not to exist * simplify code * Refine App about section (#2056) * Trigger CI * Trigger CI * Trigger CI * Trigger CI * Fix app activation/deactivation * Hide configuration url and policy if theres none * Remove about and support links * Remove unused code * Update stories and tests * Update messages * Fix privacy policy * Fix activation and "open app" * Update tests Co-authored-by: Karolina Rakoczy <rakoczy.karolina@gmail.com>
85 lines
2.3 KiB
JavaScript
85 lines
2.3 KiB
JavaScript
import { PERMISSIONS } from "./permissions";
|
|
import { ONE_PERMISSION_USERS, TEST_ADMIN_USER } from "./users";
|
|
|
|
export const PERMISSIONS_OPTIONS = {
|
|
all: {
|
|
user: TEST_ADMIN_USER,
|
|
permissions: Object.values(PERMISSIONS),
|
|
testCase: "TC: SALEOR_3401"
|
|
},
|
|
app: {
|
|
user: ONE_PERMISSION_USERS.app,
|
|
permissions: [],
|
|
testCase: "TC: SALEOR_3402"
|
|
},
|
|
channel: {
|
|
user: ONE_PERMISSION_USERS.channel,
|
|
permissions: [PERMISSIONS.channel],
|
|
testCase: "TC: SALEOR_3403"
|
|
},
|
|
customer: {
|
|
user: ONE_PERMISSION_USERS.user,
|
|
permissions: [PERMISSIONS.customer],
|
|
testCase: "TC: SALEOR_3404"
|
|
},
|
|
discount: {
|
|
user: ONE_PERMISSION_USERS.discount,
|
|
permissions: [PERMISSIONS.discounts],
|
|
testCase: "TC: SALEOR_3405"
|
|
},
|
|
giftCard: {
|
|
user: ONE_PERMISSION_USERS.giftCard,
|
|
testCase: "TC: SALEOR_3406"
|
|
},
|
|
order: {
|
|
user: ONE_PERMISSION_USERS.order,
|
|
permissions: [PERMISSIONS.order],
|
|
testCase: "TC: SALEOR_3407"
|
|
},
|
|
page: {
|
|
user: ONE_PERMISSION_USERS.page,
|
|
permissions: [PERMISSIONS.page],
|
|
testCase: "TC: SALEOR_3408"
|
|
},
|
|
plugin: {
|
|
user: ONE_PERMISSION_USERS.plugin,
|
|
permissions: [PERMISSIONS.plugin],
|
|
testCase: "TC: SALEOR_3409"
|
|
},
|
|
product: {
|
|
user: ONE_PERMISSION_USERS.product,
|
|
permissions: [PERMISSIONS.product, PERMISSIONS.warehouse],
|
|
testCase: "TC: SALEOR_3410"
|
|
},
|
|
productTypeAndAttribute: {
|
|
user: ONE_PERMISSION_USERS.productTypeAndAttribute,
|
|
permissions: [PERMISSIONS.productTypeAndAttribute],
|
|
testCase: "TC: SALEOR_3411"
|
|
},
|
|
pageTypeAndAttribute: {
|
|
user: ONE_PERMISSION_USERS.pageTypeAndAttribute,
|
|
permissions: [PERMISSIONS.pageTypeAndAttribute],
|
|
testCase: "TC: SALEOR_3412"
|
|
},
|
|
settings: {
|
|
user: ONE_PERMISSION_USERS.settings,
|
|
permissions: [PERMISSIONS.settings],
|
|
testCase: "TC: SALEOR_3413"
|
|
},
|
|
shipping: {
|
|
user: ONE_PERMISSION_USERS.shipping,
|
|
permissions: [PERMISSIONS.shipping],
|
|
testCase: "TC: SALEOR_3415"
|
|
},
|
|
staff: {
|
|
user: ONE_PERMISSION_USERS.staff,
|
|
permissions: [PERMISSIONS.staff],
|
|
testCase: "TC: SALEOR_3414"
|
|
}
|
|
// },
|
|
// translations: {
|
|
// user: ONE_PERMISSION_USERS.translations,
|
|
// permissions: [PERMISSIONS.translations],
|
|
// testCase: "TC: SALEOR_3416"
|
|
// } // commented as part of SALEOR-6705 task. Need to be fixed in future. Klaudia Jaroszewicz
|
|
};
|