Skip to content

Commit

Permalink
Autotests: #4287 - Verification of Micro-Macro switching (#4577)
Browse files Browse the repository at this point in the history
* - added tests to 'macro-micro-switcher';
- added expected snapshots

* - added tests;
- added 1 test file;
- added expected snapshots

* - added tests;
- added expected snapshots

* - added tests;
- added 2 test files;
- added expected snapshots

* - added tests;
- added expected snapshots

* - added tests;
- added expected snapshots

* - added 'maxDiffPixelRatio' to 1 test

* - updated snapshots
  • Loading branch information
Zhirnoff authored May 13, 2024
1 parent 6dbcb64 commit 0e2a56b
Show file tree
Hide file tree
Showing 61 changed files with 1,670 additions and 3 deletions.

Large diffs are not rendered by default.

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
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
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
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
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
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
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
clickUndo,
dragMouseTo,
hideMonomerPreview,
moveMouseAway,
openFileAndAddToCanvasMacro,
selectRectangleArea,
selectSingleBondTool,
Expand Down Expand Up @@ -405,4 +406,28 @@ test.describe('Undo-Redo tests', () => {
await page.getByTestId('redo').click();
await takeLeftToolbarMacromoleculeScreenshot(page);
});

test('Press Undo/Redo after copy/pasting Sugar-Base-Phosphate structure on canvas', async ({
page,
}) => {
/*
Test case: Undo-Redo tests
Description: Copy/Paste working as expected and Undo/Redo
*/
const x = 200;
const y = 200;
await page.getByTestId('RNA-TAB').click();
await page.getByTestId('C_C_R_P').click();
await clickInTheMiddleOfTheScreen(page);
await page.keyboard.press('Control+a');
await page.keyboard.press('Control+c');
await page.mouse.move(x, y);
await page.keyboard.press('Control+v');
await moveMouseAway(page);
await takeEditorScreenshot(page);
await page.getByTestId('undo').click();
await takeEditorScreenshot(page);
await page.getByTestId('redo').click();
await takeEditorScreenshot(page);
});
});
Loading

0 comments on commit 0e2a56b

Please sign in to comment.