Skip to content

Commit

Permalink
- updated screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
rrodionov91 committed Aug 6, 2024
1 parent 493fd83 commit f38b868
Show file tree
Hide file tree
Showing 25 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
toggleNucleotidesAccordion,
togglePhosphatesAccordion,
} from '@utils/macromolecules/rnaBuilder';
import { clickOnSequenceSymbol } from '@utils/macromolecules/sequence';

async function pasteFromClipboardAndAddToMacromoleculesCanvas(
page: Page,
Expand Down Expand Up @@ -392,7 +393,7 @@ test.describe('Import-Saving .idt Files', () => {
`A*C*G*C*G*C*G*A*C*T*A*T*A*C*G*C*G*C*C*T`,
);
await selectSequenceLayoutModeTool(page);
await page.getByText('G').locator('..').first().click({ button: 'right' });
await clickOnSequenceSymbol(page, 'G', { button: 'right' });
await page.getByTestId('edit_sequence').click();
await enterSequence(page, 'ttt');
await page.keyboard.press('Escape');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
selectSingleBondTool,
waitForPageInit,
takeEditorScreenshot,
moveMouseAway,
} from '@utils';
import { turnOnMacromoleculesEditor } from '@utils/macromolecules';
import { bondTwoMonomers } from '@utils/macromolecules/polymerBond';
Expand Down Expand Up @@ -71,6 +72,7 @@ test.describe('Check attachment point rotation', () => {
await bondTwoMonomers(page, peptide3, peptide4);

// Hover 1th peptide
await moveMouseAway(page);
await peptide1.hover();

// Get rid of flakiness because of preview
Expand All @@ -79,6 +81,7 @@ test.describe('Check attachment point rotation', () => {
await takeEditorScreenshot(page);

// Hover 2nd peptide
await moveMouseAway(page);
await peptide2.hover();

// Get rid of flakiness because of preview
Expand Down Expand Up @@ -123,6 +126,7 @@ test.describe('Check attachment point rotation', () => {
await bondTwoMonomers(page, peptide1, peptide2);

// Hover 1th peptide
await moveMouseAway(page);
await peptide1.hover();

await takeEditorScreenshot(page);
Expand All @@ -134,6 +138,7 @@ test.describe('Check attachment point rotation', () => {

await selectSingleBondTool(page);
// Hover 1th peptide
await moveMouseAway(page);
await peptide1.hover();
await page.getByTestId('polymer-library-preview');
await takeEditorScreenshot(page);
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
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 @@ -711,11 +711,13 @@ test.describe('Snake Bond Tool', () => {
`KET/peptides-flex-chain.ket`,
page,
);
scrollUp(page, 200);
await scrollUp(page, 200);
await moveMouseAway(page);
await takeEditorScreenshot(page);
await page.getByText('meS').locator('..').first().hover();
await dragMouseTo(x, y, page);
await page.mouse.click(x2, y2);
await moveMouseAway(page);
await takeEditorScreenshot(page);
});

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
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.
1 change: 1 addition & 0 deletions ketcher-autotests/tests/utils/macromolecules/sequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export async function clickOnSequenceSymbol(
symbolText,
clickOptions?.nthNumber,
);
await symbolLocator.hover();
await symbolLocator.click(clickOptions);
}

Expand Down

0 comments on commit f38b868

Please sign in to comment.