Let say my api response with a greeting text. It can be one of ‘Hello’ or ‘Salut!’ then follow with a username depends on user’s preferred language. How to test whether the api return one of the two?
I try pm.expect(pm.response.text()).to.include.oneOf(["Hello", "Salut!"]);
but didn’t work.
Any Suggestion?