Skip to content

Commit

Permalink
#4530 - Convert Rx connection points created in molecules mode into c…
Browse files Browse the repository at this point in the history
…hem attachment points in macromolecules mode (#4598)

- unblocked rglabels to attachment points conversion for molecules
- added validation for attachment points creation from rglabels
  • Loading branch information
rrodionov91 authored May 10, 2024
1 parent 66e8733 commit ccb00eb
Show file tree
Hide file tree
Showing 7 changed files with 827 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
waitForRender,
moveMouseToTheMiddleOfTheScreen,
selectOptionInDropdown,
selectSingleBondTool,
} from '@utils';

const topLeftCorner = {
Expand Down Expand Up @@ -599,4 +600,22 @@ test.describe('Macro-Micro-Switcher', () => {
await turnOnMacromoleculesEditor(page);
await takePageScreenshot(page);
});

test('R-Group labels should be converted to monomer attachment points', async ({
page,
}) => {
/*
Ticket: https://github.com/epam/ketcher/issues/4530
Description: Convert Rx connection points created in molecules mode into chem attachment points in macromolecules mode
*/
await turnOnMacromoleculesEditor(page);
await openFileAndAddToCanvasMacro('KET/molecules-with-rglabels.ket', page);
await selectSingleBondTool(page);
await page.getByText('F1').locator('..').hover();
await takeEditorScreenshot(page);
await page.getByText('F2').locator('..').hover();
await takeEditorScreenshot(page);
await page.getByText('F3').locator('..').hover();
await takeEditorScreenshot(page);
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ccb00eb

Please sign in to comment.