This is a continuation of Is there a programmatic way to change user agent in Cypress.io?. I am making a simple page that directs a user to the appropriate application store to download the native app. I rely on the user agent string to identify Android/iOS/other and then present the corresponding text/button/link.
Based on the question linked above, it appears as thought the only way to accomplish this to run Cypress multiple times: npx cypress run --config userAgent=[userAgent string]
for each userAgent string
. Is this correct? Or is there a way to do it without creating a new script?