epam / ketcher

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

Autotests: Macro: Monomers on the canvas, their connection points and preview tooltips #3780

Closed AlexeyGirin closed 4 months ago

AlexeyGirin commented 9 months ago

Description: These bunch of tests validates that system correctly load every type of monomer (Peptide, Sugar, Base, Phosphates) from ket file, correctly show them on canvas (name, shape, color), shows correct number or connections and shows correct preview tooltip

Test case:

Preconditions:

  1. Switch to Macromolecules view
  2. Clear canvas

Test case:

  1. Open file
  2. Center monomer on the screen
  3. Press Single Bond button on toolbar
  4. Hover mouse over monomer until Preview tooltip appears
  5. Take a screenshot
  6. Compare it with the template

Test case should be executed against every file in attached zip: Monomers.zip

Zhirnoff commented 4 months ago

Tests automated in 'import-saving-ket.spec.ts'