diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts index aa19f165ef..191af6bbd6 100644 --- a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts +++ b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from '@playwright/test'; +import { expect, Page, test } from '@playwright/test'; import { takeEditorScreenshot, clickInTheMiddleOfTheScreen, @@ -10,7 +10,10 @@ import { saveToFile, receiveFileComparisonData, openFileAndAddToCanvasAsNewProject, + waitForRender, } from '@utils'; +import { pageReload } from '@utils/common/helpers'; +import { FileType, verifyFile2 } from '@utils/files/receiveFileComparisonData'; test.describe('Loading SMARTS files', () => { test.beforeEach(async ({ page }) => { @@ -436,3 +439,176 @@ test.describe('Loading SMARTS files', () => { await takeEditorScreenshot(page); }); }); + +interface IMonomer { + monomerDescription: string; + KETFile: string; + SMARTSFile_Expected: string; + monomerLocatorText: string; + // Set shouldFail to true if you expect test to fail because of existed bug and put issues link to issueNumber + shouldFail?: boolean; + // issueNumber is mandatory if shouldFail === true + issueNumber?: string; + // set pageReloadNeeded to true if you need to restart ketcher before test (f.ex. to restart font renderer) + pageReloadNeeded?: boolean; +} + +const allTypesExpandableOfMonomers: IMonomer[] = [ + { + monomerDescription: '1. Petide D (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', + SMARTSFile_Expected: + 'SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library)-expected.smarts', + monomerLocatorText: 'D', + pageReloadNeeded: true, + }, + { + monomerDescription: '2. Sugar UNA (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library).ket', + SMARTSFile_Expected: + 'SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library)-expected.smarts', + monomerLocatorText: 'UNA', + }, + { + monomerDescription: '3. Base hU (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library).ket', + SMARTSFile_Expected: + 'SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library)-expected.smarts', + monomerLocatorText: 'hU', + }, + { + monomerDescription: '4. Phosphate bnn (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library).ket', + SMARTSFile_Expected: + 'SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library)-expected.smarts', + monomerLocatorText: 'bnn', + }, + { + monomerDescription: '5. Unsplit nucleotide 5hMedC (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library).ket', + SMARTSFile_Expected: + 'SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library)-expected.smarts', + monomerLocatorText: '5hMedC', + }, + { + monomerDescription: '6. CHEM 4aPEGMal (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library).ket', + SMARTSFile_Expected: + 'SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library)-expected.smarts', + monomerLocatorText: '4aPEGMal', + }, +]; + +test.describe('Saving collapsed monomer to SMARTS: ', () => { + test.beforeEach(async ({ page }) => { + await waitForPageInit(page); + }); + + for (const monomer of allTypesExpandableOfMonomers) { + test(`${monomer.monomerDescription}`, async ({ page }) => { + /* + * Test task: https://github.com/epam/ketcher/issues/5832 + * Description: Verify saving collapsed monomers in Daylight SMARTS + * + * Case: 1. Load monomer chain on Molecules canvas + * 2. Take screenshot to witness initial state + * 3. For each monomer do the following: + * 3.1 Save monomer to Daylight SMARTS + * 3.2 Validate saved file using template + * 3.3 Load saved file back to canvas + * 3.4 Take screenshot to witness result on the canvas + */ + if (monomer.pageReloadNeeded) { + await pageReload(page); + } + await openFileAndAddToCanvasAsNewProject(monomer.KETFile, page); + await takeEditorScreenshot(page); + + await verifyFile2( + page, + `tests/test-data/${monomer.SMARTSFile_Expected}`, + FileType.SMARTS, + ); + + await openFileAndAddToCanvasAsNewProject( + monomer.SMARTSFile_Expected, + page, + ); + await takeEditorScreenshot(page); + + // Test should be skipped if related bug exists + test.fixme( + monomer.shouldFail === true, + `That test results are wrong because of ${monomer.issueNumber} issue(s).`, + ); + }); + } +}); + +async function callContexMenu(page: Page, locatorText: string) { + const canvasLocator = page.getByTestId('ketcher-canvas'); + await canvasLocator.getByText(locatorText, { exact: true }).click({ + button: 'right', + }); +} + +async function expandMonomer(page: Page, locatorText: string) { + await callContexMenu(page, locatorText); + await waitForRender(page, async () => { + await page.getByText('Expand monomer').click(); + }); +} + +test.describe('Saving expanded monomer to SMARTS: ', () => { + test.beforeEach(async ({ page }) => { + await waitForPageInit(page); + }); + + for (const monomer of allTypesExpandableOfMonomers) { + test(`${monomer.monomerDescription}`, async ({ page }) => { + /* + * Test task: https://github.com/epam/ketcher/issues/5832 + * Description: Verify saving expanded monomers in Daylight SMARTS + * + * Case: 1. Load monomer chain on Molecules canvas + * 2. Expand monomer on the canvas + * 2. Take screenshot to witness initial state + * 3. For each monomer do the following: + * 3.1 Save monomer to Daylight SMARTS + * 3.2 Validate saved file using template + * 3.3 Load saved file back to canvas + * 3.4 Take screenshot to witness result on the canvas + */ + if (monomer.pageReloadNeeded) { + await pageReload(page); + } + await openFileAndAddToCanvasAsNewProject(monomer.KETFile, page); + await expandMonomer(page, monomer.monomerLocatorText); + await takeEditorScreenshot(page); + + await verifyFile2( + page, + `tests/test-data/${monomer.SMARTSFile_Expected}`, + FileType.SMARTS, + ); + + await openFileAndAddToCanvasAsNewProject( + monomer.SMARTSFile_Expected, + page, + ); + await takeEditorScreenshot(page); + + // Test should be skipped if related bug exists + test.fixme( + monomer.shouldFail === true, + `That test results are wrong because of ${monomer.issueNumber} issue(s).`, + ); + }); + } +}); diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-1-Petide-D-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-1-Petide-D-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..e83ba45199 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-1-Petide-D-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-1-Petide-D-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-1-Petide-D-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..529a74ad60 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-1-Petide-D-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-2-Sugar-UNA-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-2-Sugar-UNA-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..8c8e240223 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-2-Sugar-UNA-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-2-Sugar-UNA-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-2-Sugar-UNA-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..ce4a619f24 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-2-Sugar-UNA-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-3-Base-hU-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-3-Base-hU-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..f8bfa6d02a Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-3-Base-hU-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-3-Base-hU-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-3-Base-hU-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..fb31ffee3f Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-3-Base-hU-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-4-Phosphate-bnn-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-4-Phosphate-bnn-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..097f857376 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-4-Phosphate-bnn-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-4-Phosphate-bnn-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-4-Phosphate-bnn-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..04fecb41c9 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-4-Phosphate-bnn-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..284d699820 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..5df064bc70 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..d589cd55d8 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..d0def6c9a9 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-collapsed-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-1-Petide-D-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-1-Petide-D-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-1-Petide-D-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-1-Petide-D-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-1-Petide-D-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..529a74ad60 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-1-Petide-D-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-2-Sugar-UNA-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-2-Sugar-UNA-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..a23a8bf719 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-2-Sugar-UNA-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-2-Sugar-UNA-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-2-Sugar-UNA-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..ce4a619f24 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-2-Sugar-UNA-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-3-Base-hU-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-3-Base-hU-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..9861848cd4 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-3-Base-hU-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-3-Base-hU-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-3-Base-hU-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..fb31ffee3f Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-3-Base-hU-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-4-Phosphate-bnn-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-4-Phosphate-bnn-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..f6f220e3ec Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-4-Phosphate-bnn-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-4-Phosphate-bnn-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-4-Phosphate-bnn-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..04fecb41c9 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-4-Phosphate-bnn-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..b9d1faa1df Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..5df064bc70 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..8c1e990375 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..d0def6c9a9 Binary files /dev/null and b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SMARTS-Files/smarts-files.spec.ts-snapshots/Saving-expanded-monomer-to-SMARTS-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Indigo-Tools/Reaction Auto-mapping tool/reaction-am-tool-veryfing-button.spec.ts b/ketcher-autotests/tests/Indigo-Tools/Reaction Auto-mapping tool/reaction-am-tool-veryfing-button.spec.ts index 0a870c8242..16cceb8cf3 100644 --- a/ketcher-autotests/tests/Indigo-Tools/Reaction Auto-mapping tool/reaction-am-tool-veryfing-button.spec.ts +++ b/ketcher-autotests/tests/Indigo-Tools/Reaction Auto-mapping tool/reaction-am-tool-veryfing-button.spec.ts @@ -4,8 +4,6 @@ import { selectNestedTool, openFileAndAddToCanvas, takeEditorScreenshot, - selectTopPanelButton, - TopPanelButton, clickOnTheCanvas, applyAutoMapMode, selectLeftPanelButton, @@ -15,6 +13,7 @@ import { clickOnAtom, waitForSpinnerFinishedWork, } from '@utils'; +import { pressUndoButton } from '@utils/macromolecules/topToolBar'; test.describe('Verifying buttons on reaction am tool dropdown', () => { test.beforeEach(async ({ page }) => { @@ -81,7 +80,7 @@ test.describe('Verifying buttons on reaction am tool dropdown', () => { const atomNumber2 = 2; await openFileAndAddToCanvas('Rxn-V2000/reaction-3.rxn', page); await applyAutoMapMode(page, mode); - await selectTopPanelButton(TopPanelButton.Undo, page); + await pressUndoButton(page); await takeEditorScreenshot(page); await selectLeftPanelButton(LeftPanelButton.ReactionMappingTool, page); await clickOnAtom(page, 'C', atomNumber1); @@ -98,9 +97,9 @@ test.describe('Verifying buttons on reaction am tool dropdown', () => { await selectLeftPanelButton(LeftPanelButton.RectangleSelection, page); await takeEditorScreenshot(page); await applyAutoMapMode(page, 'Discard'); - await selectTopPanelButton(TopPanelButton.Undo, page); + await pressUndoButton(page); await applyAutoMapMode(page, 'Keep'); - await selectTopPanelButton(TopPanelButton.Undo, page); + await pressUndoButton(page); await applyAutoMapMode(page, 'Alter', false); }); test('After the manual mapping with incorrect ordering', async ({ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts index 293b4a5c29..f0fc0aacb9 100644 --- a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts +++ b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts @@ -659,3 +659,235 @@ test.describe('Sugar monomers on the canvas, their connection points and preview }); } }); + +// Commented out because of we have BUG - https://github.com/epam/ketcher/issues/5873 +// interface IMonomer { +// monomerDescription: string; +// KETFile: string; +// KETFile_Expected: string; +// monomerLocatorText: string; +// // Set shouldFail to true if you expect test to fail because of existed bug and put issues link to issueNumber +// shouldFail?: boolean; +// // issueNumber is mandatory if shouldFail === true +// issueNumber?: string; +// // set pageReloadNeeded to true if you need to restart ketcher before test (f.ex. to restart font renderer) +// pageReloadNeeded?: boolean; +// } +// +// const allTypesOfMonomers: IMonomer[] = [ +// { +// monomerDescription: '1. Petide D (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library)-expected.ket', +// monomerLocatorText: 'D', +// }, +// { +// monomerDescription: '2. Sugar UNA (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library)-expected.ket', +// monomerLocatorText: 'UNA', +// }, +// { +// monomerDescription: '3. Base hU (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library)-expected.ket', +// monomerLocatorText: 'hU', +// }, +// { +// monomerDescription: '4. Phosphate bnn (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library)-expected.ket', +// monomerLocatorText: 'bnn', +// }, +// { +// monomerDescription: '5. Unsplit nucleotide 5hMedC (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library)-expected.ket', +// monomerLocatorText: '5hMedC', +// }, +// { +// monomerDescription: '6. CHEM 4aPEGMal (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library)-expected.ket', +// monomerLocatorText: '4aPEGMal', +// }, +// { +// monomerDescription: '7. Peptide X (ambiguouse, alternatives, from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/1. Peptide X (ambiguouse, alternatives, from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/1. Peptide X (ambiguouse, alternatives, from library)-expected.ket', +// monomerLocatorText: 'X', +// }, +// { +// monomerDescription: +// '8. Peptide A+C+D+E+F+G+H+I+K+L+M+N+O+P+Q+R+S+T+U+V+W+Y (ambiguouse, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/2. Peptide A+C+D+E+F+G+H+I+K+L+M+N+O+P+Q+R+S+T+U+V+W+Y (ambiguouse, mixed).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/2. Peptide A+C+D+E+F+G+H+I+K+L+M+N+O+P+Q+R+S+T+U+V+W+Y (ambiguouse, mixed)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '9. Peptide G+H+I+K+L+M+N+O+P (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/3. Peptide G+H+I+K+L+M+N+O+P (ambiguous, mixed).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/3. Peptide G+H+I+K+L+M+N+O+P (ambiguous, mixed)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: +// '10. Peptide G,H,I,K,L,M,N,O,P (ambiguous, alternatives)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/4. Peptide G,H,I,K,L,M,N,O,P (ambiguous, alternatives).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/4. Peptide G,H,I,K,L,M,N,O,P (ambiguous, alternatives)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '11. Sugar UNA, SGNA, RGNA (ambiguous, alternatives)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/5. Sugar UNA, SGNA, RGNA (ambiguous, alternatives).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/5. Sugar UNA, SGNA, RGNA (ambiguous, alternatives)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '12. Sugar UNA, SGNA, RGNA (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/6. Sugar UNA, SGNA, RGNA (ambiguous, mixed).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/6. Sugar UNA, SGNA, RGNA (ambiguous, mixed)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: +// '13. DNA base N (ambiguous, alternatives, from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/7. DNA base N (ambiguous, alternatives, from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/7. DNA base N (ambiguous, alternatives, from library)-expected.ket', +// monomerLocatorText: 'N', +// }, +// { +// monomerDescription: +// '14. RNA base N (ambiguous, alternatives, from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/8. RNA base N (ambiguous, alternatives, from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/8. RNA base N (ambiguous, alternatives, from library)-expected.ket', +// monomerLocatorText: 'N', +// }, +// { +// monomerDescription: '15. Base M (ambiguous, alternatives, from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/9. Base M (ambiguous, alternatives, from library).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/9. Base M (ambiguous, alternatives, from library)-expected.ket', +// monomerLocatorText: 'M', +// }, +// { +// monomerDescription: '16. DNA base A+C+G+T (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/10. DNA base A+C+G+T (ambiguous, mixed).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/10. DNA base A+C+G+T (ambiguous, mixed)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '17. RNA base A+C+G+U (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/11. RNA base A+C+G+U (ambiguous, mixed).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/11. RNA base A+C+G+U (ambiguous, mixed)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '18. Base A+C (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/12. Base A+C (ambiguous, mixed).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/12. Base A+C (ambiguous, mixed)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '19. Phosphate bnn,cmp,nen (ambiguous, alternatives)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/13. Phosphate bnn,cmp,nen (ambiguous, alternatives).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/13. Phosphate bnn,cmp,nen (ambiguous, alternatives)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '20. Phosphate bnn+cmp+nen (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/14. Phosphate bnn+cmp+nen (ambiguous, mixed).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/14. Phosphate bnn+cmp+nen (ambiguous, mixed)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '21. CHEM PEG-2,PEG-4,PEG-6 (ambiguous, alternatives)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/15. CHEM PEG-2,PEG-4,PEG-6 (ambiguous, alternatives).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/15. CHEM PEG-2,PEG-4,PEG-6 (ambiguous, alternatives)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '22. CHEM PEG-2+PEG-4+PEG-6 (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/16. CHEM PEG-2+PEG-4+PEG-6 (ambiguous, mixed).ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/16. CHEM PEG-2+PEG-4+PEG-6 (ambiguous, mixed)-expected.ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '23. Unknown nucleotide', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/17. Unknown nucleotide.ket', +// KETFile_Expected: +// 'tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Negative/17. Unknown nucleotide-expected.ket', +// monomerLocatorText: 'Unknown', +// }, +// ]; + +// for (const monomer of allTypesOfMonomers) { +// test(`Save monomer on Micro to KET: ${monomer.monomerDescription}`, async () => { +// /* +// * Test task: https://github.com/epam/ketcher/issues/5773 +// * Description: Verify saving collapsed monomers in KET +// * Case: 1. Load monomer on Molecules canvas +// * 2. Take screenshot to witness original state +// * 3. Save canvas to KET +// * 4. Verify that export result equal to template +// * 5. Load saved KET to the canvas +// * 6. Take screenshot to witness saved state +// */ +// await pageReload(page); + +// await turnOnMicromoleculesEditor(page); +// await openFileAndAddToCanvasAsNewProject(monomer.KETFile, page); +// await takeEditorScreenshot(page); +// await verifyFile2( +// page, +// monomer.KETFile_Expected, +// FileType.KET, +// ); +// await openFileAndAddToCanvasAsNewProject(monomer.KETFile_Expected, page); +// await takeEditorScreenshot(page); +// }); +// } diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-1-Petide-D-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-1-Petide-D-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..b596d839d1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-1-Petide-D-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..4b2bc93e3e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..d97e0a1de3 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..8d210ac14d Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-13-DNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-13-DNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..029d3b3ada Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-13-DNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-14-RNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-14-RNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..936f7e852b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-14-RNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-15-Base-M-ambiguous-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-15-Base-M-ambiguous-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..6dfb5827e9 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-15-Base-M-ambiguous-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-16-DNA-base-A-C-G-T-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-16-DNA-base-A-C-G-T-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..4774add614 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-16-DNA-base-A-C-G-T-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-17-RNA-base-A-C-G-U-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-17-RNA-base-A-C-G-U-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..4774add614 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-17-RNA-base-A-C-G-U-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-18-Base-A-C-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-18-Base-A-C-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..4774add614 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-18-Base-A-C-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..05db2a16c8 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-2-Sugar-UNA-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-2-Sugar-UNA-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..97f6948957 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-2-Sugar-UNA-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..e132f1c754 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..13c1853874 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..2dd8582255 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-23-Unknown-nucleotide-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-23-Unknown-nucleotide-1-chromium-linux.png new file mode 100644 index 0000000000..f0dbd67ba6 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-23-Unknown-nucleotide-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-3-Base-hU-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-3-Base-hU-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..4c4aa64b85 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-3-Base-hU-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-4-Phosphate-bnn-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-4-Phosphate-bnn-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..8874624664 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-4-Phosphate-bnn-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..a73eec6c8a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..0e76626be2 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-7-Peptide-X-ambiguouse-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-7-Peptide-X-ambiguouse-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..9e07e80598 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-7-Peptide-X-ambiguouse-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-8-Peptide-A-C-D-4a1cf-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-8-Peptide-A-C-D-4a1cf-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..058adba450 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-8-Peptide-A-C-D-4a1cf-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..4b2bc93e3e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-ket.spec.ts-snapshots/Save-monomer-on-Micro-to-KET-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/saving-svg.spec.ts b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/saving-svg.spec.ts index 876d636e64..bac9704713 100644 --- a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/saving-svg.spec.ts +++ b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/saving-svg.spec.ts @@ -245,6 +245,7 @@ test.describe('Saving in .svg files', () => { for (const { filename, description } of testData2) { test(`Export to SVG: Verify it is possible to export Sequence-RNA mode canvas with ${description} to SVG`, async () => { + await pageReload(page); await openFileAndAddToCanvasMacro(filename, page); await selectSequenceLayoutModeTool(page); await switchSequenceEnteringButtonType(page, SequenceType.RNA); diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts index a664bb893d..897e25c702 100644 --- a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts +++ b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts @@ -67,11 +67,7 @@ import { readFileContents, openPasteFromClipboard, waitForPageInit, - moveOnBond, - BondType, - copyToClipboardByKeyboard, - cutToClipboardByKeyboard, - pasteFromClipboardByKeyboard, + clickOnCanvas, } from '@utils'; import { addSuperatomAttachmentPoint, @@ -83,10 +79,6 @@ import { miewApplyButtonIsEnabled } from '@utils/common/loaders/waitForMiewApply import { pageReload } from '@utils/common/helpers'; import { Chems, Peptides } from '@utils/selectors/macromoleculeEditor'; import { moveMonomerOnMicro } from '@utils/macromolecules/monomer'; -import { - pressRedoButton, - pressUndoButton, -} from '@utils/macromolecules/topToolBar'; import { goToCHEMTab, goToPeptidesTab, @@ -217,12 +209,6 @@ async function open3DViewer(page: Page, waitForButtonIsEnabled = true) { } } -async function selectExpandedMonomer(page: Page) { - await moveOnBond(page, BondType.SINGLE, 1); - await page.mouse.down(); - await page.mouse.up(); -} - let page: Page; async function configureInitialState(page: Page) { @@ -275,6 +261,7 @@ test.describe('Macro-Micro-Switcher', () => { Test case: Macro-Micro-Switcher Description: Macromolecule structures in micromode are represented as S-Groups with bonds */ + await pageReload(page); await turnOnMacromoleculesEditor(page); await openFileAndAddToCanvasMacro( 'KET/three-monomers-connected-with-bonds.ket', @@ -823,7 +810,7 @@ test.describe('Macro-Micro-Switcher', () => { page, FILE_TEST_DATA.oneFunctionalGroupExpandedKet, ); - await page.mouse.click(topLeftCornerCoords.x, topLeftCornerCoords.y); + await clickOnCanvas(page, topLeftCornerCoords.x, topLeftCornerCoords.y); await turnOnMacromoleculesEditor(page); await page.getByText('F1').locator('..').click(); await takeEditorScreenshot(page); @@ -847,9 +834,7 @@ test.describe('Macro-Micro-Switcher', () => { FILE_TEST_DATA.functionalGroupsExpandedContractedV3000, '.mol', ); - await waitForRender(page, async () => { - await page.mouse.click(coordsToClick.x, coordsToClick.y); - }); + await clickOnCanvas(page, coordsToClick.x, coordsToClick.y); await turnOnMacromoleculesEditor(page); await page.getByText('F1').locator('..').hover(); await takeEditorScreenshot(page); @@ -1081,7 +1066,7 @@ test.describe('Macro-Micro-Switcher', () => { const x1 = 600; const y1 = 600; await selectRing(RingButton.Benzene, page); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await takeEditorScreenshot(page); await turnOnMacromoleculesEditor(page); await page.getByText('F1').locator('..').hover(); @@ -1106,7 +1091,7 @@ test.describe('Macro-Micro-Switcher', () => { const x1 = 600; const y1 = 600; await selectAtomInToolbar(AtomButton.Oxygen, page); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await takeEditorScreenshot(page); await turnOnMacromoleculesEditor(page); await page.getByText('F1').locator('..').hover(); @@ -1131,7 +1116,7 @@ test.describe('Macro-Micro-Switcher', () => { const x1 = 600; const y1 = 600; await selectFunctionalGroups(FunctionalGroups.FMOC, page); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await takeEditorScreenshot(page); await turnOnMacromoleculesEditor(page); await page.getByText('F1').locator('..').hover(); @@ -1156,7 +1141,7 @@ test.describe('Macro-Micro-Switcher', () => { const x1 = 600; const y1 = 600; await selectSaltsAndSolvents(SaltsAndSolvents.AceticAnhydride, page); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await takeEditorScreenshot(page); await turnOnMacromoleculesEditor(page); await page.getByText('F1').locator('..').hover(); @@ -1213,7 +1198,7 @@ test.describe('Macro-Micro-Switcher', () => { await page.getByTestId('RNA-TAB').click(); await page.getByTestId(data.summaryTestId).click(); await page.getByTestId(data.monomerTestId).click(); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await bondTwoMonomersPointToPoint( page, firstMonomer, @@ -1248,7 +1233,7 @@ test.describe('Macro-Micro-Switcher', () => { await turnOnMacromoleculesEditor(page); await page.getByTestId('CHEM-TAB').click(); await page.getByTestId('Test-6-Ch___Test-6-AP-Chem').click(); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await bondTwoMonomersPointToPoint( page, firstMonomer, @@ -1307,7 +1292,7 @@ test.describe('Macro-Micro-Switcher', () => { await page.getByTestId('RNA-TAB').click(); await page.getByTestId(data.summaryTestId).click(); await page.getByTestId(data.monomerTestId).click(); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await bondTwoMonomersPointToPoint( page, firstMonomer, @@ -1341,7 +1326,7 @@ test.describe('Macro-Micro-Switcher', () => { await selectSnakeLayoutModeTool(page); await page.getByTestId('CHEM-TAB').click(); await page.getByTestId('Test-6-Ch___Test-6-AP-Chem').click(); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await bondTwoMonomersPointToPoint( page, firstMonomer, @@ -1399,7 +1384,7 @@ test.describe('Macro-Micro-Switcher', () => { await page.getByTestId('RNA-TAB').click(); await page.getByTestId(data.summaryTestId).click(); await page.getByTestId(data.monomerTestId).click(); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await bondTwoMonomersPointToPoint( page, firstMonomer, @@ -1435,7 +1420,7 @@ test.describe('Macro-Micro-Switcher', () => { await turnOnMacromoleculesEditor(page); await page.getByTestId('CHEM-TAB').click(); await page.getByTestId('Test-6-Ch___Test-6-AP-Chem').click(); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await bondTwoMonomersPointToPoint( page, firstMonomer, @@ -1496,7 +1481,7 @@ test.describe('Macro-Micro-Switcher', () => { await page.getByTestId('RNA-TAB').click(); await page.getByTestId(data.summaryTestId).click(); await page.getByTestId(data.monomerTestId).click(); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await bondTwoMonomersPointToPoint( page, firstMonomer, @@ -1535,7 +1520,7 @@ test.describe('Macro-Micro-Switcher', () => { await turnOnMacromoleculesEditor(page); await goToCHEMTab(page); await page.getByTestId('Test-6-Ch___Test-6-AP-Chem').click(); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await bondTwoMonomersPointToPoint( page, firstMonomer, @@ -1572,7 +1557,7 @@ test.describe('Macro-Micro-Switcher', () => { await turnOnMacromoleculesEditor(page); await page.getByTestId('CHEM-TAB').click(); await page.getByTestId('Test-6-Ch___Test-6-AP-Chem').click(); - await page.mouse.click(x, y); + await clickOnCanvas(page, x, y); await bondTwoMonomersPointToPoint( page, firstMonomer, @@ -1595,7 +1580,7 @@ test.describe('Macro-Micro-Switcher', () => { */ await openFileAndAddToCanvas('KET/oxygen-on-attachment-point.ket', page); await selectLeftPanelButton(LeftPanelButton.Erase, page); - await page.mouse.click(645, 318); + await clickOnCanvas(page, 645, 318); await takeEditorScreenshot(page); }); @@ -2467,12 +2452,6 @@ async function collapseMonomer(page: Page) { } } -async function selectMonomerOnMicro(page: Page, monomerName: string) { - const canvasLocator = page.getByTestId('ketcher-canvas'); - await waitForRender(page, async () => { - await canvasLocator.getByText(monomerName, { exact: true }).click(); - }); -} interface IMonomer { monomerDescription: string; KETFile: string; @@ -2869,18 +2848,21 @@ const movableCollapsedMonomers: IMonomer[] = [ KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', monomerLocatorText: 'D', + pageReloadNeeded: true, }, { monomerDescription: '2. Sugar UNA (from library)', KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library).ket', monomerLocatorText: 'UNA', + pageReloadNeeded: true, }, { monomerDescription: '3. Base hU (from library)', KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library).ket', monomerLocatorText: 'hU', + pageReloadNeeded: true, }, { monomerDescription: '4. Phosphate bnn (from library)', @@ -2894,6 +2876,7 @@ const movableCollapsedMonomers: IMonomer[] = [ KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library).ket', monomerLocatorText: '5hMedC', + pageReloadNeeded: true, }, { monomerDescription: '6. CHEM 4aPEGMal (from library)', @@ -2944,6 +2927,7 @@ const movableCollapsedMonomers: IMonomer[] = [ KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/6. Sugar UNA, SGNA, RGNA (ambiguous, mixed).ket', monomerLocatorText: '%', + pageReloadNeeded: true, }, { monomerDescription: @@ -2951,6 +2935,7 @@ const movableCollapsedMonomers: IMonomer[] = [ KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/7. DNA base N (ambiguous, alternatives, from library).ket', monomerLocatorText: 'N', + pageReloadNeeded: true, }, { monomerDescription: @@ -2958,24 +2943,28 @@ const movableCollapsedMonomers: IMonomer[] = [ KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/8. RNA base N (ambiguous, alternatives, from library).ket', monomerLocatorText: 'N', + pageReloadNeeded: true, }, { monomerDescription: '15. Base M (ambiguous, alternatives, from library)', KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/9. Base M (ambiguous, alternatives, from library).ket', monomerLocatorText: 'M', + pageReloadNeeded: true, }, { monomerDescription: '16. DNA base A+C+G+T (ambiguous, mixed)', KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/10. DNA base A+C+G+T (ambiguous, mixed).ket', monomerLocatorText: '%', + pageReloadNeeded: true, }, { monomerDescription: '17. RNA base A+C+G+U (ambiguous, mixed)', KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/11. RNA base A+C+G+U (ambiguous, mixed).ket', monomerLocatorText: '%', + pageReloadNeeded: true, }, { monomerDescription: '18. Base A+C (ambiguous, mixed)', @@ -3002,6 +2991,7 @@ const movableCollapsedMonomers: IMonomer[] = [ KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/15. CHEM PEG-2,PEG-4,PEG-6 (ambiguous, alternatives).ket', monomerLocatorText: '%', + pageReloadNeeded: true, }, { monomerDescription: '22. CHEM PEG-2+PEG-4+PEG-6 (ambiguous, mixed)', @@ -3015,6 +3005,7 @@ const movableCollapsedMonomers: IMonomer[] = [ KETFile: 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/17. Unknown nucleotide.ket', monomerLocatorText: 'Unknown', + pageReloadNeeded: true, }, ]; @@ -3063,274 +3054,3 @@ test.describe('Move in collepsed state on Micro canvas: ', () => { }); } }); - -async function moveExpandedMonomerOnMicro(page: Page, x: number, y: number) { - await moveOnBond(page, BondType.SINGLE, 1); - await dragMouseTo(x, y, page); -} - -const movableExpandedMonomers: IMonomer[] = [ - { - monomerDescription: '1. Petide D (from library)', - KETFile: - 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', - monomerLocatorText: 'D', - pageReloadNeeded: true, - }, - { - monomerDescription: '2. Sugar UNA (from library)', - KETFile: - 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library).ket', - monomerLocatorText: 'UNA', - }, - { - monomerDescription: '3. Base hU (from library)', - KETFile: - 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library).ket', - monomerLocatorText: 'hU', - }, - { - monomerDescription: '4. Phosphate bnn (from library)', - KETFile: - 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library).ket', - monomerLocatorText: 'bnn', - }, - { - monomerDescription: '5. Unsplit nucleotide 5hMedC (from library)', - KETFile: - 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library).ket', - monomerLocatorText: '5hMedC', - }, - { - monomerDescription: '6. CHEM 4aPEGMal (from library)', - KETFile: - 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library).ket', - monomerLocatorText: '4aPEGMal', - }, -]; - -test.describe('Move in expanded state on Micro canvas: ', () => { - test.beforeEach(async () => { - await turnOnMicromoleculesEditor(page); - }); - - for (const movableExpandedMonomer of movableExpandedMonomers) { - test(`${movableExpandedMonomer.monomerDescription}`, async () => { - /* - * Test task: https://github.com/epam/ketcher/issues/5773 - * Description: Verify that expanded macromolecules can be moved across the canvas - * - * Case: 1. Load monomer on Molecules canvas - * 2. Expand it - * 2. Take screenshot to witness initial position - * 3. Grab it and move it to the top left corner - * 6. Take screenshot to witness final position - */ - if (movableExpandedMonomer.pageReloadNeeded) { - await pageReload(page); - await turnOnMicromoleculesEditor(page); - } - await openFileAndAddToCanvasAsNewProject( - movableExpandedMonomer.KETFile, - page, - ); - - await expandMonomer(page, movableExpandedMonomer.monomerLocatorText); - await takeEditorScreenshot(page); - - await moveExpandedMonomerOnMicro(page, 200, 200); - await moveMouseToTheMiddleOfTheScreen(page); - await takeEditorScreenshot(page); - - // Test should be skipped if related bug exists - test.fixme( - movableExpandedMonomer.shouldFail === true, - `That test results are wrong because of ${movableExpandedMonomer.issueNumber} issue(s).`, - ); - }); - } -}); - -const expandableMonomer: IMonomer = { - monomerDescription: '1. Petide D (from library)', - KETFile: - 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', - monomerLocatorText: 'D', -}; - -test(`Verify that the system supports undo/redo functionality for expanding and collapsing monomers in micro mode`, async () => { - /* - * Test task: https://github.com/epam/ketcher/issues/5773 - * Description: Verify that the system supports undo/redo functionality for expanding and collapsing monomers in micro mode - * - * Case: 1. Load monomer on Molecules canvas - * 2. Expand it - * 2. Take screenshot to witness initial state - * 3. Press Undo button - * 6. Take screenshot to witness final position - * 7. Press Redo button - */ - await turnOnMicromoleculesEditor(page); - await openFileAndAddToCanvasAsNewProject(expandableMonomer.KETFile, page); - await expandMonomer(page, expandableMonomer.monomerLocatorText); - await takeEditorScreenshot(page); - await pressUndoButton(page); - await takeEditorScreenshot(page); - await pressRedoButton(page); - await takeEditorScreenshot(page); -}); - -const copyableMonomer: IMonomer = { - monomerDescription: '1. Petide D (from library)', - KETFile: - 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', - monomerLocatorText: 'D', -}; - -test(`Verify that the system supports copy/paste functionality for collapsed monomers in micro mode`, async () => { - /* - * Test task: https://github.com/epam/ketcher/issues/5773 - * Description: Verify that the system supports copy/paste functionality for collapsed monomers in micro mode - * - * Case: 1. Load monomer on Molecules canvas - * 2. Take screenshot to witness initial state - * 3. Copy monomer to clipboard - * 4. Paste it to the canvas - * 5. Take screenshot to witness final position - */ - await turnOnMicromoleculesEditor(page); - - await openFileAndAddToCanvasAsNewProject(copyableMonomer.KETFile, page); - await takeEditorScreenshot(page); - await selectMonomerOnMicro(page, copyableMonomer.monomerLocatorText); - await copyToClipboardByKeyboard(page); - await pasteFromClipboardByKeyboard(page); - await waitForRender(page, async () => { - await page.mouse.click(200, 200); - }); - await takeEditorScreenshot(page); -}); - -const cutableMonomer: IMonomer = { - monomerDescription: '1. Petide D (from library)', - KETFile: - 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', - monomerLocatorText: 'D', -}; - -test(`Verify that the system supports cut/paste functionality for collapsed monomers in micro mode`, async () => { - /* - * Test task: https://github.com/epam/ketcher/issues/5773 - * Description: Verify that the system supports cut/paste functionality for collapsed monomers in micro mode - * - * Case: 1. Load monomer on Molecules canvas - * 2. Take screenshot to witness initial state - * 3. Cut monomer to clipboard - * 4. Paste it to the canvas - * 5. Take screenshot to witness final position - */ - await turnOnMicromoleculesEditor(page); - - await openFileAndAddToCanvasAsNewProject(cutableMonomer.KETFile, page); - await takeEditorScreenshot(page); - await selectMonomerOnMicro(page, cutableMonomer.monomerLocatorText); - - await cutToClipboardByKeyboard(page); - await pasteFromClipboardByKeyboard(page); - await waitForRender(page, async () => { - await page.mouse.click(200, 200); - }); - await takeEditorScreenshot(page); -}); - -test(`Verify that the system supports copy/paste functionality for expanded monomers in micro mode`, async () => { - /* - * Test task: https://github.com/epam/ketcher/issues/5773 - * Description: Verify that the system supports copy/paste functionality for expanded monomers in micro mode - * - * Case: 1. Load monomer on Molecules canvas - * 2. Expand monomer - * 3. Click on any monomer bond to select it - * 4. Take screenshot to witness initial state - * 5. Copy monomer to clipboard - * 6. Paste it to the canvas - * 7. Take screenshot to witness final position - */ - await turnOnMicromoleculesEditor(page); - - await openFileAndAddToCanvasAsNewProject(copyableMonomer.KETFile, page); - await expandMonomer(page, copyableMonomer.monomerLocatorText); - await takeEditorScreenshot(page); - await selectExpandedMonomer(page); - await copyToClipboardByKeyboard(page); - await pasteFromClipboardByKeyboard(page); - await waitForRender(page, async () => { - await page.mouse.click(200, 200); - }); - await takeEditorScreenshot(page); - - test.fixme( - // eslint-disable-next-line no-self-compare - true === true, - `That test results are wrong because of https://github.com/epam/ketcher/issues/5831 issue(s).`, - ); -}); - -test(`Verify that the system supports cut/paste functionality for expanded monomers in micro mode`, async () => { - /* - * Test task: https://github.com/epam/ketcher/issues/5773 - * Description: Verify that the system supports cut/paste functionality for expanded monomers in micro mode - * - * Case: 1. Load monomer on Molecules canvas - * 2. Expand monomer - * 3. Click on any monomer bond to select it - * 4. Take screenshot to witness initial state - * 5. Cut monomer to clipboard - * 6. Paste it to the canvas - * 7. Take screenshot to witness final position - */ - await turnOnMicromoleculesEditor(page); - - await openFileAndAddToCanvasAsNewProject(cutableMonomer.KETFile, page); - await expandMonomer(page, cutableMonomer.monomerLocatorText); - await takeEditorScreenshot(page); - await selectExpandedMonomer(page); - await cutToClipboardByKeyboard(page); - await pasteFromClipboardByKeyboard(page); - await waitForRender(page, async () => { - await page.mouse.click(200, 200); - }); - await takeEditorScreenshot(page); - - test.fixme( - // eslint-disable-next-line no-self-compare - true === true, - `That test results are wrong because of https://github.com/epam/ketcher/issues/5831 issue(s).`, - ); -}); - -test(`Verify that "Expand monomer" does not break cyclic structures when the ring is expanded`, async () => { - /* - * Test task: https://github.com/epam/ketcher/issues/5773 - * Description: Verify that "Expand monomer" does not break cyclic structures when the ring is expanded - * - * Case: 1. Load monomer cycle on Molecules canvas - * 2. Take screenshot to witness initial state - * 3. Expand all monomers from cycle - * 4. Take screenshot to witness final position - */ - await turnOnMicromoleculesEditor(page); - - await openFileAndAddToCanvasAsNewProject( - 'KET/Micro-Macro-Switcher/All type of monomers cycled.ket', - page, - ); - await takeEditorScreenshot(page); - await expandMonomer(page, 'A'); - await expandMonomer(page, '5hMedC'); - await expandMonomer(page, 'gly'); - await expandMonomer(page, 'Mal'); - await expandMonomer(page, '12ddR'); - await expandMonomer(page, 'oC64m5'); - await takeEditorScreenshot(page); -}); diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-After-hiding-L-ec903-acro-mode-possible-to-see-Show-Library-button-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-After-hiding-L-ec903-acro-mode-possible-to-see-Show-Library-button-1-chromium-linux.png index 2beecd8577..e5decec1af 100755 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-After-hiding-L-ec903-acro-mode-possible-to-see-Show-Library-button-1-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-After-hiding-L-ec903-acro-mode-possible-to-see-Show-Library-button-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-11636--Mouse-scroll-after-switching-to-Macro-mode-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-11636--Mouse-scroll-after-switching-to-Macro-mode-2-chromium-linux.png index 804d3df4ce..e2372d2935 100755 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-11636--Mouse-scroll-after-switching-to-Macro-mode-2-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-11636--Mouse-scroll-after-switching-to-Macro-mode-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-131b4-rk-UI-Buttons-after-switching-to-Macro-mode-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-131b4-rk-UI-Buttons-after-switching-to-Macro-mode-1-chromium-linux.png index 6f5cda0d16..2d5aa16c96 100755 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-131b4-rk-UI-Buttons-after-switching-to-Macro-mode-1-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-131b4-rk-UI-Buttons-after-switching-to-Macro-mode-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-1d5fd-rk-UI-Buttons-after-switching-to-Macro-mode-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-1d5fd-rk-UI-Buttons-after-switching-to-Macro-mode-3-chromium-linux.png index 90edc2a237..7a8ae45505 100755 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-1d5fd-rk-UI-Buttons-after-switching-to-Macro-mode-3-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-1d5fd-rk-UI-Buttons-after-switching-to-Macro-mode-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-2ea75--Mouse-scroll-after-switching-to-Macro-mode-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-2ea75--Mouse-scroll-after-switching-to-Macro-mode-3-chromium-linux.png index 90edc2a237..7a8ae45505 100755 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-2ea75--Mouse-scroll-after-switching-to-Macro-mode-3-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-2ea75--Mouse-scroll-after-switching-to-Macro-mode-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-6d8d0-rk-UI-Buttons-after-switching-to-Macro-mode-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-6d8d0-rk-UI-Buttons-after-switching-to-Macro-mode-2-chromium-linux.png index 21d78c252d..e27b0ba73c 100755 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-6d8d0-rk-UI-Buttons-after-switching-to-Macro-mode-2-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-6d8d0-rk-UI-Buttons-after-switching-to-Macro-mode-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-c1f8a--Mouse-scroll-after-switching-to-Macro-mode-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-c1f8a--Mouse-scroll-after-switching-to-Macro-mode-1-chromium-linux.png index 417986aa78..35c1b92b04 100755 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-c1f8a--Mouse-scroll-after-switching-to-Macro-mode-1-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-Zoom-In-Zoom-O-c1f8a--Mouse-scroll-after-switching-to-Macro-mode-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-macromolecule--716dd-romode-are-represented-as-S-Groups-with-bonds-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-macromolecule--716dd-romode-are-represented-as-S-Groups-with-bonds-1-chromium-linux.png index 3cae4b2119..fb0b44319a 100755 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-macromolecule--716dd-romode-are-represented-as-S-Groups-with-bonds-1-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-macromolecule--716dd-romode-are-represented-as-S-Groups-with-bonds-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-the-zoomed-in--c5dca--switch-to-Micro-mode-and-again-to-Macro-mode-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-the-zoomed-in--c5dca--switch-to-Micro-mode-and-again-to-Macro-mode-2-chromium-linux.png index 90edc2a237..7a8ae45505 100755 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-the-zoomed-in--c5dca--switch-to-Micro-mode-and-again-to-Macro-mode-2-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Check-that-the-zoomed-in--c5dca--switch-to-Micro-mode-and-again-to-Macro-mode-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Connect-molecule-to-monomer-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Connect-molecule-to-monomer-1-chromium-linux.png index 0e476704ed..c731d77676 100644 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Connect-molecule-to-monomer-1-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Connect-molecule-to-monomer-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Make-full-screen-mode-in-micro-mode-and-switch-to-macro-mode-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Make-full-screen-mode-in-micro-mode-and-switch-to-macro-mode-1-chromium-linux.png index 53cb383abf..1ac934c9b5 100644 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Make-full-screen-mode-in-micro-mode-and-switch-to-macro-mode-1-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Make-full-screen-mode-in-micro-mode-and-switch-to-macro-mode-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Open-a-macro-file-and-put-d63bb--of-canvas-in-micro-mode-then-switch-to-macro-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Open-a-macro-file-and-put-d63bb--of-canvas-in-micro-mode-then-switch-to-macro-2-chromium-linux.png index 774173e3ae..3559f1bc3b 100644 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Open-a-macro-file-and-put-d63bb--of-canvas-in-micro-mode-then-switch-to-macro-2-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Macro-Micro-Switcher-Open-a-macro-file-and-put-d63bb--of-canvas-in-micro-mode-then-switch-to-macro-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..e83ba45199 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..5c111c7782 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..41ff972ef3 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..d311e66ddc Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-2-chromium-linux.png new file mode 100644 index 0000000000..a9f20fe49f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-3-chromium-linux.png new file mode 100644 index 0000000000..2ace2617e9 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..691c42b2dd Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-2-chromium-linux.png new file mode 100644 index 0000000000..7be58ffe9d Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-3-chromium-linux.png new file mode 100644 index 0000000000..a6339870e3 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..1bd14e1305 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..7d82108885 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..33141d8f9c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..ebb59ff5f6 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..73603a8ad0 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..071c07cbb5 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..52e770403f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..6924879402 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..e83a9bbc91 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..119856e554 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..9f5819e935 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..4a64e6b668 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..051b5b5242 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..0eac66558a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..284f152448 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..051b5b5242 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..0eac66558a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..22b1221529 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..051b5b5242 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..0eac66558a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..8453211855 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..21ed6b26b0 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-2-chromium-linux.png new file mode 100644 index 0000000000..f9665e6755 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-3-chromium-linux.png new file mode 100644 index 0000000000..efa2c7bae6 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..8c8e240223 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..8e8e9a508c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..ce6a957493 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..d8f3620b29 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..88f7e3e0bf Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..13a71630e1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..e6c258ef31 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-2-chromium-linux.png new file mode 100644 index 0000000000..29d19ea017 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-3-chromium-linux.png new file mode 100644 index 0000000000..6952ecae36 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..d564161242 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..5b1337febe Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..0fd3230451 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-1-chromium-linux.png new file mode 100644 index 0000000000..cb7d5aeab1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-2-chromium-linux.png new file mode 100644 index 0000000000..00b4751085 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-3-chromium-linux.png new file mode 100644 index 0000000000..e804d81978 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..f8bfa6d02a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..db2890e13e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..38cb3be9d7 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..097f857376 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..761158fe44 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..96d39a9c81 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..284d699820 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..9f4496442c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..9d66f1e86a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..d589cd55d8 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..0a8752c2ac Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..1361728368 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..e7eb54e0ff Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..4dcb7c56d7 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..c141c55197 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--32419-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--32419-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..d3195c8c70 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--32419-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--88ae1-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--88ae1-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..716f8cd611 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--88ae1-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--f8b99-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--f8b99-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..b1bf97e122 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--f8b99-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..d311e66ddc Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..a9f20fe49f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..a41ab9e94e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..20c0860c8e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..24df055eb5 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..b8d981ccce Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..a23a8bf719 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..9861848cd4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..56aa361073 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..9861848cd4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..f6f220e3ec Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..8e2a81683c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..f6f220e3ec Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..b9d1faa1df Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..c13fe18489 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..89638dd9c8 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..8c1e990375 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..de15b3832c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..ab02f6be9d Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-1-chromium-linux.png new file mode 100644 index 0000000000..5f00706123 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-2-chromium-linux.png new file mode 100644 index 0000000000..b596d839d1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-2-chromium-linux.png index 2be00a360b..9ca33a2bea 100644 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-2-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-01d9b-e-removing-the-expanded-monomer-and-its-bonds-6-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-01d9b-e-removing-the-expanded-monomer-and-its-bonds-6-chromium-linux.png new file mode 100644 index 0000000000..ad3069b4d4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-01d9b-e-removing-the-expanded-monomer-and-its-bonds-6-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-13832--removing-the-expanded-monomer-and-its-bonds-14-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-13832--removing-the-expanded-monomer-and-its-bonds-14-chromium-linux.png new file mode 100644 index 0000000000..ef4d31aebe Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-13832--removing-the-expanded-monomer-and-its-bonds-14-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-23647-e-removing-the-expanded-monomer-and-its-bonds-8-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-23647-e-removing-the-expanded-monomer-and-its-bonds-8-chromium-linux.png new file mode 100644 index 0000000000..8407d5467c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-23647-e-removing-the-expanded-monomer-and-its-bonds-8-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-49c75--removing-the-expanded-monomer-and-its-bonds-17-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-49c75--removing-the-expanded-monomer-and-its-bonds-17-chromium-linux.png new file mode 100644 index 0000000000..47de681e46 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-49c75--removing-the-expanded-monomer-and-its-bonds-17-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5ad02-e-removing-the-expanded-monomer-and-its-bonds-7-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5ad02-e-removing-the-expanded-monomer-and-its-bonds-7-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5ad02-e-removing-the-expanded-monomer-and-its-bonds-7-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5d341-e-removing-the-expanded-monomer-and-its-bonds-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5d341-e-removing-the-expanded-monomer-and-its-bonds-2-chromium-linux.png new file mode 100644 index 0000000000..20c395497f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5d341-e-removing-the-expanded-monomer-and-its-bonds-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-926b8--removing-the-expanded-monomer-and-its-bonds-11-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-926b8--removing-the-expanded-monomer-and-its-bonds-11-chromium-linux.png new file mode 100644 index 0000000000..525155d023 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-926b8--removing-the-expanded-monomer-and-its-bonds-11-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-94ec1--removing-the-expanded-monomer-and-its-bonds-16-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-94ec1--removing-the-expanded-monomer-and-its-bonds-16-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-94ec1--removing-the-expanded-monomer-and-its-bonds-16-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-95903--removing-the-expanded-monomer-and-its-bonds-10-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-95903--removing-the-expanded-monomer-and-its-bonds-10-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-95903--removing-the-expanded-monomer-and-its-bonds-10-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-98ab7--removing-the-expanded-monomer-and-its-bonds-12-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-98ab7--removing-the-expanded-monomer-and-its-bonds-12-chromium-linux.png new file mode 100644 index 0000000000..ae9855c0a1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-98ab7--removing-the-expanded-monomer-and-its-bonds-12-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-9e04c-e-removing-the-expanded-monomer-and-its-bonds-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-9e04c-e-removing-the-expanded-monomer-and-its-bonds-1-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-9e04c-e-removing-the-expanded-monomer-and-its-bonds-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ad465-e-removing-the-expanded-monomer-and-its-bonds-4-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ad465-e-removing-the-expanded-monomer-and-its-bonds-4-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ad465-e-removing-the-expanded-monomer-and-its-bonds-4-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-b6baf--removing-the-expanded-monomer-and-its-bonds-13-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-b6baf--removing-the-expanded-monomer-and-its-bonds-13-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-b6baf--removing-the-expanded-monomer-and-its-bonds-13-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-c21dc-e-removing-the-expanded-monomer-and-its-bonds-9-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-c21dc-e-removing-the-expanded-monomer-and-its-bonds-9-chromium-linux.png new file mode 100644 index 0000000000..7984a7c653 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-c21dc-e-removing-the-expanded-monomer-and-its-bonds-9-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-d869d--removing-the-expanded-monomer-and-its-bonds-19-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-d869d--removing-the-expanded-monomer-and-its-bonds-19-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-d869d--removing-the-expanded-monomer-and-its-bonds-19-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ea013-e-removing-the-expanded-monomer-and-its-bonds-5-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ea013-e-removing-the-expanded-monomer-and-its-bonds-5-chromium-linux.png new file mode 100644 index 0000000000..81599f1c58 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ea013-e-removing-the-expanded-monomer-and-its-bonds-5-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ec1f0--removing-the-expanded-monomer-and-its-bonds-15-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ec1f0--removing-the-expanded-monomer-and-its-bonds-15-chromium-linux.png new file mode 100644 index 0000000000..dbcba8ea4c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ec1f0--removing-the-expanded-monomer-and-its-bonds-15-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-f92a6-e-removing-the-expanded-monomer-and-its-bonds-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-f92a6-e-removing-the-expanded-monomer-and-its-bonds-3-chromium-linux.png new file mode 100644 index 0000000000..cde2c4da93 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-f92a6-e-removing-the-expanded-monomer-and-its-bonds-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-fec19--removing-the-expanded-monomer-and-its-bonds-18-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-fec19--removing-the-expanded-monomer-and-its-bonds-18-chromium-linux.png new file mode 100644 index 0000000000..e45ccc3faf Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-fec19--removing-the-expanded-monomer-and-its-bonds-18-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--851ba-ool-cause-Edit-Abbreviations-dialog-to-appear-4-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--851ba-ool-cause-Edit-Abbreviations-dialog-to-appear-4-chromium-linux.png new file mode 100644 index 0000000000..b14e93b85a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--851ba-ool-cause-Edit-Abbreviations-dialog-to-appear-4-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--a98d0-ool-cause-Edit-Abbreviations-dialog-to-appear-6-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--a98d0-ool-cause-Edit-Abbreviations-dialog-to-appear-6-chromium-linux.png new file mode 100644 index 0000000000..0a75980be1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--a98d0-ool-cause-Edit-Abbreviations-dialog-to-appear-6-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--b3191-ool-cause-Edit-Abbreviations-dialog-to-appear-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--b3191-ool-cause-Edit-Abbreviations-dialog-to-appear-2-chromium-linux.png new file mode 100644 index 0000000000..d349902d19 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--b3191-ool-cause-Edit-Abbreviations-dialog-to-appear-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--c176b-ool-cause-Edit-Abbreviations-dialog-to-appear-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--c176b-ool-cause-Edit-Abbreviations-dialog-to-appear-1-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--c176b-ool-cause-Edit-Abbreviations-dialog-to-appear-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--edd10-ool-cause-Edit-Abbreviations-dialog-to-appear-5-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--edd10-ool-cause-Edit-Abbreviations-dialog-to-appear-5-chromium-linux.png new file mode 100644 index 0000000000..c36ec16d53 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--edd10-ool-cause-Edit-Abbreviations-dialog-to-appear-5-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f16d1-ool-cause-Edit-Abbreviations-dialog-to-appear-7-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f16d1-ool-cause-Edit-Abbreviations-dialog-to-appear-7-chromium-linux.png new file mode 100644 index 0000000000..b2b401886f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f16d1-ool-cause-Edit-Abbreviations-dialog-to-appear-7-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f7638-ool-cause-Edit-Abbreviations-dialog-to-appear-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f7638-ool-cause-Edit-Abbreviations-dialog-to-appear-3-chromium-linux.png new file mode 100644 index 0000000000..ae9a66bc29 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f7638-ool-cause-Edit-Abbreviations-dialog-to-appear-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-22890--behaves-correctly-without-breaking-the-chain-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-22890--behaves-correctly-without-breaking-the-chain-1-chromium-linux.png new file mode 100644 index 0000000000..ede8a4d05b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-22890--behaves-correctly-without-breaking-the-chain-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-2ef95--behaves-correctly-without-breaking-the-chain-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-2ef95--behaves-correctly-without-breaking-the-chain-2-chromium-linux.png new file mode 100644 index 0000000000..e99f157c67 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-2ef95--behaves-correctly-without-breaking-the-chain-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-1-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-2-chromium-linux.png new file mode 100644 index 0000000000..ead1d15dd6 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-1-chromium-linux.png new file mode 100644 index 0000000000..d79fec39ee Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-2-chromium-linux.png new file mode 100644 index 0000000000..e7e474646e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts new file mode 100644 index 0000000000..95c62356c2 --- /dev/null +++ b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts @@ -0,0 +1,937 @@ +/* eslint-disable max-len */ +/* eslint-disable no-magic-numbers */ +import { + chooseTab, + Tabs, + turnOnMacromoleculesEditor, + turnOnMicromoleculesEditor, +} from '@utils/macromolecules'; +import { Page, test } from '@playwright/test'; +import { + dragMouseTo, + takeEditorScreenshot, + moveMouseToTheMiddleOfTheScreen, + selectEraseTool, + openFileAndAddToCanvasAsNewProject, + selectClearCanvasTool, + waitForPageInit, + moveOnBond, + BondType, + copyToClipboardByKeyboard, + cutToClipboardByKeyboard, + pasteFromClipboardByKeyboard, + clickOnBond, + clickOnAtomById, + clickOnCanvas, + waitForRender, +} from '@utils'; +import { pageReload } from '@utils/common/helpers'; +import { + pressRedoButton, + pressUndoButton, +} from '@utils/macromolecules/topToolBar'; +import { pressCancelAtEditAbbreviationDialog } from '@utils/canvas/EditAbbreviation'; + +async function clickOnAtomOfExpandedMonomer(page: Page, atomId: number) { + await clickOnAtomById(page, atomId); +} + +async function selectExpandedMonomer( + page: Page, + bondType: number = BondType.SINGLE, + bondNumber = 1, +) { + await clickOnBond(page, bondType, bondNumber); +} + +async function callContexMenu(page: Page, locatorText: string) { + const canvasLocator = page.getByTestId('ketcher-canvas'); + await canvasLocator.getByText(locatorText, { exact: true }).click({ + button: 'right', + }); +} + +async function expandMonomer(page: Page, locatorText: string) { + await callContexMenu(page, locatorText); + await waitForRender(page, async () => { + await page.getByText('Expand monomer').click(); + }); +} + +async function selectMonomerOnMicro(page: Page, monomerName: string) { + const canvasLocator = page.getByTestId('ketcher-canvas'); + await waitForRender(page, async () => { + await canvasLocator.getByText(monomerName, { exact: true }).click(); + }); +} + +let page: Page; + +async function configureInitialState(page: Page) { + await chooseTab(page, Tabs.Rna); +} + +test.beforeAll(async ({ browser }) => { + const context = await browser.newContext(); + page = await context.newPage(); + + await waitForPageInit(page); + await turnOnMacromoleculesEditor(page); + await configureInitialState(page); +}); + +test.afterEach(async () => { + await selectClearCanvasTool(page); +}); + +test.afterAll(async ({ browser }) => { + await Promise.all(browser.contexts().map((context) => context.close())); +}); + +interface IMonomer { + monomerDescription: string; + KETFile: string; + monomerLocatorText: string; + // Set shouldFail to true if you expect test to fail because of existed bug and put issues link to issueNumber + shouldFail?: boolean; + // issueNumber is mandatory if shouldFail === true + issueNumber?: string; + // set pageReloadNeeded to true if you need to restart ketcher before test (f.ex. to restart font renderer) + pageReloadNeeded?: boolean; +} + +// Unable to stabilize because of Undo/redo shift object on the canvas +// test.describe('Move collapsed monomer on Micro and Undo: ', () => { +// test.beforeEach(async () => { +// await turnOnMicromoleculesEditor(page); +// }); + +// const movableCollapsedMonomers: IMonomer[] = [ +// { +// monomerDescription: '1. Petide D (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', +// monomerLocatorText: 'D', +// pageReloadNeeded: true, +// }, +// { +// monomerDescription: '2. Sugar UNA (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library).ket', +// monomerLocatorText: 'UNA', +// pageReloadNeeded: true, +// }, +// { +// monomerDescription: '3. Base hU (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library).ket', +// monomerLocatorText: 'hU', +// }, +// { +// monomerDescription: '4. Phosphate bnn (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library).ket', +// monomerLocatorText: 'bnn', +// pageReloadNeeded: true, +// }, +// { +// monomerDescription: '5. Unsplit nucleotide 5hMedC (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library).ket', +// monomerLocatorText: '5hMedC', +// }, +// { +// monomerDescription: '6. CHEM 4aPEGMal (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library).ket', +// monomerLocatorText: '4aPEGMal', +// }, +// { +// monomerDescription: +// '7. Peptide X (ambiguouse, alternatives, from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/1. Peptide X (ambiguouse, alternatives, from library).ket', +// monomerLocatorText: 'X', +// }, +// { +// monomerDescription: +// '8. Peptide A+C+D+E+F+G+H+I+K+L+M+N+O+P+Q+R+S+T+U+V+W+Y (ambiguouse, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/2. Peptide A+C+D+E+F+G+H+I+K+L+M+N+O+P+Q+R+S+T+U+V+W+Y (ambiguouse, mixed).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '9. Peptide G+H+I+K+L+M+N+O+P (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/3. Peptide G+H+I+K+L+M+N+O+P (ambiguous, mixed).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: +// '10. Peptide G,H,I,K,L,M,N,O,P (ambiguous, alternatives)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/4. Peptide G,H,I,K,L,M,N,O,P (ambiguous, alternatives).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '11. Sugar UNA, SGNA, RGNA (ambiguous, alternatives)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/5. Sugar UNA, SGNA, RGNA (ambiguous, alternatives).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '12. Sugar UNA, SGNA, RGNA (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/6. Sugar UNA, SGNA, RGNA (ambiguous, mixed).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: +// '13. DNA base N (ambiguous, alternatives, from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/7. DNA base N (ambiguous, alternatives, from library).ket', +// monomerLocatorText: 'N', +// }, +// { +// monomerDescription: +// '14. RNA base N (ambiguous, alternatives, from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/8. RNA base N (ambiguous, alternatives, from library).ket', +// monomerLocatorText: 'N', +// }, +// { +// monomerDescription: '15. Base M (ambiguous, alternatives, from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/9. Base M (ambiguous, alternatives, from library).ket', +// monomerLocatorText: 'M', +// }, +// { +// monomerDescription: '16. DNA base A+C+G+T (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/10. DNA base A+C+G+T (ambiguous, mixed).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '17. RNA base A+C+G+U (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/11. RNA base A+C+G+U (ambiguous, mixed).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '18. Base A+C (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/12. Base A+C (ambiguous, mixed).ket', +// monomerLocatorText: '%', +// pageReloadNeeded: true, +// }, +// { +// monomerDescription: '19. Phosphate bnn,cmp,nen (ambiguous, alternatives)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/13. Phosphate bnn,cmp,nen (ambiguous, alternatives).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '20. Phosphate bnn+cmp+nen (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/14. Phosphate bnn+cmp+nen (ambiguous, mixed).ket', +// monomerLocatorText: '%', +// pageReloadNeeded: true, +// }, +// { +// monomerDescription: +// '21. CHEM PEG-2,PEG-4,PEG-6 (ambiguous, alternatives)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/15. CHEM PEG-2,PEG-4,PEG-6 (ambiguous, alternatives).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '22. CHEM PEG-2+PEG-4+PEG-6 (ambiguous, mixed)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/16. CHEM PEG-2+PEG-4+PEG-6 (ambiguous, mixed).ket', +// monomerLocatorText: '%', +// }, +// { +// monomerDescription: '23. Unknown nucleotide', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Negative/17. Unknown nucleotide.ket', +// monomerLocatorText: 'Unknown', +// }, +// ]; + +// for (const movableCollapsedMonomer of movableCollapsedMonomers) { +// test(`${movableCollapsedMonomer.monomerDescription}`, async () => { +// /* +// * Test task: https://github.com/epam/ketcher/issues/5773 +// * Description: Verify that moving a collapsed monomer (abbreviation) to a new location +// * on the canvas and then using Undo correctly repositions the monomer back to +// * its original position, then Redo moves it back to the new location +// * +// * Case: 1. Load monomer on Molecules canvas and move it to certain place +// * 2. Take screenshot to witness initial position +// * 3. Grab it and move it to the top left corner +// * 6. Take screenshot to witness final position +// * 7. Press Undo button to witness initial position +// */ +// if (movableCollapsedMonomer.pageReloadNeeded) { +// await pageReload(page); +// await turnOnMicromoleculesEditor(page); +// } + +// await openFileAndAddToCanvasAsNewProject( +// movableCollapsedMonomer.KETFile, +// page, +// ); +// const canvasLocator = page.getByTestId('ketcher-canvas'); +// const monomerLocator = canvasLocator.getByText( +// movableCollapsedMonomer.monomerLocatorText, +// { exact: true }, +// ); +// await moveMonomerOnMicro(page, monomerLocator, 400, 400); +// await moveMouseToTheMiddleOfTheScreen(page); +// await takeEditorScreenshot(page); + +// await moveMonomerOnMicro(page, monomerLocator, 100, 100); +// await moveMouseToTheMiddleOfTheScreen(page); +// await takeEditorScreenshot(page); + +// await pressUndoButton(page); +// await takeEditorScreenshot(page); + +// // Test should be skipped if related bug exists +// test.fixme( +// movableCollapsedMonomer.shouldFail === true, +// `That test results are wrong because of ${movableCollapsedMonomer.issueNumber} issue(s).`, +// ); +// }); +// } +// }); + +async function moveExpandedMonomerOnMicro(page: Page, x: number, y: number) { + await moveOnBond(page, BondType.SINGLE, 1); + await dragMouseTo(x, y, page); +} + +const movableExpandedMonomers: IMonomer[] = [ + { + monomerDescription: '1. Petide D (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', + monomerLocatorText: 'D', + pageReloadNeeded: true, + }, + { + monomerDescription: '2. Sugar UNA (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library).ket', + monomerLocatorText: 'UNA', + }, + { + monomerDescription: '3. Base hU (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library).ket', + monomerLocatorText: 'hU', + }, + { + monomerDescription: '4. Phosphate bnn (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library).ket', + monomerLocatorText: 'bnn', + }, + { + monomerDescription: '5. Unsplit nucleotide 5hMedC (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library).ket', + monomerLocatorText: '5hMedC', + }, + { + monomerDescription: '6. CHEM 4aPEGMal (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library).ket', + monomerLocatorText: '4aPEGMal', + }, +]; + +test.describe('Move in expanded state on Micro canvas: ', () => { + test.beforeEach(async () => { + await turnOnMicromoleculesEditor(page); + }); + + for (const movableExpandedMonomer of movableExpandedMonomers) { + test(`${movableExpandedMonomer.monomerDescription}`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that expanded macromolecules can be moved across the canvas + * + * Case: 1. Load monomer on Molecules canvas + * 2. Expand it + * 2. Take screenshot to witness initial position + * 3. Grab it and move it to the top left corner + * 6. Take screenshot to witness final position + */ + if (movableExpandedMonomer.pageReloadNeeded) { + await pageReload(page); + await turnOnMicromoleculesEditor(page); + } + await openFileAndAddToCanvasAsNewProject( + movableExpandedMonomer.KETFile, + page, + ); + + await expandMonomer(page, movableExpandedMonomer.monomerLocatorText); + await takeEditorScreenshot(page); + + await moveExpandedMonomerOnMicro(page, 200, 200); + await moveMouseToTheMiddleOfTheScreen(page); + await takeEditorScreenshot(page); + + // Test should be skipped if related bug exists + test.fixme( + movableExpandedMonomer.shouldFail === true, + `That test results are wrong because of ${movableExpandedMonomer.issueNumber} issue(s).`, + ); + }); + } +}); + +test.describe('Move expanded monomer on Micro and Undo: ', () => { + test.beforeEach(async () => { + await turnOnMicromoleculesEditor(page); + }); + + for (const movableExpandedMonomer of movableExpandedMonomers) { + test(`${movableExpandedMonomer.monomerDescription}`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that expanded macromolecules can be moved across the canvas + * + * Case: 1. Load monomer on Molecules canvas + * 2. Expand it + * 2. Take screenshot to witness initial position + * 3. Grab it and move it to the top left corner + * 6. Take screenshot to witness final position + * 7. Press Undo button + * 8. Take screenshot to witness initial position + */ + if (movableExpandedMonomer.pageReloadNeeded) { + await pageReload(page); + await turnOnMicromoleculesEditor(page); + } + await openFileAndAddToCanvasAsNewProject( + movableExpandedMonomer.KETFile, + page, + ); + + await expandMonomer(page, movableExpandedMonomer.monomerLocatorText); + await takeEditorScreenshot(page); + + await moveExpandedMonomerOnMicro(page, 200, 200); + await moveMouseToTheMiddleOfTheScreen(page); + await takeEditorScreenshot(page); + + await pressUndoButton(page); + await takeEditorScreenshot(page); + + // Test should be skipped if related bug exists + test.fixme( + movableExpandedMonomer.shouldFail === true, + `That test results are wrong because of ${movableExpandedMonomer.issueNumber} issue(s).`, + ); + }); + } +}); + +const expandableMonomer: IMonomer = { + monomerDescription: '1. Petide D (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', + monomerLocatorText: 'D', +}; + +test(`Verify that the system supports undo/redo functionality for expanding and collapsing monomers in micro mode`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that the system supports undo/redo functionality for expanding and collapsing monomers in micro mode + * + * Case: 1. Load monomer on Molecules canvas + * 2. Expand it + * 2. Take screenshot to witness initial state + * 3. Press Undo button + * 4. Take screenshot to witness final position + * 5. Press Redo button + */ + await turnOnMicromoleculesEditor(page); + await openFileAndAddToCanvasAsNewProject(expandableMonomer.KETFile, page); + await expandMonomer(page, expandableMonomer.monomerLocatorText); + await takeEditorScreenshot(page); + await pressUndoButton(page); + await takeEditorScreenshot(page); + await pressRedoButton(page); + await takeEditorScreenshot(page); +}); + +test(`Verify switching back from micro mode to macro mode with expanded and collapsed monomers`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify switching back from micro mode to macro mode with expanded and collapsed monomers + * + * Case: 1. Load monomer on Molecules canvas + * 2. Expand it + * 2. Take screenshot to witness initial state + * 3. Switch to Macro mode + * 4. Switch to Micro mode + * 6. Take screenshot to witness final position + */ + await turnOnMicromoleculesEditor(page); + await openFileAndAddToCanvasAsNewProject(expandableMonomer.KETFile, page); + await expandMonomer(page, expandableMonomer.monomerLocatorText); + await takeEditorScreenshot(page); + await turnOnMacromoleculesEditor(page); + await turnOnMicromoleculesEditor(page); + await takeEditorScreenshot(page); + + test.fixme( + // eslint-disable-next-line no-self-compare + true === true, + `That test results are wrong because of https://github.com/epam/ketcher/issues/5849 issue(s).`, + ); +}); + +const copyableMonomer: IMonomer = { + monomerDescription: '1. Petide D (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', + monomerLocatorText: 'D', +}; + +test(`Verify that the system supports copy/paste functionality for collapsed monomers in micro mode`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that the system supports copy/paste functionality for collapsed monomers in micro mode + * + * Case: 1. Load monomer on Molecules canvas + * 2. Take screenshot to witness initial state + * 3. Copy monomer to clipboard + * 4. Paste it to the canvas + * 5. Take screenshot to witness final position + */ + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject(copyableMonomer.KETFile, page); + await takeEditorScreenshot(page); + await selectMonomerOnMicro(page, copyableMonomer.monomerLocatorText); + await copyToClipboardByKeyboard(page); + await pasteFromClipboardByKeyboard(page); + await clickOnCanvas(page, 200, 200); + await takeEditorScreenshot(page); +}); + +const cutableMonomer: IMonomer = { + monomerDescription: '1. Petide D (from library)', + KETFile: + 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', + monomerLocatorText: 'D', +}; + +test(`Verify that the system supports cut/paste functionality for collapsed monomers in micro mode`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that the system supports cut/paste functionality for collapsed monomers in micro mode + * + * Case: 1. Load monomer on Molecules canvas + * 2. Take screenshot to witness initial state + * 3. Cut monomer to clipboard + * 4. Paste it to the canvas + * 5. Take screenshot to witness final position + */ + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject(cutableMonomer.KETFile, page); + await takeEditorScreenshot(page); + await selectMonomerOnMicro(page, cutableMonomer.monomerLocatorText); + + await cutToClipboardByKeyboard(page); + await pasteFromClipboardByKeyboard(page); + await clickOnCanvas(page, 200, 200); + await takeEditorScreenshot(page); +}); + +test(`Verify that the system supports copy/paste functionality for expanded monomers in micro mode`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that the system supports copy/paste functionality for expanded monomers in micro mode + * + * Case: 1. Load monomer on Molecules canvas + * 2. Expand monomer + * 3. Click on any monomer bond to select it + * 4. Take screenshot to witness initial state + * 5. Copy monomer to clipboard + * 6. Paste it to the canvas + * 7. Take screenshot to witness final position + */ + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject(copyableMonomer.KETFile, page); + await expandMonomer(page, copyableMonomer.monomerLocatorText); + await takeEditorScreenshot(page); + await selectExpandedMonomer(page); + await copyToClipboardByKeyboard(page); + await pasteFromClipboardByKeyboard(page); + await clickOnCanvas(page, 200, 200); + + await takeEditorScreenshot(page); + + test.fixme( + // eslint-disable-next-line no-self-compare + true === true, + `That test results are wrong because of https://github.com/epam/ketcher/issues/5831 issue(s).`, + ); +}); + +test(`Verify that the system supports cut/paste functionality for expanded monomers in micro mode`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that the system supports cut/paste functionality for expanded monomers in micro mode + * + * Case: 1. Load monomer on Molecules canvas + * 2. Expand monomer + * 3. Click on any monomer bond to select it + * 4. Take screenshot to witness initial state + * 5. Cut monomer to clipboard + * 6. Paste it to the canvas + * 7. Take screenshot to witness final position + */ + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject(cutableMonomer.KETFile, page); + await expandMonomer(page, cutableMonomer.monomerLocatorText); + await takeEditorScreenshot(page); + await selectExpandedMonomer(page); + await cutToClipboardByKeyboard(page); + await pasteFromClipboardByKeyboard(page); + await clickOnCanvas(page, 200, 200); + await takeEditorScreenshot(page); + + test.fixme( + // eslint-disable-next-line no-self-compare + true === true, + `That test results are wrong because of https://github.com/epam/ketcher/issues/5831 issue(s).`, + ); +}); + +test(`Verify that "Expand monomer" does not break cyclic structures when the ring is expanded`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that "Expand monomer" does not break cyclic structures when the ring is expanded + * + * Case: 1. Load monomer cycle on Molecules canvas + * 2. Take screenshot to witness initial state + * 3. Expand all monomers from cycle + * 4. Take screenshot to witness final position + */ + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject( + 'KET/Micro-Macro-Switcher/All type of monomers cycled.ket', + page, + ); + await takeEditorScreenshot(page); + await expandMonomer(page, 'A'); + await expandMonomer(page, '5hMedC'); + await expandMonomer(page, 'gly'); + await expandMonomer(page, 'Mal'); + await expandMonomer(page, '12ddR'); + await expandMonomer(page, 'oC64m5'); + await takeEditorScreenshot(page); + + test.fixme( + // eslint-disable-next-line no-self-compare + true === true, + `That test results are wrong because of https://github.com/epam/ketcher/issues/5670 issue(s).`, + ); +}); + +test(`Verify that expanding multiple monomers works in a left-to-right order within a chain`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that expanding multiple monomers works in a left-to-right order within a chain + * + * Case: 1. Load monomer chain on Molecules canvas + * 2. Take screenshot to witness initial state + * 3. Expand all monomers from chain (from right to left) + * 4. Take screenshot to witness final position + */ + await pageReload(page); + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject( + 'KET/Micro-Macro-Switcher/All type of monomers in horisontal chain.ket', + page, + ); + await takeEditorScreenshot(page); + await expandMonomer(page, '12ddR'); + await expandMonomer(page, 'Mal'); + await expandMonomer(page, 'A'); + await expandMonomer(page, '5hMedC'); + await expandMonomer(page, 'gly'); + await expandMonomer(page, 'oC64m5'); + await takeEditorScreenshot(page); + + test.fixme( + // eslint-disable-next-line no-self-compare + true === true, + `That test results are wrong because of https://github.com/epam/ketcher/issues/5670 issue(s).`, + ); +}); + +test(`Verify that expanding multiple monomers works in a top-to-bottom order within a chain`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that expanding multiple monomers works in a top-to-bottom order within a chain + * + * Case: 1. Load monomer chain on Molecules canvas + * 2. Take screenshot to witness initial state + * 3. Expand all monomers from chain (from top to bottom) + * 4. Take screenshot to witness final position + */ + await pageReload(page); + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject( + 'KET/Micro-Macro-Switcher/All type of monomers in vertical chain.ket', + page, + ); + await takeEditorScreenshot(page); + await expandMonomer(page, 'oC64m5'); + await expandMonomer(page, 'gly'); + await expandMonomer(page, '5hMedC'); + await expandMonomer(page, 'A'); + await expandMonomer(page, 'Mal'); + await expandMonomer(page, '12ddR'); + await takeEditorScreenshot(page); + + test.fixme( + // eslint-disable-next-line no-self-compare + true === true, + `That test results are wrong because of https://github.com/epam/ketcher/issues/5670 issue(s).`, + ); +}); + +test(`Verify that expanding monomers with big mircomolecule ring structures in the middle behaves correctly without breaking the chain`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that expanding monomers with big mircomolecule ring structures in the middle behaves correctly without breaking the chain + * + * Case: 1. Load monomer chain on Molecules canvas + * 2. Take screenshot to witness initial state + * 3. Expand all monomers from chain (from right to left) + * 4. Take screenshot to witness final position + */ + await pageReload(page); + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject( + 'KET/Micro-Macro-Switcher/All type of monomers in horisontal chain and large micromolecule in the middle.ket', + page, + ); + await takeEditorScreenshot(page); + await expandMonomer(page, 'oC64m5'); + await expandMonomer(page, 'gly'); + await expandMonomer(page, '5hMedC'); + await expandMonomer(page, 'A'); + await expandMonomer(page, 'Mal'); + await expandMonomer(page, '12ddR'); + await takeEditorScreenshot(page); + + test.fixme( + // eslint-disable-next-line no-self-compare + true === true, + `That test results are wrong because of https://github.com/epam/ketcher/issues/5670 issue(s).`, + ); +}); + +type monomer = { + name: string; + AtomId: number; +}; + +const monomers: monomer[] = [ + { name: '12ddR', AtomId: 70 }, + { name: 'Mal', AtomId: 0 }, + { name: 'A', AtomId: 58 }, + { name: '5hMedC', AtomId: 53 }, + { name: 'gly', AtomId: 30 }, + { name: 'oC64m5', AtomId: 25 }, +]; + +test(`Verify that deleting an expanded monomer in a chain structure using the Erase tool cause Edit Abbreviations dialog to appear`, async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that deleting an expanded monomer in a chain structure using the Erase tool cause Edit Abbreviations dialog to appear + * + * Case: 1. Load monomer chain on Molecules canvas + * 2. Take screenshot to witness initial state + * 3. For each monomer do the following: + * 3.1 Expand monomer + * 3.2 Select Erase tool and click on expanded monomer + * 3.3 Take screenshot to witness opened dialog + * 3.4 Press Cancel in appeared Abbriviation dialog + * 3.5 Undo changes to collapse momomer back + */ + await pageReload(page); + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject( + 'KET/Micro-Macro-Switcher/All type of monomers in horisontal chain.ket', + page, + ); + await takeEditorScreenshot(page); + + for (const monomer of monomers) { + await expandMonomer(page, monomer.name); + await selectEraseTool(page); + await clickOnAtomOfExpandedMonomer(page, monomer.AtomId); + await takeEditorScreenshot(page); + await pressCancelAtEditAbbreviationDialog(page); + await pressUndoButton(page); + } +}); + +// NOT ACTUAL BECAUSE OF BUG: https://github.com/epam/ketcher/issues/5849 +// async function clickOnBondOfExpandedMonomer(page: Page, bondId: number) { +// await clickOnBondById(page, bondId); +// } +// const tryToChangeMonomers: IMonomer[] = [ +// { +// monomerDescription: '1. Petide D (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library).ket', +// monomerLocatorText: 'D', +// }, +// { +// monomerDescription: '2. Sugar UNA (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library).ket', +// monomerLocatorText: 'UNA', +// }, +// { +// monomerDescription: '3. Base hU (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library).ket', +// monomerLocatorText: 'hU', +// }, +// { +// monomerDescription: '4. Phosphate bnn (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library).ket', +// monomerLocatorText: 'bnn', +// }, +// { +// monomerDescription: '5. Unsplit nucleotide 5hMedC (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library).ket', +// monomerLocatorText: '5hMedC', +// }, +// { +// monomerDescription: '6. CHEM 4aPEGMal (from library)', +// KETFile: +// 'KET/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library).ket', +// monomerLocatorText: '4aPEGMal', +// }, +// ]; + +// test.describe('Trying to change: ', () => { +// test.beforeEach(async () => { +// await turnOnMicromoleculesEditor(page); +// }); + +// for (const tryToChangeMonomer of tryToChangeMonomers) { +// test(`${tryToChangeMonomer.monomerDescription}`, async () => { +// /* +// * Test task: https://github.com/epam/ketcher/issues/5773 +// * Description: Verify that no atoms or bonds can be added/removed from the expanded monomer +// * +// * Case: 1. Load monomer Molecules canvas +// * 2. Expand it +// * 2. Take screenshot to witness initial state +// * 3. For each monomer do the following: +// * 3.1 Select atom from right tool bar (Br) and click on any atom of expanded monomer +// * 3.2 Take screenshot to witness opened dialog +// * 3.3 Press Cancel on appeared dialog +// * 3.4 Select triple bond from left menu and click on any bond of expanded monomer +// * 3.5 Take screenshot to witness opened dialog +// * 3.6 Press Cancel on appeared dialog +// */ + +// await openFileAndAddToCanvasAsNewProject( +// tryToChangeMonomer.KETFile, +// page, +// ); +// await expandMonomer(page, tryToChangeMonomer.monomerLocatorText); +// await takeEditorScreenshot(page); + +// await selectAtomInToolbar(AtomButton.Bromine, page); +// await clickOnAtomOfExpandedMonomer(page, 1); +// await takeEditorScreenshot(page); +// await pressCancelAtEditAbbreviationDialog(page); + +// await selectBond(BondTypeName.Triple, page); +// await clickOnBondOfExpandedMonomer(page, 1); +// await takeEditorScreenshot(page); +// await pressCancelAtEditAbbreviationDialog(page); + +// // Test should be skipped if related bug exists +// test.fixme( +// expandableMonomer.shouldFail === true, +// `That test results are wrong because of ${tryToChangeMonomer.issueNumber} issue(s).`, +// ); +// }); +// } +// }); + +test( + `Verify that after using the Erase tool to delete an expanded monomer in both chain and ring structures, ` + + `the Undo and Redo functionality works correctly, restoring or re-removing the expanded monomer and its bonds`, + async () => { + /* + * Test task: https://github.com/epam/ketcher/issues/5773 + * Description: Verify that after using the Erase tool to delete an expanded monomer in both chain and ring structures, + * the Undo and Redo functionality works correctly, restoring or re-removing the expanded monomer and its bonds + * + * Case: 1. Load monomer chain on Molecules canvas + * 2. Take screenshot to witness initial state + * 3. For each monomer do the following: + * 3.1 Expand monomer + * 3.2 Click on any atom to select molecule inside monomer + * 3.3 Press Erase tool button to delete expanded monomer + * 3.4 Take screenshot to witness monomer erase + * 3.5 Press Undo button + * 3.6 Take screenshot to witness monomer got back + * 3.7 Press Undo button + * 3.8 Take screenshot to witness monomer got collapsed + */ + test.slow(); + await pageReload(page); + await turnOnMicromoleculesEditor(page); + + await openFileAndAddToCanvasAsNewProject( + 'KET/Micro-Macro-Switcher/All type of monomers in horisontal chain.ket', + page, + ); + // Pic 1 + await takeEditorScreenshot(page); + + for (const monomer of monomers) { + await expandMonomer(page, monomer.name); + await clickOnAtomOfExpandedMonomer(page, monomer.AtomId); + await selectEraseTool(page); + // Pic 2, 5, 8, 11, 14, 17 + await takeEditorScreenshot(page); + await pressUndoButton(page); + // Pic 3, 6, 9, 12, 15, 18 + await takeEditorScreenshot(page); + await pressUndoButton(page); + // Pic 4, 6, 10, 13, 16, 19 + await takeEditorScreenshot(page); + } + }, +); diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..f19a7ca0d0 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..5c111c7782 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..1d1643f019 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..e889dfc5c6 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-2-chromium-linux.png new file mode 100644 index 0000000000..a9f20fe49f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-3-chromium-linux.png new file mode 100644 index 0000000000..a010e12172 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-10-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-alternatives-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..7487ca25c7 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-2-chromium-linux.png new file mode 100644 index 0000000000..7be58ffe9d Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-3-chromium-linux.png new file mode 100644 index 0000000000..6ba3da797b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-11-Sugar-UNA-SGNA-RGNA-ambiguous-alternatives-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..6b213dffc1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..7d82108885 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..3d49ade7da Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-12-Sugar-UNA-SGNA-RGNA-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..e1293565e0 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..73603a8ad0 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..9e7fd3b235 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-13-DNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..f118b6380e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..6924879402 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..6e85e155d8 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-14-RNA-base-N-ambiguous-alternatives-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..fe51025d5c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..9f5819e935 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..4aa00f1b0b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-15-Base-M-ambiguous-alternatives-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..606442621f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..0eac66558a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..c4c2d7d9dc Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-16-DNA-base-A-C-G-T-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..606442621f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..0eac66558a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..e3a168071a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-17-RNA-base-A-C-G-U-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..606442621f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..0eac66558a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..c4c2d7d9dc Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-18-Base-A-C-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..3613eedcdf Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-2-chromium-linux.png new file mode 100644 index 0000000000..f9665e6755 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-3-chromium-linux.png new file mode 100644 index 0000000000..8104e447bc Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-19-Phosphate-bnn-cmp-nen-ambiguous-alternatives-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..c95bf5c52d Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..8e8e9a508c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..fc3f23a46b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..3cb21a4e6f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..88f7e3e0bf Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..4779d4ebdb Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-20-Phosphate-bnn-cmp-nen-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-1-chromium-linux.png new file mode 100644 index 0000000000..57dcd478e5 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-2-chromium-linux.png new file mode 100644 index 0000000000..29d19ea017 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-3-chromium-linux.png new file mode 100644 index 0000000000..3e6e7f7a7d Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-21-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-alternatives-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..09cb19136b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..5b1337febe Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..caffb231c6 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-22-CHEM-PEG-2-PEG-4-PEG-6-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-1-chromium-linux.png new file mode 100644 index 0000000000..7f5d3418cc Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-2-chromium-linux.png new file mode 100644 index 0000000000..00b4751085 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-3-chromium-linux.png new file mode 100644 index 0000000000..b6f3af4fa4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-23-Unknown-nucleotide-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..5aaa77a927 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..db2890e13e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..f8809b206c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..c72868c5ad Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..761158fe44 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..e10b1285fc Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..174e83b7cb Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..9f4496442c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..f2fb4d442b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..ca653835fa Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..0a8752c2ac Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..f5afceb53f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..8000d0fcd5 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..4dcb7c56d7 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..ae34dc348b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-7-Peptide-X-ambiguouse-alternatives-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--32419-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--32419-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..b2e886bc7f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--32419-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--88ae1-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--88ae1-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..a18e5634b1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--88ae1-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--f8b99-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--f8b99-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..b1bf97e122 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-8--f8b99-L-M-N-O-P-Q-R-S-T-U-V-W-Y-ambiguouse-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-1-chromium-linux.png new file mode 100644 index 0000000000..e889dfc5c6 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-2-chromium-linux.png new file mode 100644 index 0000000000..a9f20fe49f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-3-chromium-linux.png new file mode 100644 index 0000000000..6b7a0a3e0e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-collapsed-monomer-on-Micro-and-Undo-9-Peptide-G-H-I-K-L-M-N-O-P-ambiguous-mixed-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..20c0860c8e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-1-Petide-D-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..a23a8bf719 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..b8d981ccce Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..a23a8bf719 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-2-Sugar-UNA-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..9861848cd4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..56aa361073 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..9861848cd4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-3-Base-hU-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..f6f220e3ec Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..8e2a81683c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..f6f220e3ec Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-4-Phosphate-bnn-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..b9d1faa1df Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..c13fe18489 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..89638dd9c8 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-5-Unsplit-nucleotide-5hMedC-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..8c1e990375 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..24b1787b92 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png new file mode 100644 index 0000000000..ab02f6be9d Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-expanded-monomer-on-Micro-and-Undo-6-CHEM-4aPEGMal-from-library-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-1-Petide-D-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-1-Petide-D-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-1-Petide-D-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-1-Petide-D-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-1-Petide-D-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..20c0860c8e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-1-Petide-D-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-2-Sugar-UNA-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-2-Sugar-UNA-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..a23a8bf719 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-2-Sugar-UNA-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-2-Sugar-UNA-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-2-Sugar-UNA-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..b8d981ccce Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-2-Sugar-UNA-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-3-Base-hU-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-3-Base-hU-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..9861848cd4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-3-Base-hU-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-3-Base-hU-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-3-Base-hU-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..56aa361073 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-3-Base-hU-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-4-Phosphate-bnn-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-4-Phosphate-bnn-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..f6f220e3ec Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-4-Phosphate-bnn-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-4-Phosphate-bnn-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-4-Phosphate-bnn-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..8e2a81683c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-4-Phosphate-bnn-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..b9d1faa1df Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-5-Unsplit-nucleotide-5hMedC-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..c13fe18489 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-5-Unsplit-nucleotide-5hMedC-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png new file mode 100644 index 0000000000..8c1e990375 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-6-CHEM-4aPEGMal-from-library-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png new file mode 100644 index 0000000000..24b1787b92 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Move-in-expanded-state-on-Micro-canvas-6-CHEM-4aPEGMal-from-library-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-1-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-2-chromium-linux.png new file mode 100644 index 0000000000..e83ba45199 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-switching-back-from-micro-mode-to-macro-mode-with-expanded-and-collapsed-monomers-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-1-chromium-linux.png new file mode 100644 index 0000000000..0691be7bfd Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-2-chromium-linux.png new file mode 100644 index 0000000000..9aa75038b3 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-Expand-monomer-does-not-break-cyclic-structures-when-the-ring-is-expanded-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-01d9b-e-removing-the-expanded-monomer-and-its-bonds-6-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-01d9b-e-removing-the-expanded-monomer-and-its-bonds-6-chromium-linux.png new file mode 100644 index 0000000000..ad3069b4d4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-01d9b-e-removing-the-expanded-monomer-and-its-bonds-6-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-13832--removing-the-expanded-monomer-and-its-bonds-14-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-13832--removing-the-expanded-monomer-and-its-bonds-14-chromium-linux.png new file mode 100644 index 0000000000..ef4d31aebe Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-13832--removing-the-expanded-monomer-and-its-bonds-14-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-23647-e-removing-the-expanded-monomer-and-its-bonds-8-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-23647-e-removing-the-expanded-monomer-and-its-bonds-8-chromium-linux.png new file mode 100644 index 0000000000..8407d5467c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-23647-e-removing-the-expanded-monomer-and-its-bonds-8-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-49c75--removing-the-expanded-monomer-and-its-bonds-17-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-49c75--removing-the-expanded-monomer-and-its-bonds-17-chromium-linux.png new file mode 100644 index 0000000000..47de681e46 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-49c75--removing-the-expanded-monomer-and-its-bonds-17-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5ad02-e-removing-the-expanded-monomer-and-its-bonds-7-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5ad02-e-removing-the-expanded-monomer-and-its-bonds-7-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5ad02-e-removing-the-expanded-monomer-and-its-bonds-7-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5d341-e-removing-the-expanded-monomer-and-its-bonds-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5d341-e-removing-the-expanded-monomer-and-its-bonds-2-chromium-linux.png new file mode 100644 index 0000000000..20c395497f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-5d341-e-removing-the-expanded-monomer-and-its-bonds-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-926b8--removing-the-expanded-monomer-and-its-bonds-11-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-926b8--removing-the-expanded-monomer-and-its-bonds-11-chromium-linux.png new file mode 100644 index 0000000000..525155d023 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-926b8--removing-the-expanded-monomer-and-its-bonds-11-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-94ec1--removing-the-expanded-monomer-and-its-bonds-16-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-94ec1--removing-the-expanded-monomer-and-its-bonds-16-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-94ec1--removing-the-expanded-monomer-and-its-bonds-16-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-95903--removing-the-expanded-monomer-and-its-bonds-10-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-95903--removing-the-expanded-monomer-and-its-bonds-10-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-95903--removing-the-expanded-monomer-and-its-bonds-10-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-98ab7--removing-the-expanded-monomer-and-its-bonds-12-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-98ab7--removing-the-expanded-monomer-and-its-bonds-12-chromium-linux.png new file mode 100644 index 0000000000..ae9855c0a1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-98ab7--removing-the-expanded-monomer-and-its-bonds-12-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-9e04c-e-removing-the-expanded-monomer-and-its-bonds-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-9e04c-e-removing-the-expanded-monomer-and-its-bonds-1-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-9e04c-e-removing-the-expanded-monomer-and-its-bonds-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ad465-e-removing-the-expanded-monomer-and-its-bonds-4-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ad465-e-removing-the-expanded-monomer-and-its-bonds-4-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ad465-e-removing-the-expanded-monomer-and-its-bonds-4-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-b6baf--removing-the-expanded-monomer-and-its-bonds-13-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-b6baf--removing-the-expanded-monomer-and-its-bonds-13-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-b6baf--removing-the-expanded-monomer-and-its-bonds-13-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-c21dc-e-removing-the-expanded-monomer-and-its-bonds-9-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-c21dc-e-removing-the-expanded-monomer-and-its-bonds-9-chromium-linux.png new file mode 100644 index 0000000000..7984a7c653 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-c21dc-e-removing-the-expanded-monomer-and-its-bonds-9-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-d869d--removing-the-expanded-monomer-and-its-bonds-19-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-d869d--removing-the-expanded-monomer-and-its-bonds-19-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-d869d--removing-the-expanded-monomer-and-its-bonds-19-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ea013-e-removing-the-expanded-monomer-and-its-bonds-5-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ea013-e-removing-the-expanded-monomer-and-its-bonds-5-chromium-linux.png new file mode 100644 index 0000000000..81599f1c58 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ea013-e-removing-the-expanded-monomer-and-its-bonds-5-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ec1f0--removing-the-expanded-monomer-and-its-bonds-15-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ec1f0--removing-the-expanded-monomer-and-its-bonds-15-chromium-linux.png new file mode 100644 index 0000000000..dbcba8ea4c Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-ec1f0--removing-the-expanded-monomer-and-its-bonds-15-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-f92a6-e-removing-the-expanded-monomer-and-its-bonds-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-f92a6-e-removing-the-expanded-monomer-and-its-bonds-3-chromium-linux.png new file mode 100644 index 0000000000..cde2c4da93 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-f92a6-e-removing-the-expanded-monomer-and-its-bonds-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-fec19--removing-the-expanded-monomer-and-its-bonds-18-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-fec19--removing-the-expanded-monomer-and-its-bonds-18-chromium-linux.png new file mode 100644 index 0000000000..e45ccc3faf Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-after-using-the-Erase-tool-to-dele-fec19--removing-the-expanded-monomer-and-its-bonds-18-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--851ba-ool-cause-Edit-Abbreviations-dialog-to-appear-4-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--851ba-ool-cause-Edit-Abbreviations-dialog-to-appear-4-chromium-linux.png new file mode 100644 index 0000000000..b14e93b85a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--851ba-ool-cause-Edit-Abbreviations-dialog-to-appear-4-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--a98d0-ool-cause-Edit-Abbreviations-dialog-to-appear-6-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--a98d0-ool-cause-Edit-Abbreviations-dialog-to-appear-6-chromium-linux.png new file mode 100644 index 0000000000..0a75980be1 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--a98d0-ool-cause-Edit-Abbreviations-dialog-to-appear-6-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--b3191-ool-cause-Edit-Abbreviations-dialog-to-appear-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--b3191-ool-cause-Edit-Abbreviations-dialog-to-appear-2-chromium-linux.png new file mode 100644 index 0000000000..d349902d19 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--b3191-ool-cause-Edit-Abbreviations-dialog-to-appear-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--c176b-ool-cause-Edit-Abbreviations-dialog-to-appear-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--c176b-ool-cause-Edit-Abbreviations-dialog-to-appear-1-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--c176b-ool-cause-Edit-Abbreviations-dialog-to-appear-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--edd10-ool-cause-Edit-Abbreviations-dialog-to-appear-5-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--edd10-ool-cause-Edit-Abbreviations-dialog-to-appear-5-chromium-linux.png new file mode 100644 index 0000000000..c36ec16d53 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--edd10-ool-cause-Edit-Abbreviations-dialog-to-appear-5-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f16d1-ool-cause-Edit-Abbreviations-dialog-to-appear-7-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f16d1-ool-cause-Edit-Abbreviations-dialog-to-appear-7-chromium-linux.png new file mode 100644 index 0000000000..b2b401886f Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f16d1-ool-cause-Edit-Abbreviations-dialog-to-appear-7-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f7638-ool-cause-Edit-Abbreviations-dialog-to-appear-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f7638-ool-cause-Edit-Abbreviations-dialog-to-appear-3-chromium-linux.png new file mode 100644 index 0000000000..ae9a66bc29 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-deleting-an-expanded-monomer-in-a--f7638-ool-cause-Edit-Abbreviations-dialog-to-appear-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-22890--behaves-correctly-without-breaking-the-chain-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-22890--behaves-correctly-without-breaking-the-chain-1-chromium-linux.png new file mode 100644 index 0000000000..ede8a4d05b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-22890--behaves-correctly-without-breaking-the-chain-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-2ef95--behaves-correctly-without-breaking-the-chain-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-2ef95--behaves-correctly-without-breaking-the-chain-2-chromium-linux.png new file mode 100644 index 0000000000..e99f157c67 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-monomers-with-big-mircom-2ef95--behaves-correctly-without-breaking-the-chain-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-1-chromium-linux.png new file mode 100644 index 0000000000..bc6d53da06 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-2-chromium-linux.png new file mode 100644 index 0000000000..fc5fadb5d4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-left-to-right-order-within-a-chain-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-1-chromium-linux.png new file mode 100644 index 0000000000..d79fec39ee Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-2-chromium-linux.png new file mode 100644 index 0000000000..848732d01e Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-expanding-multiple-monomers-works-in-a-top-to-bottom-order-within-a-chain-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-collapsed-monomers-in-micro-mode-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-collapsed-monomers-in-micro-mode-1-chromium-linux.png new file mode 100644 index 0000000000..e83ba45199 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-collapsed-monomers-in-micro-mode-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-collapsed-monomers-in-micro-mode-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-collapsed-monomers-in-micro-mode-2-chromium-linux.png new file mode 100644 index 0000000000..672a0821b4 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-collapsed-monomers-in-micro-mode-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-expanded-monomers-in-micro-mode-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-expanded-monomers-in-micro-mode-1-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-expanded-monomers-in-micro-mode-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-expanded-monomers-in-micro-mode-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-expanded-monomers-in-micro-mode-2-chromium-linux.png new file mode 100644 index 0000000000..cd4207f81b Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-copy-paste-functionality-for-expanded-monomers-in-micro-mode-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-collapsed-monomers-in-micro-mode-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-collapsed-monomers-in-micro-mode-1-chromium-linux.png new file mode 100644 index 0000000000..e83ba45199 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-collapsed-monomers-in-micro-mode-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-collapsed-monomers-in-micro-mode-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-collapsed-monomers-in-micro-mode-2-chromium-linux.png new file mode 100644 index 0000000000..a94555be1d Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-collapsed-monomers-in-micro-mode-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-expanded-monomers-in-micro-mode-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-expanded-monomers-in-micro-mode-1-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-expanded-monomers-in-micro-mode-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-expanded-monomers-in-micro-mode-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-expanded-monomers-in-micro-mode-2-chromium-linux.png new file mode 100644 index 0000000000..a94555be1d Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-cut-paste-functionality-for-expanded-monomers-in-micro-mode-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-undo-redo-func-47eea-panding-and-collapsing-monomers-in-micro-mode-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-undo-redo-func-47eea-panding-and-collapsing-monomers-in-micro-mode-1-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-undo-redo-func-47eea-panding-and-collapsing-monomers-in-micro-mode-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-undo-redo-func-52dd9-panding-and-collapsing-monomers-in-micro-mode-2-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-undo-redo-func-52dd9-panding-and-collapsing-monomers-in-micro-mode-2-chromium-linux.png new file mode 100644 index 0000000000..e83ba45199 Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-undo-redo-func-52dd9-panding-and-collapsing-monomers-in-micro-mode-2-chromium-linux.png differ diff --git a/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-undo-redo-func-a1f35-panding-and-collapsing-monomers-in-micro-mode-3-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-undo-redo-func-a1f35-panding-and-collapsing-monomers-in-micro-mode-3-chromium-linux.png new file mode 100644 index 0000000000..29d876711a Binary files /dev/null and b/ketcher-autotests/tests/Macromolecule-editor/Macro-Micro-Switcher/macro-micro-switcher3.spec.ts-snapshots/Verify-that-the-system-supports-undo-redo-func-a1f35-panding-and-collapsing-monomers-in-micro-mode-3-chromium-linux.png differ diff --git a/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/All type of monomers in horisontal chain and large micromolecule in the middle.ket b/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/All type of monomers in horisontal chain and large micromolecule in the middle.ket new file mode 100644 index 0000000000..6b6785d069 --- /dev/null +++ b/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/All type of monomers in horisontal chain and large micromolecule in the middle.ket @@ -0,0 +1,1884 @@ +{ + "root": { + "nodes": [ + { + "$ref": "monomer413" + }, + { + "$ref": "monomer414" + }, + { + "$ref": "monomer415" + }, + { + "$ref": "monomer416" + }, + { + "$ref": "monomer417" + }, + { + "$ref": "monomer418" + }, + { + "$ref": "mol0" + } + ], + "connections": [ + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer413", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer418", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer417", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer413", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer415", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer416", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer415", + "attachmentPointId": "R1" + }, + "endpoint2": { + "monomerId": "monomer414", + "attachmentPointId": "R2" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer417", + "attachmentPointId": "R1" + }, + "endpoint2": { + "moleculeId": "mol0", + "atomId": 11 + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer416", + "attachmentPointId": "R2" + }, + "endpoint2": { + "moleculeId": "mol0", + "atomId": 23 + } + } + ], + "templates": [ + { + "$ref": "monomerTemplate-Mal___Maleimide" + }, + { + "$ref": "monomerTemplate-oC64m5___4-Hexan-6-ol-5-methylcytosine" + }, + { + "$ref": "monomerTemplate-gly___N-Hydroxyglycine" + }, + { + "$ref": "monomerTemplate-5hMedC___5-Hydroxymethyl dC" + }, + { + "$ref": "monomerTemplate-A___Alanine" + }, + { + "$ref": "monomerTemplate-12ddR___1',2'-dideoxyribose" + } + ] + }, + "mol0": { + "type": "molecule", + "atoms": [ + { + "label": "C", + "location": [ + 9.781897725395451, + -3.8369791790793677, + 0 + ] + }, + { + "label": "C", + "location": [ + 11.512199421138318, + -3.836493991081964, + 0 + ] + }, + { + "label": "C", + "location": [ + 10.648686082758124, + -3.336871650754948, + 0 + ] + }, + { + "label": "C", + "location": [ + 11.512199421138318, + -4.837436829726908, + 0 + ] + }, + { + "label": "C", + "location": [ + 9.781897725395451, + -4.841924818702898, + 0 + ] + }, + { + "label": "C", + "location": [ + 10.650869428746443, + -5.336937873054572, + 0 + ] + }, + { + "label": "C", + "location": [ + 12.37669536645827, + -3.3381179365396774, + 0 + ] + }, + { + "label": "C", + "location": [ + 13.243879254550551, + -3.8384536727003926, + 0 + ] + }, + { + "label": "C", + "location": [ + 12.382851204081186, + -5.33977342377581, + 0 + ] + }, + { + "label": "C", + "location": [ + 13.246082258511622, + -4.834364403535719, + 0 + ] + }, + { + "label": "C", + "location": [ + 14.112403193446353, + -5.328274718795397, + 0 + ] + }, + { + "label": "C", + "location": [ + 14.11877440057952, + -6.328785654727391, + 0 + ] + }, + { + "label": "C", + "location": [ + 12.389247889866242, + -6.3442854334942504, + 0 + ] + }, + { + "label": "C", + "location": [ + 13.26099549545607, + -6.833553708050293, + 0 + ] + }, + { + "label": "C", + "location": [ + 13.272472367320914, + -7.8300760109732845, + 0 + ] + }, + { + "label": "C", + "location": [ + 12.41283082594808, + -8.340761592591967, + 0 + ] + }, + { + "label": "C", + "location": [ + 11.526168615717681, + -6.857013262349164, + 0 + ] + }, + { + "label": "C", + "location": [ + 11.5443889715555, + -7.855871704057941, + 0 + ] + }, + { + "label": "C", + "location": [ + 10.690765317174057, + -8.368946510272057, + 0 + ] + }, + { + "label": "C", + "location": [ + 9.816279573841284, + -7.885438205851772, + 0 + ] + }, + { + "label": "C", + "location": [ + 10.648185777192232, + -6.371571393454102, + 0 + ] + }, + { + "label": "C", + "location": [ + 9.795952402082204, + -6.891641494629188, + 0 + ] + }, + { + "label": "C", + "location": [ + 8.922444778042209, + -6.414529522094946, + 0 + ] + }, + { + "label": "C", + "location": [ + 8.897874344695143, + -5.416218060004559, + 0 + ] + } + ], + "bonds": [ + { + "type": 2, + "atoms": [ + 2, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 4 + ] + }, + { + "type": 2, + "atoms": [ + 4, + 5 + ] + }, + { + "type": 1, + "atoms": [ + 5, + 3 + ] + }, + { + "type": 2, + "atoms": [ + 3, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 8 + ] + }, + { + "type": 2, + "atoms": [ + 8, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 9, + 7 + ] + }, + { + "type": 2, + "atoms": [ + 7, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 8, + 12 + ] + }, + { + "type": 2, + "atoms": [ + 12, + 13 + ] + }, + { + "type": 1, + "atoms": [ + 13, + 11 + ] + }, + { + "type": 2, + "atoms": [ + 11, + 10 + ] + }, + { + "type": 1, + "atoms": [ + 10, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 12, + 16 + ] + }, + { + "type": 2, + "atoms": [ + 16, + 17 + ] + }, + { + "type": 1, + "atoms": [ + 17, + 15 + ] + }, + { + "type": 2, + "atoms": [ + 15, + 14 + ] + }, + { + "type": 1, + "atoms": [ + 14, + 13 + ] + }, + { + "type": 1, + "atoms": [ + 16, + 20 + ] + }, + { + "type": 2, + "atoms": [ + 20, + 21 + ] + }, + { + "type": 1, + "atoms": [ + 21, + 19 + ] + }, + { + "type": 2, + "atoms": [ + 19, + 18 + ] + }, + { + "type": 1, + "atoms": [ + 18, + 17 + ] + }, + { + "type": 1, + "atoms": [ + 20, + 5 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 23 + ] + }, + { + "type": 2, + "atoms": [ + 23, + 22 + ] + }, + { + "type": 1, + "atoms": [ + 22, + 21 + ] + } + ] + }, + "monomer413": { + "type": "monomer", + "id": "413", + "position": { + "x": 18.875000000000014, + "y": -6.325000000000014 + }, + "alias": "Mal", + "templateId": "Mal___Maleimide" + }, + "monomerTemplate-Mal___Maleimide": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "N", + "location": [ + 14.700000000000001, + -6.105559548551434, + 0 + ] + }, + { + "label": "C", + "location": [ + 15.508989960649673, + -6.6933522542002315, + 0 + ] + }, + { + "label": "C", + "location": [ + 15.199993795209934, + -7.644440451448566, + 0 + ] + }, + { + "label": "C", + "location": [ + 14.200006204790068, + -7.644440451448566, + 0 + ] + }, + { + "label": "C", + "location": [ + 13.891010039350329, + -6.6933522542002315, + 0 + ] + }, + { + "label": "O", + "location": [ + 16.460045290552692, + -6.38433160850959, + 0 + ] + }, + { + "label": "O", + "location": [ + 12.93995470944731, + -6.384331608509591, + 0 + ] + }, + { + "label": "H", + "location": [ + 14.700000000000001, + -5.105559548551434, + 0 + ] + }, + { + "label": "H", + "location": [ + 13.612208979617632, + -8.453448746881675, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 2, + "atoms": [ + 1, + 5 + ] + }, + { + "type": 2, + "atoms": [ + 4, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 8 + ] + } + ], + "class": "CHEM", + "classHELM": "CHEM", + "id": "Mal___Maleimide", + "fullName": "Maleimide", + "alias": "Mal", + "attachmentPoints": [ + { + "attachmentAtom": 0, + "leavingGroup": { + "atoms": [ + 7 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 8 + ] + }, + "type": "right" + } + ] + }, + "monomer414": { + "type": "monomer", + "id": "414", + "position": { + "x": 3.0500000000000025, + "y": -5.400000000000005 + }, + "alias": "oC64m5", + "templateId": "oC64m5___4-Hexan-6-ol-5-methylcytosine" + }, + "monomerTemplate-oC64m5___4-Hexan-6-ol-5-methylcytosine": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + -4.993, + -0.8266, + 0 + ] + }, + { + "label": "C", + "location": [ + -3.6174, + -1.4246, + 0 + ] + }, + { + "label": "C", + "location": [ + -2.4117, + -0.5323, + 0 + ] + }, + { + "label": "N", + "location": [ + -2.5816, + 0.9581, + 0 + ] + }, + { + "label": "C", + "location": [ + -3.9572, + 1.5561, + 0 + ] + }, + { + "label": "O", + "location": [ + -4.1271, + 3.0464, + 0 + ] + }, + { + "label": "N", + "location": [ + -1.034, + -1.1278, + 0 + ] + }, + { + "label": "N", + "location": [ + -5.1629, + 0.6638, + 0 + ] + }, + { + "label": "C", + "location": [ + -3.4475, + -2.915, + 0 + ] + }, + { + "label": "H", + "location": [ + -6.5386, + 1.2618, + 0 + ] + }, + { + "label": "C", + "location": [ + 0.1711, + -0.2333, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.5487, + -0.8288, + 0 + ] + }, + { + "label": "C", + "location": [ + 2.7538, + 0.0657, + 0 + ] + }, + { + "label": "C", + "location": [ + 4.1314, + -0.5298, + 0 + ] + }, + { + "label": "C", + "location": [ + 5.3365, + 0.3647, + 0 + ] + }, + { + "label": "C", + "location": [ + 6.7141, + -0.2308, + 0 + ] + }, + { + "label": "O", + "location": [ + 7.9193, + 0.6638, + 0 + ] + }, + { + "label": "H", + "location": [ + 9.2961, + 0.0686, + 0 + ] + } + ], + "bonds": [ + { + "type": 2, + "atoms": [ + 0, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 2 + ] + }, + { + "type": 2, + "atoms": [ + 2, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 2, + "atoms": [ + 4, + 5 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 8 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 10 + ] + }, + { + "type": 1, + "atoms": [ + 10, + 11 + ] + }, + { + "type": 1, + "atoms": [ + 11, + 12 + ] + }, + { + "type": 1, + "atoms": [ + 12, + 13 + ] + }, + { + "type": 1, + "atoms": [ + 13, + 14 + ] + }, + { + "type": 1, + "atoms": [ + 14, + 15 + ] + }, + { + "type": 1, + "atoms": [ + 15, + 16 + ] + }, + { + "type": 1, + "atoms": [ + 16, + 17 + ] + } + ], + "class": "Base", + "classHELM": "RNA", + "id": "oC64m5___4-Hexan-6-ol-5-methylcytosine", + "fullName": "4-Hexan-6-ol-5-methylcytosine", + "alias": "oC64m5", + "attachmentPoints": [ + { + "attachmentAtom": 7, + "leavingGroup": { + "atoms": [ + 9 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 16, + "leavingGroup": { + "atoms": [ + 17 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "C" + }, + "monomer415": { + "type": "monomer", + "id": "415", + "position": { + "x": 4.55, + "y": -5.400000000000005 + }, + "alias": "gly", + "templateId": "gly___N-Hydroxyglycine" + }, + "monomerTemplate-gly___N-Hydroxyglycine": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + 2.6, + 0, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.3, + 0.75, + 0 + ] + }, + { + "label": "O", + "location": [ + 0.0007, + 0.0004, + 0 + ] + }, + { + "label": "N", + "location": [ + 3.9, + 0.75, + 0 + ] + }, + { + "label": "O", + "location": [ + 1.3, + 2.25, + 0 + ] + }, + { + "label": "O", + "location": [ + 5.1992, + 0.0004, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 1 + ] + }, + { + "type": 2, + "atoms": [ + 1, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 5 + ] + } + ], + "class": "Phosphate", + "classHELM": "RNA", + "id": "gly___N-Hydroxyglycine", + "fullName": "N-Hydroxyglycine", + "alias": "gly", + "attachmentPoints": [ + { + "attachmentAtom": 1, + "leavingGroup": { + "atoms": [ + 4 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 5 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "P" + }, + "monomer416": { + "type": "monomer", + "id": "416", + "position": { + "x": 6.05, + "y": -5.400000000000005 + }, + "alias": "5hMedC", + "templateId": "5hMedC___5-Hydroxymethyl dC" + }, + "monomerTemplate-5hMedC___5-Hydroxymethyl dC": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + 15.27368166456315, + -8.096931197906855, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "O", + "location": [ + 16.187220060139033, + -7.690221693402063, + 0 + ] + }, + { + "label": "C", + "location": [ + 16.856388517475764, + -8.433364320969021, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 16.356394722265833, + -9.299378977741815, + 0 + ] + }, + { + "label": "C", + "location": [ + 15.378230099489361, + -9.091433408060443, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 14.40765626077871, + -7.596931197906856, + 0 + ] + }, + { + "label": "O", + "location": [ + 14.40765626077871, + -6.596931197906856, + 0 + ] + }, + { + "label": "H", + "location": [ + 13.54163085699427, + -6.096931197906856, + 0 + ] + }, + { + "label": "O", + "location": [ + 14.635082705075886, + -9.760561161315726, + 0 + ] + }, + { + "label": "P", + "location": [ + 13.684027375172867, + -9.451540515625085, + 0 + ] + }, + { + "label": "O", + "location": [ + 12.940879980759393, + -10.120668268880369, + 0 + ] + }, + { + "label": "O", + "location": [ + 13.476119439683323, + -8.473392116679161, + 0 + ] + }, + { + "label": "O", + "location": [ + 13.891935310662411, + -10.42968891457101, + 0 + ] + }, + { + "label": "N", + "location": [ + 17.850908865779402, + -8.328821139412243, + 0 + ] + }, + { + "label": "C", + "location": [ + 18.35092719982532, + -9.194852893979773, + 0 + ] + }, + { + "label": "C", + "location": [ + 19.35091986630376, + -9.194852893979771, + 0 + ] + }, + { + "label": "C", + "location": [ + 19.85089419873628, + -8.328821139412243, + 0 + ] + }, + { + "label": "N", + "location": [ + 19.350875864690362, + -7.462789384844714, + 0 + ] + }, + { + "label": "C", + "location": [ + 18.350883198211925, + -7.462789384844714, + 0 + ] + }, + { + "label": "O", + "location": [ + 17.85087219784891, + -6.596770332215975, + 0 + ] + }, + { + "label": "N", + "location": [ + 20.85089419855477, + -8.328802086154738, + 0 + ] + }, + { + "label": "C", + "location": [ + 19.850930866666772, + -10.06087194660851, + 0 + ] + }, + { + "label": "O", + "location": [ + 19.350941867110457, + -10.926903701408918, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 5 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 5, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 8 + ], + "stereo": 6 + }, + { + "type": 1, + "atoms": [ + 8, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 9, + 10 + ] + }, + { + "type": 1, + "atoms": [ + 9, + 11 + ] + }, + { + "type": 2, + "atoms": [ + 9, + 12 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 13 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 18, + 13 + ] + }, + { + "type": 1, + "atoms": [ + 13, + 14 + ] + }, + { + "type": 2, + "atoms": [ + 14, + 15 + ] + }, + { + "type": 1, + "atoms": [ + 15, + 16 + ] + }, + { + "type": 2, + "atoms": [ + 16, + 17 + ] + }, + { + "type": 1, + "atoms": [ + 17, + 18 + ] + }, + { + "type": 2, + "atoms": [ + 18, + 19 + ] + }, + { + "type": 1, + "atoms": [ + 16, + 20 + ] + }, + { + "type": 1, + "atoms": [ + 15, + 21 + ] + }, + { + "type": 1, + "atoms": [ + 21, + 22 + ] + } + ], + "class": "RNA", + "classHELM": "RNA", + "id": "5hMedC___5-Hydroxymethyl dC", + "fullName": "Hydroxymethyl dC", + "alias": "5hMedC", + "attachmentPoints": [ + { + "attachmentAtom": 6, + "leavingGroup": { + "atoms": [ + 7 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 9, + "leavingGroup": { + "atoms": [ + 10 + ] + }, + "type": "right" + } + ], + "idtAliases": { + "base": "5HydMe-dC" + }, + "naturalAnalogShort": "C" + }, + "monomer417": { + "type": "monomer", + "id": "417", + "position": { + "x": 17.000000000000014, + "y": -6.325000000000014 + }, + "alias": "A", + "templateId": "A___Alanine" + }, + "monomerTemplate-A___Alanine": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "N", + "location": [ + -1.2549, + -0.392, + 0 + ] + }, + { + "label": "C", + "location": [ + -0.272, + 0.2633, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + -0.3103, + 1.7393, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.0523, + -0.392, + 0 + ] + }, + { + "label": "O", + "location": [ + 1.0829, + -1.5722, + 0 + ] + }, + { + "label": "O", + "location": [ + 2.0353, + 0.2633, + 0 + ] + }, + { + "label": "H", + "location": [ + -2.3334, + 0.0905, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 2 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 1, + 3 + ] + }, + { + "type": 2, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 5 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 6 + ] + } + ], + "class": "AminoAcid", + "classHELM": "PEPTIDE", + "id": "A___Alanine", + "fullName": "Alanine", + "alias": "A", + "attachmentPoints": [ + { + "attachmentAtom": 0, + "leavingGroup": { + "atoms": [ + 6 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 5 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "A" + }, + "monomer418": { + "type": "monomer", + "id": "418", + "position": { + "x": 24.200000000000017, + "y": -6.300000000000014 + }, + "alias": "12ddR", + "templateId": "12ddR___1',2'-dideoxyribose" + }, + "monomerTemplate-12ddR___1',2'-dideoxyribose": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "O", + "location": [ + -0.8526, + 1.541, + 0 + ] + }, + { + "label": "C", + "location": [ + -0.3405, + 0.131, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 0.3301, + 2.4636, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.1586, + 0.1823, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 1.5731, + 1.6239, + 0 + ] + }, + { + "label": "O", + "location": [ + 2.0777, + -1.0008, + 0 + ] + }, + { + "label": "C", + "location": [ + -1.1818, + -1.1087, + 0 + ] + }, + { + "label": "O", + "location": [ + -2.6787, + -1.0008, + 0 + ] + }, + { + "label": "H", + "location": [ + -3.3525, + -1.9937, + 0 + ] + }, + { + "label": "H", + "location": [ + 3.2666, + -0.8378, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 6 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 2, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 5 + ], + "stereo": 6 + }, + { + "type": 1, + "atoms": [ + 5, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 8 + ] + } + ], + "class": "Sugar", + "classHELM": "RNA", + "id": "12ddR___1',2'-dideoxyribose", + "fullName": "1',2'-dideoxyribose", + "alias": "12ddR", + "attachmentPoints": [ + { + "attachmentAtom": 7, + "leavingGroup": { + "atoms": [ + 8 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 5, + "leavingGroup": { + "atoms": [ + 9 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "R" + } +} \ No newline at end of file diff --git a/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/All type of monomers in horisontal chain.ket b/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/All type of monomers in horisontal chain.ket new file mode 100644 index 0000000000..e8f1b625f7 --- /dev/null +++ b/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/All type of monomers in horisontal chain.ket @@ -0,0 +1,1461 @@ +{ + "root": { + "nodes": [ + { + "$ref": "monomer44" + }, + { + "$ref": "monomer45" + }, + { + "$ref": "monomer46" + }, + { + "$ref": "monomer47" + }, + { + "$ref": "monomer48" + }, + { + "$ref": "monomer49" + } + ], + "connections": [ + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer44", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer49", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer47", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer48", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer48", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer44", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer46", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer47", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer46", + "attachmentPointId": "R1" + }, + "endpoint2": { + "monomerId": "monomer45", + "attachmentPointId": "R2" + } + } + ], + "templates": [ + { + "$ref": "monomerTemplate-Mal___Maleimide" + }, + { + "$ref": "monomerTemplate-oC64m5___4-Hexan-6-ol-5-methylcytosine" + }, + { + "$ref": "monomerTemplate-gly___N-Hydroxyglycine" + }, + { + "$ref": "monomerTemplate-5hMedC___5-Hydroxymethyl dC" + }, + { + "$ref": "monomerTemplate-A___Alanine" + }, + { + "$ref": "monomerTemplate-12ddR___1',2'-dideoxyribose" + } + ] + }, + "monomer44": { + "type": "monomer", + "id": "44", + "position": { + "x": 15.87677735472365, + "y": -4.034748149295543 + }, + "alias": "Mal", + "templateId": "Mal___Maleimide" + }, + "monomerTemplate-Mal___Maleimide": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "N", + "location": [ + 14.700000000000001, + -6.105559548551434, + 0 + ] + }, + { + "label": "C", + "location": [ + 15.508989960649673, + -6.6933522542002315, + 0 + ] + }, + { + "label": "C", + "location": [ + 15.199993795209934, + -7.644440451448566, + 0 + ] + }, + { + "label": "C", + "location": [ + 14.200006204790068, + -7.644440451448566, + 0 + ] + }, + { + "label": "C", + "location": [ + 13.891010039350329, + -6.6933522542002315, + 0 + ] + }, + { + "label": "O", + "location": [ + 16.460045290552692, + -6.38433160850959, + 0 + ] + }, + { + "label": "O", + "location": [ + 12.93995470944731, + -6.384331608509591, + 0 + ] + }, + { + "label": "H", + "location": [ + 14.700000000000001, + -5.105559548551434, + 0 + ] + }, + { + "label": "H", + "location": [ + 13.612208979617632, + -8.453448746881675, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 2, + "atoms": [ + 1, + 5 + ] + }, + { + "type": 2, + "atoms": [ + 4, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 8 + ] + } + ], + "class": "CHEM", + "classHELM": "CHEM", + "id": "Mal___Maleimide", + "fullName": "Maleimide", + "alias": "Mal", + "attachmentPoints": [ + { + "attachmentAtom": 0, + "leavingGroup": { + "atoms": [ + 7 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 8 + ] + }, + "type": "right" + } + ] + }, + "monomer45": { + "type": "monomer", + "id": "45", + "position": { + "x": 3.6017773547236605, + "y": -4.034748149295544 + }, + "alias": "oC64m5", + "templateId": "oC64m5___4-Hexan-6-ol-5-methylcytosine" + }, + "monomerTemplate-oC64m5___4-Hexan-6-ol-5-methylcytosine": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + -4.993, + -0.8266, + 0 + ] + }, + { + "label": "C", + "location": [ + -3.6174, + -1.4246, + 0 + ] + }, + { + "label": "C", + "location": [ + -2.4117, + -0.5323, + 0 + ] + }, + { + "label": "N", + "location": [ + -2.5816, + 0.9581, + 0 + ] + }, + { + "label": "C", + "location": [ + -3.9572, + 1.5561, + 0 + ] + }, + { + "label": "O", + "location": [ + -4.1271, + 3.0464, + 0 + ] + }, + { + "label": "N", + "location": [ + -1.034, + -1.1278, + 0 + ] + }, + { + "label": "N", + "location": [ + -5.1629, + 0.6638, + 0 + ] + }, + { + "label": "C", + "location": [ + -3.4475, + -2.915, + 0 + ] + }, + { + "label": "H", + "location": [ + -6.5386, + 1.2618, + 0 + ] + }, + { + "label": "C", + "location": [ + 0.1711, + -0.2333, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.5487, + -0.8288, + 0 + ] + }, + { + "label": "C", + "location": [ + 2.7538, + 0.0657, + 0 + ] + }, + { + "label": "C", + "location": [ + 4.1314, + -0.5298, + 0 + ] + }, + { + "label": "C", + "location": [ + 5.3365, + 0.3647, + 0 + ] + }, + { + "label": "C", + "location": [ + 6.7141, + -0.2308, + 0 + ] + }, + { + "label": "O", + "location": [ + 7.9193, + 0.6638, + 0 + ] + }, + { + "label": "H", + "location": [ + 9.2961, + 0.0686, + 0 + ] + } + ], + "bonds": [ + { + "type": 2, + "atoms": [ + 0, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 2 + ] + }, + { + "type": 2, + "atoms": [ + 2, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 2, + "atoms": [ + 4, + 5 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 8 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 10 + ] + }, + { + "type": 1, + "atoms": [ + 10, + 11 + ] + }, + { + "type": 1, + "atoms": [ + 11, + 12 + ] + }, + { + "type": 1, + "atoms": [ + 12, + 13 + ] + }, + { + "type": 1, + "atoms": [ + 13, + 14 + ] + }, + { + "type": 1, + "atoms": [ + 14, + 15 + ] + }, + { + "type": 1, + "atoms": [ + 15, + 16 + ] + }, + { + "type": 1, + "atoms": [ + 16, + 17 + ] + } + ], + "class": "Base", + "classHELM": "RNA", + "id": "oC64m5___4-Hexan-6-ol-5-methylcytosine", + "fullName": "4-Hexan-6-ol-5-methylcytosine", + "alias": "oC64m5", + "attachmentPoints": [ + { + "attachmentAtom": 7, + "leavingGroup": { + "atoms": [ + 9 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 16, + "leavingGroup": { + "atoms": [ + 17 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "C" + }, + "monomer46": { + "type": "monomer", + "id": "46", + "position": { + "x": 6.4267773547236615, + "y": -4.034748149295543 + }, + "alias": "gly", + "templateId": "gly___N-Hydroxyglycine" + }, + "monomerTemplate-gly___N-Hydroxyglycine": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + 2.6, + 0, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.3, + 0.75, + 0 + ] + }, + { + "label": "O", + "location": [ + 0.0007, + 0.0004, + 0 + ] + }, + { + "label": "N", + "location": [ + 3.9, + 0.75, + 0 + ] + }, + { + "label": "O", + "location": [ + 1.3, + 2.25, + 0 + ] + }, + { + "label": "O", + "location": [ + 5.1992, + 0.0004, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 1 + ] + }, + { + "type": 2, + "atoms": [ + 1, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 5 + ] + } + ], + "class": "Phosphate", + "classHELM": "RNA", + "id": "gly___N-Hydroxyglycine", + "fullName": "N-Hydroxyglycine", + "alias": "gly", + "attachmentPoints": [ + { + "attachmentAtom": 1, + "leavingGroup": { + "atoms": [ + 4 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 5 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "P" + }, + "monomer47": { + "type": "monomer", + "id": "47", + "position": { + "x": 10.051777354723662, + "y": -4.034748149295543 + }, + "alias": "5hMedC", + "templateId": "5hMedC___5-Hydroxymethyl dC" + }, + "monomerTemplate-5hMedC___5-Hydroxymethyl dC": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + 15.27368166456315, + -8.096931197906855, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "O", + "location": [ + 16.187220060139033, + -7.690221693402063, + 0 + ] + }, + { + "label": "C", + "location": [ + 16.856388517475764, + -8.433364320969021, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 16.356394722265833, + -9.299378977741815, + 0 + ] + }, + { + "label": "C", + "location": [ + 15.378230099489361, + -9.091433408060443, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 14.40765626077871, + -7.596931197906856, + 0 + ] + }, + { + "label": "O", + "location": [ + 14.40765626077871, + -6.596931197906856, + 0 + ] + }, + { + "label": "H", + "location": [ + 13.54163085699427, + -6.096931197906856, + 0 + ] + }, + { + "label": "O", + "location": [ + 14.635082705075886, + -9.760561161315726, + 0 + ] + }, + { + "label": "P", + "location": [ + 13.684027375172867, + -9.451540515625085, + 0 + ] + }, + { + "label": "O", + "location": [ + 12.940879980759393, + -10.120668268880369, + 0 + ] + }, + { + "label": "O", + "location": [ + 13.476119439683323, + -8.473392116679161, + 0 + ] + }, + { + "label": "O", + "location": [ + 13.891935310662411, + -10.42968891457101, + 0 + ] + }, + { + "label": "N", + "location": [ + 17.850908865779402, + -8.328821139412243, + 0 + ] + }, + { + "label": "C", + "location": [ + 18.35092719982532, + -9.194852893979773, + 0 + ] + }, + { + "label": "C", + "location": [ + 19.35091986630376, + -9.194852893979771, + 0 + ] + }, + { + "label": "C", + "location": [ + 19.85089419873628, + -8.328821139412243, + 0 + ] + }, + { + "label": "N", + "location": [ + 19.350875864690362, + -7.462789384844714, + 0 + ] + }, + { + "label": "C", + "location": [ + 18.350883198211925, + -7.462789384844714, + 0 + ] + }, + { + "label": "O", + "location": [ + 17.85087219784891, + -6.596770332215975, + 0 + ] + }, + { + "label": "N", + "location": [ + 20.85089419855477, + -8.328802086154738, + 0 + ] + }, + { + "label": "C", + "location": [ + 19.850930866666772, + -10.06087194660851, + 0 + ] + }, + { + "label": "O", + "location": [ + 19.350941867110457, + -10.926903701408918, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 5 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 5, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 8 + ], + "stereo": 6 + }, + { + "type": 1, + "atoms": [ + 8, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 9, + 10 + ] + }, + { + "type": 1, + "atoms": [ + 9, + 11 + ] + }, + { + "type": 2, + "atoms": [ + 9, + 12 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 13 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 18, + 13 + ] + }, + { + "type": 1, + "atoms": [ + 13, + 14 + ] + }, + { + "type": 2, + "atoms": [ + 14, + 15 + ] + }, + { + "type": 1, + "atoms": [ + 15, + 16 + ] + }, + { + "type": 2, + "atoms": [ + 16, + 17 + ] + }, + { + "type": 1, + "atoms": [ + 17, + 18 + ] + }, + { + "type": 2, + "atoms": [ + 18, + 19 + ] + }, + { + "type": 1, + "atoms": [ + 16, + 20 + ] + }, + { + "type": 1, + "atoms": [ + 15, + 21 + ] + }, + { + "type": 1, + "atoms": [ + 21, + 22 + ] + } + ], + "class": "RNA", + "classHELM": "RNA", + "id": "5hMedC___5-Hydroxymethyl dC", + "fullName": "Hydroxymethyl dC", + "alias": "5hMedC", + "attachmentPoints": [ + { + "attachmentAtom": 6, + "leavingGroup": { + "atoms": [ + 7 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 9, + "leavingGroup": { + "atoms": [ + 10 + ] + }, + "type": "right" + } + ], + "idtAliases": { + "base": "5HydMe-dC" + }, + "naturalAnalogShort": "C" + }, + "monomer48": { + "type": "monomer", + "id": "48", + "position": { + "x": 12.851777354723648, + "y": -4.034748149295543 + }, + "alias": "A", + "templateId": "A___Alanine" + }, + "monomerTemplate-A___Alanine": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "N", + "location": [ + -1.2549, + -0.392, + 0 + ] + }, + { + "label": "C", + "location": [ + -0.272, + 0.2633, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + -0.3103, + 1.7393, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.0523, + -0.392, + 0 + ] + }, + { + "label": "O", + "location": [ + 1.0829, + -1.5722, + 0 + ] + }, + { + "label": "O", + "location": [ + 2.0353, + 0.2633, + 0 + ] + }, + { + "label": "H", + "location": [ + -2.3334, + 0.0905, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 2 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 1, + 3 + ] + }, + { + "type": 2, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 5 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 6 + ] + } + ], + "class": "AminoAcid", + "classHELM": "PEPTIDE", + "id": "A___Alanine", + "fullName": "Alanine", + "alias": "A", + "attachmentPoints": [ + { + "attachmentAtom": 0, + "leavingGroup": { + "atoms": [ + 6 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 5 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "A" + }, + "monomer49": { + "type": "monomer", + "id": "49", + "position": { + "x": 21.210110688056982, + "y": -4.091799431346823 + }, + "alias": "12ddR", + "templateId": "12ddR___1',2'-dideoxyribose" + }, + "monomerTemplate-12ddR___1',2'-dideoxyribose": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "O", + "location": [ + -0.8526, + 1.541, + 0 + ] + }, + { + "label": "C", + "location": [ + -0.3405, + 0.131, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 0.3301, + 2.4636, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.1586, + 0.1823, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 1.5731, + 1.6239, + 0 + ] + }, + { + "label": "O", + "location": [ + 2.0777, + -1.0008, + 0 + ] + }, + { + "label": "C", + "location": [ + -1.1818, + -1.1087, + 0 + ] + }, + { + "label": "O", + "location": [ + -2.6787, + -1.0008, + 0 + ] + }, + { + "label": "H", + "location": [ + -3.3525, + -1.9937, + 0 + ] + }, + { + "label": "H", + "location": [ + 3.2666, + -0.8378, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 6 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 2, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 5 + ], + "stereo": 6 + }, + { + "type": 1, + "atoms": [ + 5, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 8 + ] + } + ], + "class": "Sugar", + "classHELM": "RNA", + "id": "12ddR___1',2'-dideoxyribose", + "fullName": "1',2'-dideoxyribose", + "alias": "12ddR", + "attachmentPoints": [ + { + "attachmentAtom": 7, + "leavingGroup": { + "atoms": [ + 8 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 5, + "leavingGroup": { + "atoms": [ + 9 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "R" + } +} \ No newline at end of file diff --git a/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/All type of monomers in vertical chain.ket b/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/All type of monomers in vertical chain.ket new file mode 100644 index 0000000000..7046045ee8 --- /dev/null +++ b/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/All type of monomers in vertical chain.ket @@ -0,0 +1,1461 @@ +{ + "root": { + "nodes": [ + { + "$ref": "monomer22" + }, + { + "$ref": "monomer23" + }, + { + "$ref": "monomer24" + }, + { + "$ref": "monomer25" + }, + { + "$ref": "monomer26" + }, + { + "$ref": "monomer27" + } + ], + "connections": [ + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer22", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer27", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer25", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer26", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer26", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer22", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer24", + "attachmentPointId": "R2" + }, + "endpoint2": { + "monomerId": "monomer25", + "attachmentPointId": "R1" + } + }, + { + "connectionType": "single", + "endpoint1": { + "monomerId": "monomer24", + "attachmentPointId": "R1" + }, + "endpoint2": { + "monomerId": "monomer23", + "attachmentPointId": "R2" + } + } + ], + "templates": [ + { + "$ref": "monomerTemplate-Mal___Maleimide" + }, + { + "$ref": "monomerTemplate-oC64m5___4-Hexan-6-ol-5-methylcytosine" + }, + { + "$ref": "monomerTemplate-gly___N-Hydroxyglycine" + }, + { + "$ref": "monomerTemplate-5hMedC___5-Hydroxymethyl dC" + }, + { + "$ref": "monomerTemplate-A___Alanine" + }, + { + "$ref": "monomerTemplate-12ddR___1',2'-dideoxyribose" + } + ] + }, + "monomer22": { + "type": "monomer", + "id": "22", + "position": { + "x": 7.389821186822468, + "y": -11.961655693790593 + }, + "alias": "Mal", + "templateId": "Mal___Maleimide" + }, + "monomerTemplate-Mal___Maleimide": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "N", + "location": [ + 14.700000000000001, + -6.105559548551434, + 0 + ] + }, + { + "label": "C", + "location": [ + 15.508989960649673, + -6.6933522542002315, + 0 + ] + }, + { + "label": "C", + "location": [ + 15.199993795209934, + -7.644440451448566, + 0 + ] + }, + { + "label": "C", + "location": [ + 14.200006204790068, + -7.644440451448566, + 0 + ] + }, + { + "label": "C", + "location": [ + 13.891010039350329, + -6.6933522542002315, + 0 + ] + }, + { + "label": "O", + "location": [ + 16.460045290552692, + -6.38433160850959, + 0 + ] + }, + { + "label": "O", + "location": [ + 12.93995470944731, + -6.384331608509591, + 0 + ] + }, + { + "label": "H", + "location": [ + 14.700000000000001, + -5.105559548551434, + 0 + ] + }, + { + "label": "H", + "location": [ + 13.612208979617632, + -8.453448746881675, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 2, + "atoms": [ + 1, + 5 + ] + }, + { + "type": 2, + "atoms": [ + 4, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 8 + ] + } + ], + "class": "CHEM", + "classHELM": "CHEM", + "id": "Mal___Maleimide", + "fullName": "Maleimide", + "alias": "Mal", + "attachmentPoints": [ + { + "attachmentAtom": 0, + "leavingGroup": { + "atoms": [ + 7 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 8 + ] + }, + "type": "right" + } + ] + }, + "monomer23": { + "type": "monomer", + "id": "23", + "position": { + "x": 7.5094230761612115, + "y": 1.4187044406722669 + }, + "alias": "oC64m5", + "templateId": "oC64m5___4-Hexan-6-ol-5-methylcytosine" + }, + "monomerTemplate-oC64m5___4-Hexan-6-ol-5-methylcytosine": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + -4.993, + -0.8266, + 0 + ] + }, + { + "label": "C", + "location": [ + -3.6174, + -1.4246, + 0 + ] + }, + { + "label": "C", + "location": [ + -2.4117, + -0.5323, + 0 + ] + }, + { + "label": "N", + "location": [ + -2.5816, + 0.9581, + 0 + ] + }, + { + "label": "C", + "location": [ + -3.9572, + 1.5561, + 0 + ] + }, + { + "label": "O", + "location": [ + -4.1271, + 3.0464, + 0 + ] + }, + { + "label": "N", + "location": [ + -1.034, + -1.1278, + 0 + ] + }, + { + "label": "N", + "location": [ + -5.1629, + 0.6638, + 0 + ] + }, + { + "label": "C", + "location": [ + -3.4475, + -2.915, + 0 + ] + }, + { + "label": "H", + "location": [ + -6.5386, + 1.2618, + 0 + ] + }, + { + "label": "C", + "location": [ + 0.1711, + -0.2333, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.5487, + -0.8288, + 0 + ] + }, + { + "label": "C", + "location": [ + 2.7538, + 0.0657, + 0 + ] + }, + { + "label": "C", + "location": [ + 4.1314, + -0.5298, + 0 + ] + }, + { + "label": "C", + "location": [ + 5.3365, + 0.3647, + 0 + ] + }, + { + "label": "C", + "location": [ + 6.7141, + -0.2308, + 0 + ] + }, + { + "label": "O", + "location": [ + 7.9193, + 0.6638, + 0 + ] + }, + { + "label": "H", + "location": [ + 9.2961, + 0.0686, + 0 + ] + } + ], + "bonds": [ + { + "type": 2, + "atoms": [ + 0, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 2 + ] + }, + { + "type": 2, + "atoms": [ + 2, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 2, + "atoms": [ + 4, + 5 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 8 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 10 + ] + }, + { + "type": 1, + "atoms": [ + 10, + 11 + ] + }, + { + "type": 1, + "atoms": [ + 11, + 12 + ] + }, + { + "type": 1, + "atoms": [ + 12, + 13 + ] + }, + { + "type": 1, + "atoms": [ + 13, + 14 + ] + }, + { + "type": 1, + "atoms": [ + 14, + 15 + ] + }, + { + "type": 1, + "atoms": [ + 15, + 16 + ] + }, + { + "type": 1, + "atoms": [ + 16, + 17 + ] + } + ], + "class": "Base", + "classHELM": "RNA", + "id": "oC64m5___4-Hexan-6-ol-5-methylcytosine", + "fullName": "4-Hexan-6-ol-5-methylcytosine", + "alias": "oC64m5", + "attachmentPoints": [ + { + "attachmentAtom": 7, + "leavingGroup": { + "atoms": [ + 9 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 16, + "leavingGroup": { + "atoms": [ + 17 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "C" + }, + "monomer24": { + "type": "monomer", + "id": "24", + "position": { + "x": 7.503282725284022, + "y": -0.7443458737931397 + }, + "alias": "gly", + "templateId": "gly___N-Hydroxyglycine" + }, + "monomerTemplate-gly___N-Hydroxyglycine": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + 2.6, + 0, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.3, + 0.75, + 0 + ] + }, + { + "label": "O", + "location": [ + 0.0007, + 0.0004, + 0 + ] + }, + { + "label": "N", + "location": [ + 3.9, + 0.75, + 0 + ] + }, + { + "label": "O", + "location": [ + 1.3, + 2.25, + 0 + ] + }, + { + "label": "O", + "location": [ + 5.1992, + 0.0004, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 1 + ] + }, + { + "type": 2, + "atoms": [ + 1, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 5 + ] + } + ], + "class": "Phosphate", + "classHELM": "RNA", + "id": "gly___N-Hydroxyglycine", + "fullName": "N-Hydroxyglycine", + "alias": "gly", + "attachmentPoints": [ + { + "attachmentAtom": 1, + "leavingGroup": { + "atoms": [ + 4 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 5 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "P" + }, + "monomer25": { + "type": "monomer", + "id": "25", + "position": { + "x": 7.578282725284021, + "y": -3.5693458737931425 + }, + "alias": "5hMedC", + "templateId": "5hMedC___5-Hydroxymethyl dC" + }, + "monomerTemplate-5hMedC___5-Hydroxymethyl dC": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + 15.27368166456315, + -8.096931197906855, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "O", + "location": [ + 16.187220060139033, + -7.690221693402063, + 0 + ] + }, + { + "label": "C", + "location": [ + 16.856388517475764, + -8.433364320969021, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 16.356394722265833, + -9.299378977741815, + 0 + ] + }, + { + "label": "C", + "location": [ + 15.378230099489361, + -9.091433408060443, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 14.40765626077871, + -7.596931197906856, + 0 + ] + }, + { + "label": "O", + "location": [ + 14.40765626077871, + -6.596931197906856, + 0 + ] + }, + { + "label": "H", + "location": [ + 13.54163085699427, + -6.096931197906856, + 0 + ] + }, + { + "label": "O", + "location": [ + 14.635082705075886, + -9.760561161315726, + 0 + ] + }, + { + "label": "P", + "location": [ + 13.684027375172867, + -9.451540515625085, + 0 + ] + }, + { + "label": "O", + "location": [ + 12.940879980759393, + -10.120668268880369, + 0 + ] + }, + { + "label": "O", + "location": [ + 13.476119439683323, + -8.473392116679161, + 0 + ] + }, + { + "label": "O", + "location": [ + 13.891935310662411, + -10.42968891457101, + 0 + ] + }, + { + "label": "N", + "location": [ + 17.850908865779402, + -8.328821139412243, + 0 + ] + }, + { + "label": "C", + "location": [ + 18.35092719982532, + -9.194852893979773, + 0 + ] + }, + { + "label": "C", + "location": [ + 19.35091986630376, + -9.194852893979771, + 0 + ] + }, + { + "label": "C", + "location": [ + 19.85089419873628, + -8.328821139412243, + 0 + ] + }, + { + "label": "N", + "location": [ + 19.350875864690362, + -7.462789384844714, + 0 + ] + }, + { + "label": "C", + "location": [ + 18.350883198211925, + -7.462789384844714, + 0 + ] + }, + { + "label": "O", + "location": [ + 17.85087219784891, + -6.596770332215975, + 0 + ] + }, + { + "label": "N", + "location": [ + 20.85089419855477, + -8.328802086154738, + 0 + ] + }, + { + "label": "C", + "location": [ + 19.850930866666772, + -10.06087194660851, + 0 + ] + }, + { + "label": "O", + "location": [ + 19.350941867110457, + -10.926903701408918, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 5 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 5, + 6 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 4, + 8 + ], + "stereo": 6 + }, + { + "type": 1, + "atoms": [ + 8, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 9, + 10 + ] + }, + { + "type": 1, + "atoms": [ + 9, + 11 + ] + }, + { + "type": 2, + "atoms": [ + 9, + 12 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 13 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 18, + 13 + ] + }, + { + "type": 1, + "atoms": [ + 13, + 14 + ] + }, + { + "type": 2, + "atoms": [ + 14, + 15 + ] + }, + { + "type": 1, + "atoms": [ + 15, + 16 + ] + }, + { + "type": 2, + "atoms": [ + 16, + 17 + ] + }, + { + "type": 1, + "atoms": [ + 17, + 18 + ] + }, + { + "type": 2, + "atoms": [ + 18, + 19 + ] + }, + { + "type": 1, + "atoms": [ + 16, + 20 + ] + }, + { + "type": 1, + "atoms": [ + 15, + 21 + ] + }, + { + "type": 1, + "atoms": [ + 21, + 22 + ] + } + ], + "class": "RNA", + "classHELM": "RNA", + "id": "5hMedC___5-Hydroxymethyl dC", + "fullName": "Hydroxymethyl dC", + "alias": "5hMedC", + "attachmentPoints": [ + { + "attachmentAtom": 6, + "leavingGroup": { + "atoms": [ + 7 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 9, + "leavingGroup": { + "atoms": [ + 10 + ] + }, + "type": "right" + } + ], + "idtAliases": { + "base": "5HydMe-dC" + }, + "naturalAnalogShort": "C" + }, + "monomer26": { + "type": "monomer", + "id": "26", + "position": { + "x": 7.528282725284006, + "y": -6.569345873793143 + }, + "alias": "A", + "templateId": "A___Alanine" + }, + "monomerTemplate-A___Alanine": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "N", + "location": [ + -1.2549, + -0.392, + 0 + ] + }, + { + "label": "C", + "location": [ + -0.272, + 0.2633, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + -0.3103, + 1.7393, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.0523, + -0.392, + 0 + ] + }, + { + "label": "O", + "location": [ + 1.0829, + -1.5722, + 0 + ] + }, + { + "label": "O", + "location": [ + 2.0353, + 0.2633, + 0 + ] + }, + { + "label": "H", + "location": [ + -2.3334, + 0.0905, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 2 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 1, + 3 + ] + }, + { + "type": 2, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 5 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 6 + ] + } + ], + "class": "AminoAcid", + "classHELM": "PEPTIDE", + "id": "A___Alanine", + "fullName": "Alanine", + "alias": "A", + "attachmentPoints": [ + { + "attachmentAtom": 0, + "leavingGroup": { + "atoms": [ + 6 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 5 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "A" + }, + "monomer27": { + "type": "monomer", + "id": "27", + "position": { + "x": 7.347423953235869, + "y": -14.142229708023102 + }, + "alias": "12ddR", + "templateId": "12ddR___1',2'-dideoxyribose" + }, + "monomerTemplate-12ddR___1',2'-dideoxyribose": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "O", + "location": [ + -0.8526, + 1.541, + 0 + ] + }, + { + "label": "C", + "location": [ + -0.3405, + 0.131, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 0.3301, + 2.4636, + 0 + ] + }, + { + "label": "C", + "location": [ + 1.1586, + 0.1823, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "C", + "location": [ + 1.5731, + 1.6239, + 0 + ] + }, + { + "label": "O", + "location": [ + 2.0777, + -1.0008, + 0 + ] + }, + { + "label": "C", + "location": [ + -1.1818, + -1.1087, + 0 + ] + }, + { + "label": "O", + "location": [ + -2.6787, + -1.0008, + 0 + ] + }, + { + "label": "H", + "location": [ + -3.3525, + -1.9937, + 0 + ] + }, + { + "label": "H", + "location": [ + 3.2666, + -0.8378, + 0 + ] + } + ], + "bonds": [ + { + "type": 1, + "atoms": [ + 0, + 1 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 1, + 6 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 2, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 5 + ], + "stereo": 6 + }, + { + "type": 1, + "atoms": [ + 5, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 7, + 8 + ] + } + ], + "class": "Sugar", + "classHELM": "RNA", + "id": "12ddR___1',2'-dideoxyribose", + "fullName": "1',2'-dideoxyribose", + "alias": "12ddR", + "attachmentPoints": [ + { + "attachmentAtom": 7, + "leavingGroup": { + "atoms": [ + 8 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 5, + "leavingGroup": { + "atoms": [ + 9 + ] + }, + "type": "right" + } + ], + "naturalAnalogShort": "R" + } +} \ No newline at end of file diff --git a/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library)-expected.ket b/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library)-expected.ket new file mode 100644 index 0000000000..2eee29ad9b --- /dev/null +++ b/ketcher-autotests/tests/test-data/KET/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library)-expected.ket @@ -0,0 +1,227 @@ +{ + "root": { + "nodes": [ + { + "$ref": "monomer2" + } + ], + "connections": [], + "templates": [ + { + "$ref": "monomerTemplate-D___Aspartic acid" + } + ] + }, + "monomer2": { + "type": "monomer", + "id": "2", + "position": { + "x": 17.888623844398268, + "y": -10.316132522921873 + }, + "alias": "D", + "templateId": "D___Aspartic acid" + }, + "monomerTemplate-D___Aspartic acid": { + "type": "monomerTemplate", + "atoms": [ + { + "label": "C", + "location": [ + 1.631, + -1.5578, + 0 + ] + }, + { + "label": "O", + "location": [ + 1.6327, + -2.7392, + 0 + ] + }, + { + "label": "C", + "location": [ + 0.3507, + -0.8201, + 0 + ], + "stereoLabel": "abs" + }, + { + "label": "N", + "location": [ + -0.9295, + -1.5578, + 0 + ] + }, + { + "label": "H", + "location": [ + -1.9525, + -0.9669, + 0 + ] + }, + { + "label": "C", + "location": [ + 0.3485, + 0.6575, + 0 + ] + }, + { + "label": "C", + "location": [ + -0.9317, + 1.3952, + 0 + ] + }, + { + "label": "O", + "location": [ + -1.9542, + 0.8032, + 0 + ] + }, + { + "label": "O", + "location": [ + -0.9335, + 2.5766, + 0 + ] + }, + { + "label": "O", + "location": [ + 2.6534, + -0.9658, + 0 + ] + }, + { + "label": "H", + "location": [ + 0.0851, + 3.1751, + 0 + ] + } + ], + "bonds": [ + { + "type": 2, + "atoms": [ + 1, + 0 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 2 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 3 + ] + }, + { + "type": 1, + "atoms": [ + 3, + 4 + ] + }, + { + "type": 1, + "atoms": [ + 2, + 5 + ], + "stereo": 1 + }, + { + "type": 1, + "atoms": [ + 5, + 6 + ] + }, + { + "type": 2, + "atoms": [ + 6, + 7 + ] + }, + { + "type": 1, + "atoms": [ + 6, + 8 + ] + }, + { + "type": 1, + "atoms": [ + 0, + 9 + ] + }, + { + "type": 1, + "atoms": [ + 8, + 10 + ] + } + ], + "class": "AminoAcid", + "classHELM": "PEPTIDE", + "id": "D___Aspartic acid", + "fullName": "Aspartic acid", + "alias": "D", + "attachmentPoints": [ + { + "attachmentAtom": 3, + "leavingGroup": { + "atoms": [ + 4 + ] + }, + "type": "left" + }, + { + "attachmentAtom": 0, + "leavingGroup": { + "atoms": [ + 9 + ] + }, + "type": "right" + }, + { + "attachmentAtom": 8, + "leavingGroup": { + "atoms": [ + 10 + ] + }, + "type": "side" + } + ], + "naturalAnalogShort": "D" + } +} \ No newline at end of file diff --git a/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library)-expected.smarts b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library)-expected.smarts new file mode 100644 index 0000000000..8f76511096 --- /dev/null +++ b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/1. Petide D (from library)-expected.smarts @@ -0,0 +1 @@ +[#6](-[#8])(-[#6@](/[#6]-[#6](-[#8]-[H])=[#8])-[#7]-[H])=[#8] \ No newline at end of file diff --git a/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library)-expected.smarts b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library)-expected.smarts new file mode 100644 index 0000000000..4902acc150 --- /dev/null +++ b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/2. Sugar UNA (from library)-expected.smarts @@ -0,0 +1 @@ +[#8](-[#6@](-[#6]-[#8]-[H])\[#6]-[#8]-[H])-[#6@@](-[#8])\[#6]-[#8] \ No newline at end of file diff --git a/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library)-expected.smarts b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library)-expected.smarts new file mode 100644 index 0000000000..4ea259bcca --- /dev/null +++ b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/3. Base hU (from library)-expected.smarts @@ -0,0 +1 @@ +[#7]1-[#6](=[#8])-[#7](-[H])-[#6]-[#6]-[#6]-1=[#8] \ No newline at end of file diff --git a/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library)-expected.smarts b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library)-expected.smarts new file mode 100644 index 0000000000..cb6eff7059 --- /dev/null +++ b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/4. Phosphate bnn (from library)-expected.smarts @@ -0,0 +1 @@ +[H]-[#7](-[#6]-[#6]1-[#6]=[#6]-[#6]=[#6]-[#6]=1)-[H] \ No newline at end of file diff --git a/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library)-expected.smarts b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library)-expected.smarts new file mode 100644 index 0000000000..d16dfb6940 --- /dev/null +++ b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/5. Unsplit nucleotide 5hMedC (from library)-expected.smarts @@ -0,0 +1 @@ +[#6@]1(/[#6]-[#8]-[H])-[#8]-[#6@@](/[#7]2-[#6]=[#6](-[#6]-[#8])-[#6](-[#7])=[#7]-[#6]-2=[#8])-[#6]-[#6@@]-1\[#8]-[#15](=[#8])(-[#8])-[#8] \ No newline at end of file diff --git a/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library)-expected.smarts b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library)-expected.smarts new file mode 100644 index 0000000000..79ae777a40 --- /dev/null +++ b/ketcher-autotests/tests/test-data/SMARTS/Micro-Macro-Switcher/Basic-Monomers/Positive/6. CHEM 4aPEGMal (from library)-expected.smarts @@ -0,0 +1 @@ +[#6](-[#8]-[#6]-[#6]-[#8]-[#6]-[#6]-[#7]-[#6](=[#8])-[#6]-[#6]-[#7]1-[#6](=[#6])-[#6](-[H])-[#6]-[#6]-1=[#6])-[#6](-[#6]-[#8]-[#6]-[#6]-[#8]-[#6]-[#6]-[#7]-[#6](=[#8])-[#6]-[#6]-[#7]1-[#6](=[#6])-[#6](-[H])-[#6]-[#6]-1=[#6])(-[#6]-[#8]-[#6]-[#6]-[#8]-[#6]-[#6]-[#7]-[#6](=[#8])-[#6]-[#6]-[#7]1-[#6](=[#6])-[#6]-[#6](-[H])-[#6]-1=[#6])-[#6]-[#8]-[#6]-[#6]-[#8]-[#6]-[#6]-[#7]-[#6](=[#8])-[#6]-[#6]-[#7]1-[#6](=[#6])-[#6]-[#6](-[H])-[#6]-1=[#6] \ No newline at end of file diff --git a/ketcher-autotests/tests/utils/canvas/EditAbbreviation.ts b/ketcher-autotests/tests/utils/canvas/EditAbbreviation.ts new file mode 100644 index 0000000000..d04b03ad96 --- /dev/null +++ b/ketcher-autotests/tests/utils/canvas/EditAbbreviation.ts @@ -0,0 +1,11 @@ +import { Page } from '@playwright/test'; + +export async function pressCancelAtEditAbbreviationDialog(page: Page) { + await page.getByRole('button', { name: 'Cancel' }).click(); +} + +export async function pressRemoveAbbreviationAtEditAbbreviationDialog( + page: Page, +) { + await page.getByRole('button', { name: 'Remove Abbreviation' }).click(); +} diff --git a/ketcher-autotests/tests/utils/canvas/atoms/getAtomByIndex/getAtomByIndex.ts b/ketcher-autotests/tests/utils/canvas/atoms/getAtomByIndex/getAtomByIndex.ts index e7e8eca819..4b208b4d5e 100644 --- a/ketcher-autotests/tests/utils/canvas/atoms/getAtomByIndex/getAtomByIndex.ts +++ b/ketcher-autotests/tests/utils/canvas/atoms/getAtomByIndex/getAtomByIndex.ts @@ -1,6 +1,8 @@ +/* eslint-disable no-magic-numbers */ import { Page } from '@playwright/test'; import { getAtomsCoordinatesByAttributes } from '@utils/canvas/atoms'; import { AtomAttributes, AtomXy } from '@utils/canvas/types'; +import { getLeftTopBarSize } from '@utils/canvas/common/getLeftTopBarSize'; /** * Filter atoms by its attributes and then get atom by index. @@ -28,3 +30,43 @@ export async function getAtomByIndex( return result[index]; } + +type BoundingBox = { + width: number; + height: number; + y: number; + x: number; +}; + +export async function getAtomById(page: Page, id: number): Promise { + const { atoms, scale, offset, zoom } = await page.evaluate(() => { + return { + // eslint-disable-next-line no-unsafe-optional-chaining + atoms: [...window.ketcher?.editor?.struct()?.atoms.entries()], + scale: window.ketcher?.editor?.options()?.microModeScale, + offset: window.ketcher?.editor?.options()?.offset, + zoom: window.ketcher?.editor?.options()?.zoom, + }; + }); + const atom = atoms.find(([atomId]) => atomId === id)?.[1]; + + if (!atom) { + throw Error('Incorrect atom id'); + } + + const { leftBarWidth, topBarHeight } = await getLeftTopBarSize(page); + const body = (await page.locator('body').boundingBox()) as BoundingBox; + const centerX = body.x + body?.width / 2; + const centerY = body.y + body?.height / 2; + + const atomX = atom.pp.x * scale + offset.x + leftBarWidth; + const atomY = atom.pp.y * scale + offset.y + topBarHeight; + + const zoomedX = centerX + (atomX - centerX) * zoom; + const zoomedY = centerY + (atomY - centerY) * zoom; + return { + ...atom, + x: zoomedX, + y: zoomedY, + }; +} diff --git a/ketcher-autotests/tests/utils/canvas/bonds/getBondByIndex/getBondByIndex.ts b/ketcher-autotests/tests/utils/canvas/bonds/getBondByIndex/getBondByIndex.ts index 519e148763..000161269c 100644 --- a/ketcher-autotests/tests/utils/canvas/bonds/getBondByIndex/getBondByIndex.ts +++ b/ketcher-autotests/tests/utils/canvas/bonds/getBondByIndex/getBondByIndex.ts @@ -1,5 +1,7 @@ +/* eslint-disable no-magic-numbers */ import { Page } from '@playwright/test'; import { getBondsCoordinatesByAttributes } from '@utils/canvas/bonds'; +import { getLeftTopBarSize } from '@utils/canvas/common/getLeftTopBarSize'; import { BondAttributes, BondXy } from '@utils/canvas/types'; /** @@ -28,3 +30,43 @@ export async function getBondByIndex( return result[index]; } + +type BoundingBox = { + width: number; + height: number; + y: number; + x: number; +}; + +export async function getBondById(page: Page, id: number): Promise { + const { bonds, scale, offset, zoom } = await page.evaluate(() => { + return { + // eslint-disable-next-line no-unsafe-optional-chaining + bonds: [...window.ketcher?.editor?.struct()?.bonds.entries()], + scale: window.ketcher?.editor?.options()?.microModeScale, + offset: window.ketcher?.editor?.options()?.offset, + zoom: window.ketcher?.editor?.options()?.zoom, + }; + }); + const bond = bonds.find(([bondId]) => bondId === id)?.[1]; + + if (!bond) { + throw Error('Incorrect bond id'); + } + + const { leftBarWidth, topBarHeight } = await getLeftTopBarSize(page); + const body = (await page.locator('body').boundingBox()) as BoundingBox; + const centerX = body.x + body?.width / 2; + const centerY = body.y + body?.height / 2; + + const bondX = bond.center.x * scale + offset.x + leftBarWidth; + const bondY = bond.center.y * scale + offset.y + topBarHeight; + + const zoomedX = centerX + (bondX - centerX) * zoom; + const zoomedY = centerY + (bondY - centerY) * zoom; + return { + ...bond, + x: zoomedX, + y: zoomedY, + }; +} diff --git a/ketcher-autotests/tests/utils/canvas/helpers.ts b/ketcher-autotests/tests/utils/canvas/helpers.ts index 2989e9b431..c896f6eef6 100644 --- a/ketcher-autotests/tests/utils/canvas/helpers.ts +++ b/ketcher-autotests/tests/utils/canvas/helpers.ts @@ -197,7 +197,7 @@ export async function takePageScreenshot( page: Page, options?: { masks?: Locator[]; maxDiffPixelRatio?: number }, ) { - const maxTimeout = 3000; + const maxTimeout = 1500; await waitForRender(page, emptyFunction, maxTimeout); await expect(page).toHaveScreenshot({ mask: options?.masks, diff --git a/ketcher-autotests/tests/utils/canvas/tools/helpers.ts b/ketcher-autotests/tests/utils/canvas/tools/helpers.ts index 0fb4632112..a47d2376e3 100644 --- a/ketcher-autotests/tests/utils/canvas/tools/helpers.ts +++ b/ketcher-autotests/tests/utils/canvas/tools/helpers.ts @@ -130,7 +130,9 @@ export async function selectFlexLayoutModeTool(page: Page) { export async function selectEraseTool(page: Page) { const bondToolButton = page.getByTestId('erase'); - await bondToolButton.click(); + await waitForRender(page, async () => { + await bondToolButton.click(); + }); } export async function selectImageTool(page: Page) { diff --git a/ketcher-autotests/tests/utils/canvas/types.ts b/ketcher-autotests/tests/utils/canvas/types.ts index 5c5fde1df1..21c68171c7 100644 --- a/ketcher-autotests/tests/utils/canvas/types.ts +++ b/ketcher-autotests/tests/utils/canvas/types.ts @@ -61,11 +61,11 @@ export type BondAttributes = { hb1?: number; hb2?: number; len?: number; - reactingCenterStatus?: number; + reactingCenterStatus?: number | null; sa?: number; sb?: number; stereo?: number; - topology?: number; + topology?: number | null; type?: BondType; xxx?: string; customQuery?: string | null; diff --git a/ketcher-autotests/tests/utils/clicks/index.ts b/ketcher-autotests/tests/utils/clicks/index.ts index 50b8e9c969..512969a711 100644 --- a/ketcher-autotests/tests/utils/clicks/index.ts +++ b/ketcher-autotests/tests/utils/clicks/index.ts @@ -12,6 +12,8 @@ import { } from '..'; import { AtomLabelType, DropdownIds, DropdownToolIds } from './types'; import { waitForItemsToMergeInitialization } from '@utils/common/loaders/waitForRender'; +import { getAtomById } from '@utils/canvas/atoms/getAtomByIndex/getAtomByIndex'; +import { getBondById } from '@utils/canvas/bonds/getBondByIndex/getBondByIndex'; type BoundingBox = { width: number; @@ -150,6 +152,17 @@ export async function clickOnBond( }); } +export async function clickOnBondById( + page: Page, + bondId: number, + buttonSelect?: 'left' | 'right' | 'middle', +) { + const point = await getBondById(page, bondId); + await waitForRender(page, async () => { + await page.mouse.click(point.x, point.y, { button: buttonSelect }); + }); +} + export async function clickOnAtom( page: Page, atomLabel: AtomLabelType, @@ -162,6 +175,17 @@ export async function clickOnAtom( }); } +export async function clickOnAtomById( + page: Page, + atomId: number, + buttonSelect?: 'left' | 'right' | 'middle', +) { + const point = await getAtomById(page, atomId); + await waitForRender(page, async () => { + await page.mouse.click(point.x, point.y, { button: buttonSelect }); + }); +} + export async function doubleClickOnAtom( page: Page, atomLabel: string, diff --git a/ketcher-autotests/tests/utils/files/readFile.ts b/ketcher-autotests/tests/utils/files/readFile.ts index cba22bec0d..2ad8856d87 100644 --- a/ketcher-autotests/tests/utils/files/readFile.ts +++ b/ketcher-autotests/tests/utils/files/readFile.ts @@ -355,11 +355,8 @@ export async function getAndCompareSmiles(page: Page, smilesFilePath: string) { // always match and there is no difference between the results when comparing. export async function saveToFile(filename: string, data: string) { if (process.env.GENERATE_DATA === 'true') { - return await fs.promises.writeFile( - `tests/test-data/${filename}`, - data, - 'utf-8', - ); + // `tests/test-data/${filename}`, + return await fs.promises.writeFile(`${filename}`, data, 'utf-8'); } } diff --git a/ketcher-autotests/tests/utils/files/receiveFileComparisonData.ts b/ketcher-autotests/tests/utils/files/receiveFileComparisonData.ts index b87423cdf1..e88dd0d127 100644 --- a/ketcher-autotests/tests/utils/files/receiveFileComparisonData.ts +++ b/ketcher-autotests/tests/utils/files/receiveFileComparisonData.ts @@ -1,12 +1,19 @@ import { Page, expect } from '@playwright/test'; import { Ketcher, MolfileFormat } from 'ketcher-core'; import { readFileContents, saveToFile } from './readFile'; -import { getCdx, getCdxml, getKet, getMolfile } from '@utils/formats'; +import { + getCdx, + getCdxml, + getKet, + getMolfile, + getSmarts, +} from '@utils/formats'; export enum FileType { KET = 'ket', CDX = 'cdx', CDXML = 'cdxml', + SMARTS = 'smarts', } const fileTypeHandlers: { [key in FileType]: (page: Page) => Promise } = @@ -14,11 +21,25 @@ const fileTypeHandlers: { [key in FileType]: (page: Page) => Promise } = [FileType.KET]: getKet, [FileType.CDX]: getCdx, [FileType.CDXML]: getCdxml, + [FileType.SMARTS]: getSmarts, }; export async function verifyFile( page: Page, - filename: string, + _filename: string, + expectedFilename: string, + fileType: FileType, +) { + // line below for backward compatibility (to comply with prettier) + // due to mistake - filename parameter was never make sence, + // since we took the original "filename" file directly from the memory but not from file + _filename = ''; + + verifyFile2(page, expectedFilename, fileType); +} + +export async function verifyFile2( + page: Page, expectedFilename: string, fileType: FileType, ) { @@ -28,9 +49,12 @@ export async function verifyFile( throw new Error(`Unsupported file type: ${fileType}`); } - const expectedFile = await getFileContent(page); - await saveToFile(filename, expectedFile); + // This two lines for creating from scratch or for updating exampled files + const expectedFileContent = await getFileContent(page); + await saveToFile(expectedFilename, expectedFileContent); + // This line for filtering out example file content (named as fileExpected) + // and file content from memory (named as file) from unnessusary data const { fileExpected, file } = await receiveFileComparisonData({ page, expectedFileName: expectedFilename, diff --git a/ketcher-autotests/tests/utils/macromolecules/monomer.ts b/ketcher-autotests/tests/utils/macromolecules/monomer.ts index 10e9138e0f..fa73d38313 100644 --- a/ketcher-autotests/tests/utils/macromolecules/monomer.ts +++ b/ketcher-autotests/tests/utils/macromolecules/monomer.ts @@ -5,6 +5,7 @@ import { selectLeftPanelButton, selectRectangleSelectionTool, selectSingleBondTool, + waitForRender, } from '@utils'; export async function moveMonomer( @@ -26,7 +27,9 @@ export async function moveMonomerOnMicro( ) { await selectLeftPanelButton(LeftPanelButton.HandTool, page); await selectRectangleSelectionTool(page); - await monomer.click(); + await waitForRender(page, async () => { + await monomer.click(); + }); await dragMouseTo(x, y, page); } diff --git a/ketcher-autotests/tests/utils/macromolecules/topToolBar.ts b/ketcher-autotests/tests/utils/macromolecules/topToolBar.ts index 9bd39ceb6c..5e10bf7a7c 100644 --- a/ketcher-autotests/tests/utils/macromolecules/topToolBar.ts +++ b/ketcher-autotests/tests/utils/macromolecules/topToolBar.ts @@ -1,9 +1,14 @@ import { Page } from '@playwright/test'; +import { waitForRender } from '@utils/common/loaders/waitForRender'; export async function pressUndoButton(page: Page) { - await page.getByTestId('undo').click(); + await waitForRender(page, async () => { + await page.getByTestId('undo').click(); + }); } export async function pressRedoButton(page: Page) { - await page.getByTestId('redo').click(); + await waitForRender(page, async () => { + await page.getByTestId('redo').click(); + }); }