epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
504 stars 174 forks source link

Error message is wrong if user tries to establish hydrogen bond if it is already exist #5933

Closed AlexeyGirin closed 2 weeks ago

AlexeyGirin commented 3 weeks ago

Steps to Reproduce

  1. Go to Macro - Flex mode
  2. Load from file: Error message is wrong if user tries to establish hydrogen bond if it is already exist.zip image
  3. Try to establish hydrogen connection between peptides one more time

Actual behavior System throws an error: There can't be more than 1 bond between the first and the second monomer image

Expected behavior System throws an error: Unable to establish multiple hydrogen bonds between two monomers image

As per requirement:

4.2.1. If the user tries to establish a hydrogen bond between two monomers who already have a hydrogen bond, they should get an error message: "Unable to establish multiple hydrogen bonds between two monomers".

Versions

Found while testing - https://github.com/epam/ketcher/issues/5403

AlexeyGirin commented 2 weeks ago

Verified. image