woocommerce/packages/js/e2e-core-tests/specs/data/elements.js

86 lines
1.6 KiB
JavaScript
Raw Normal View History

/**
* WP top-level menu items and their associated sub-menus
*/
export const MENUS = [
[
'WooCommerce',
'#adminmenu > li:nth-child(8) > a',
[
[
'Home',
2021-11-26 16:45:08 +00:00
'#toplevel_page_woocommerce > ul > li:nth-child(2) > a',
'Home',
],
[
'Orders',
2021-11-26 16:45:08 +00:00
'#toplevel_page_woocommerce > ul > li:nth-child(3) > a',
'Orders',
],
[
'Reports',
2021-11-26 16:45:08 +00:00
'#toplevel_page_woocommerce > ul > li:nth-child(6) > a',
'Orders',
],
[
'Settings',
2021-11-26 16:45:08 +00:00
'#toplevel_page_woocommerce > ul > li:nth-child(7) > a',
'General',
],
[
'Status',
2021-11-26 16:45:08 +00:00
'#toplevel_page_woocommerce > ul > li:nth-child(8) > a',
'System status',
],
// [ 'Extensions', '#toplevel_page_woocommerce > ul > li:nth-child(9)', 'Extensions' ],
],
],
[
'Products',
'#adminmenu > li:nth-child(9) > a',
[
[
'All Products',
2021-11-26 16:45:08 +00:00
'#menu-posts-product > ul > li:nth-child(2) > a',
'Products',
],
[
'Add New',
2021-11-26 16:45:08 +00:00
'#menu-posts-product > ul > li:nth-child(3) > a',
'Add New',
],
[
'Categories',
2021-11-26 16:45:08 +00:00
'#menu-posts-product > ul > li:nth-child(4) > a',
'Product categories',
],
[
'Product tags',
2021-11-26 16:45:08 +00:00
'#menu-posts-product > ul > li:nth-child(5) > a',
'Product tags',
],
[
'Attributes',
2021-11-26 16:45:08 +00:00
'#menu-posts-product > ul > li:nth-child(6) > a',
'Attributes',
],
],
],
[
'Marketing',
'#adminmenu > li:nth-child(11) > a',
[
[
'Overview',
2021-11-26 16:45:08 +00:00
'#toplevel_page_woocommerce-marketing > ul > li:nth-child(2) > a',
'Overview',
],
[
'Coupons',
2021-11-26 16:45:08 +00:00
'#toplevel_page_woocommerce-marketing > ul > li:nth-child(3) > a',
'Coupons',
],
],
],
];