Skip to content

Commit

Permalink
Backmerge: #4329 macro cyclic chains disappear from canvas when switc…
Browse files Browse the repository at this point in the history
…hing to sequence mode (#4551)

* - backmerge #4329 - Macro: Cyclic chains disappear from canvas when switching to sequence mode from release/2.20

* - fix cycled linker draw in sequence mode

* -fix fillSubChains for linker

* -fix incorrect bonds render

* - feat update cycled linker screenshot

* -fix removed test

* -fix unnecessary monomer type check in fillSubChains method
  • Loading branch information
baranovdv authored May 10, 2024
1 parent f8327b2 commit 66e8733
Show file tree
Hide file tree
Showing 13 changed files with 6,450 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
selectFlexLayoutModeTool,
clickUndo,
startNewSequence,
moveMouseAway,
waitForRender,
switchSequenceEnteringType,
SequenceType,
Expand Down Expand Up @@ -258,6 +259,25 @@ test.describe('Sequence Mode', () => {
await takeEditorScreenshot(page);
});

test('Open monomers cyclic chains and switch to sequence mode', async ({
page,
}) => {
/*
Related bug: #4329 - Open monomers cyclic chains and switch to sequence mode
*/
const ZOOM_OUT_VALUE = 400;
const SCROLL_DOWN_VALUE = 100;

await openFileAndAddToCanvasMacro('KET/monomers-cyclic-chains.ket', page);
await selectSequenceLayoutModeTool(page);
await takeEditorScreenshot(page);
await selectSnakeLayoutModeTool(page);
await zoomWithMouseWheel(page, ZOOM_OUT_VALUE);
await scrollDown(page, SCROLL_DOWN_VALUE);
await moveMouseAway(page);
await takeEditorScreenshot(page);
});

const testData = [
{
description:
Expand Down
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 66e8733

Please sign in to comment.