testsigma
testsigma copied to clipboard
[Bug]: Error when saving a device with a json device capability in the adhoc run page
Is there an existing issue for this?
- [X] I have searched the existing issues
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
- Select a Test Case
- Click on Run
- Select a device with chrome for example
- Add this desired capability : goog:chromeOptions / {"args":["incognito", "no-sandbox", "disable-logging", "disable-features", "disable-extensions", "disable-sync", "no-first-run"]}
- Click on Save as Favorite (you 'll get an error)
- Click on Cancel and click Run again and you won't see the menu Favorites anymore
Version
Testsigma Community Edition