Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4329 - Macro: Cyclic chains disappear from canvas when switching to sequence mode #4426

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
selectSnakeLayoutModeTool,
selectFlexLayoutModeTool,
clickUndo,
moveMouseAway,
} from '@utils';
import { turnOnMacromoleculesEditor } from '@utils/macromolecules';

Expand Down Expand Up @@ -211,4 +212,23 @@ test.describe('Sequence Mode', () => {
await selectSnakeLayoutModeTool(page);
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);
});
});
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
Loading