Skip to content

Commit

Permalink
- backmerge #4329 - Macro: Cyclic chains disappear from canvas when s…
Browse files Browse the repository at this point in the history
…witching to sequence mode from release/2.20
  • Loading branch information
baranovdv committed Apr 29, 2024
1 parent 65a15fa commit 24f886d
Show file tree
Hide file tree
Showing 12 changed files with 6,510 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
selectSnakeLayoutModeTool,
selectFlexLayoutModeTool,
clickUndo,
startNewSequence,
moveMouseAway,
} from '@utils';
import { turnOnMacromoleculesEditor } from '@utils/macromolecules';

Expand Down Expand Up @@ -213,18 +213,22 @@ test.describe('Sequence Mode', () => {
await takeEditorScreenshot(page);
});

test('Open modified RNA in sequence mode', async ({ page }) => {
test('Open monomers cyclic chains and switch to sequence mode', async ({
page,
}) => {
/*
Test case: #3734
Description: Displaying modified nucleotide chains in sequence representation
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 openFileAndAddToCanvasMacro(
'KET/modified-nucleotide-chain.ket',
page,
);
await takeEditorScreenshot(page);
await startNewSequence(page);
await selectSnakeLayoutModeTool(page);
await zoomWithMouseWheel(page, ZOOM_OUT_VALUE);
await scrollDown(page, SCROLL_DOWN_VALUE);
await moveMouseAway(page);
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

0 comments on commit 24f886d

Please sign in to comment.