testsigmahq / testsigma

A powerful open source test automation platform for Web Apps, Mobile Apps, and APIs. Build stable and reliable end-to-end tests @ DevOps speed.
https://testsigma.com
Apache License 2.0
897 stars 187 forks source link

[Bug]: Error when saving a device with a json device capability in the adhoc run page #390

Open fafane opened 1 month ago

fafane commented 1 month ago

Is there an existing issue for this?

What is the current behavior?

When you save a device with a desired capability containing json arguments as a favorite device in the adhoc run page, you get an error. In the database, you can see that everything is OK (adhoc_run_configurations table) but you can't add any devices anymore or select old ones. If you delete the line inserted, everything is back to normal

What is the expected behavior?

The device with the desired capability is available in the Favorites menu

Steps To Reproduce

  1. Select a Test Case
  2. Click on Run
  3. Select a device with chrome for example
  4. Add this desired capability : goog:chromeOptions / {"args":["incognito", "no-sandbox", "disable-logging", "disable-features", "disable-extensions", "disable-sync", "no-first-run"]}
  5. Click on Save as Favorite (you 'll get an error)
  6. Click on Cancel and click Run again and you won't see the menu Favorites anymore

Version

Testsigma Community Edition