| 1 |
export function has(text, type) { |
| 2 |
let trigger = `.o_notification:contains("${text}")`; |
| 3 |
if (type) { |
| 4 |
trigger += `:has(.o_notification_bar.bg-${type})`; |
| 5 |
} |
| 6 |
return { |
| 7 |
content: `Check if there is a notification with text "${text}"`, |
| 8 |
trigger, |
| 9 |
}; |
| 10 |
} |