There is no laboratory test for salicylate sensitivity. Typically testing is done by an "elimination and challenge diet.
An elimination diet avoids salicylate-rich food. Maybe after 2 to 4 weeks, you start with a challenging diet.
During the provocative challenge, the person takes incrementally higher doses of salicylates, usually aspirin, until symptoms appear.
Suppose the elimination diet is able to eliminate the salicylate-associated symptoms and the challenge diet is able to trigger the symptoms. In that case, you can learn which type of food might be inconvenient for your digestive system.
A dietician or gastroenterologist can guide you regarding the diet plan.