epam / ketcher

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

Macro: When inserting fragment or entering letters in the Text-editing mode, everything disappears from the canvas #4505

Open ViktoriaTkacheva opened 4 months ago

ViktoriaTkacheva commented 4 months ago

Case 1: Inserting the fragment below CHEM structure with R1-R1, R2-R2 bonds

Steps to Reproduce

  1. Open two Ketcher browser tabs – the Macro mode
  2. Open this file (first unzip) CHEM R1-R1 R2-R2.zip
  3. Switch to the Sequence mode - the Text-editing mode
  4. Copy any fragment (RNA or Peptide or CHEM) from another Ketcher browser tab and paste it into the Text-editing mode

Actual behavior Everything disappears from the canvas

Expected behavior The inserted fragment is displayed on the canvas after the CHEM structure

Case 2: Inserting the fragment below Peptide structure with R1-R1, R2-R2 bonds

Steps to Reproduce

  1. Open two Ketcher browser tabs – the Macro mode
  2. Open this file (first unzip) Peptides R1-R1 R2-R2.zip
  3. Switch to the Sequence mode - the Text-editing mode
  4. Copy any fragment (RNA or Peptide or CHEM) from another Ketcher browser tab and paste it into the Text-editing mode

Actual behavior Everything disappears from the canvas

Expected behavior The inserted fragment is displayed on the canvas after the Peptide structure

Case 3: Entering letters below Peptide or CHEM structure with R1-R1, R2-R2 bonds

Steps to Reproduce

  1. Switch to the Macro mode
  2. Open one of these files (first unzip) CHEM R1-R1 R2-R2.zip Peptides R1-R1 R2-R2.zip
  3. Switch to the Sequence mode - the Text-editing mode
  4. Enter letters below the Peptide or CHEM structure

Actual behavior Everything disappears from the canvas

Expected behavior The entered letters are displayed below the Peptide or CHEM structure

Screenshots

https://github.com/epam/ketcher/assets/139227567/c3e8681c-a0cc-4b73-9102-83cc8b01f9f9

Desktop (please complete the following information):

Ketcher version 2.21.0-rc.1, Build at 2024-04-15; 20:06:01

Issue found while testing https://github.com/epam/ketcher/issues/3916

Zhirnoff commented 4 months ago

The issue has been moved from 2.21.0-rc.2 to 2.22.0-rc.1 after discussion with management and in accordance with the testing flow process.