Debian Codegraph @

addons/point_of_sale/static/tests/generic_helpers/selection_popup_util.js

raw
1 export function has(item, { run = () => {} } = {}) {
2 return [
3 {
4 content: `selection popup has '${item}'`,
5 trigger: `.selection-item:contains("${item}")`,
6 run,
7 },
8 ];
9 }