Question: Is the fast invalidated by tasting food?
A: Tasting food does not invalidate the fast, if a person does not swallow it.
. But you should not do it unless there is a need for it; and in this situation, if any of it enters the stomach without your intending it, then your fast is not invalidated. And Allah knows best.
– Sheikh Muhammad Bin Salih Al-‘Uthaimeen, Islamic Verdicts on the Pillars of Islam