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

Fix[TOS-1042]: Trying to clear one character in test data value but its deleting complete text #340

Closed Raksha-testsigma closed 1 year ago

Raksha-testsigma commented 1 year ago

JIRA: https://testsigma.atlassian.net/browse/TOS-1042

Actual Trying to clear one character in the test data value but its deletes the complete text.

Expected It should not delete complete text

Fix: The backspace event triggers the selectDataType function causing it to assign the data value to empty, hence we are restricting this call. Removing the call could break the functionality in multiple places, hence restricting the condition alone.