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 has single one #5934

Open AlexeyGirin opened 3 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 has single one.zip image
  3. Try to establish single bond 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 a hydrogen bond between two monomers connected with a single bond image

As per requirement:

4.2.2. If the user tires to establish a hydrogen bond between two monomers who are connected via a single bond, they should get an error message: "Unbale to establish a hydrogen bond between two monomers connected with a single bond".

Versions

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