-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:epam/ketcher into 3276-remove-edi…
…t-attachment-point-from-right-click-context-menu
- Loading branch information
Showing
278 changed files
with
2,815 additions
and
1,563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-214 Bytes
(98%)
...amples/ketcher-files.spec.ts-snapshots/opening-inchi-files-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-77 Bytes
(100%)
...s/Examples/ketcher-files.spec.ts-snapshots/opening-molfile-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+244 Bytes
(100%)
...Examples/ketcher-files.spec.ts-snapshots/opening-rnx-files-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+45 Bytes
(100%)
...Examples/ketcher-files.spec.ts-snapshots/opening-smi-files-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.78 KB
(77%)
...es/cdx-files.spec.ts-snapshots/CDX-files-opening-cdx-files-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+51 Bytes
(100%)
...ec.ts-snapshots/CDX-files-opening-cdx-files-from-clipboard-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-74 Bytes
(99%)
...spec.ts-snapshots/CDX-files-opening-cdx-files-with-R-group-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+61 Bytes
(100%)
...L-files-Open-and-Save-file---CML---CML-for-some-structures-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8 Bytes
(100%)
...ots/CML-files-Open-and-Save-file---CML---CML-for-structure-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+17 Bytes
(100%)
...from-I-6b7cc--Chain-string-that-contains-some-triple-bonds-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+133 Bytes
(100%)
...from-I-940ed--Chain-string-that-contains-some-double-bonds-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2 Bytes
(100%)
...from-I-c567a-ing---Cyclic-structure-with-single-bonds-only-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 Bytes
(100%)
...from-I-f623e-erting-correct-string-for-multiple-structures-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-82 Bytes
(99%)
...re-from-InChI-String---Chain-string-with-single-bonds-only-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+104 Bytes
(100%)
...e---Generate-structure-from-InChI-String---Fused-structure-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+492 Bytes
(110%)
...e---Generate-structure-from-InChI-String---Spiro-structure-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+116 Bytes
(100%)
...e-structure-from-InChI-String---Structure-with-stereobonds-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-222 Bytes
(99%)
...e-structure-from-InChI-String---Sugars-without-stereobonds-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+258 Bytes
(100%)
....ts-snapshots/Open-V3000-file-with-R-Groups-with-Fragments-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-17 Bytes
(100%)
...ts/Open-and-Save-file---Open-Save-Markush-files-1-2---open-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+174 Bytes
(100%)
...n-Save-V3000-file-with-atom-and-bond-properties-1-2---open-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.04 KB
(90%)
...-Open-Save-V3000-mol-file-contains-abbreviation-1-2---open-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-83 Bytes
(100%)
...ave-V3000-mol-file-contains-abs-stereochemistry-1-2---open-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-98 Bytes
(99%)
...Open-Save-V3000-mol-file-contains-attached-data-1-2---open-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-245 Bytes
(99%)
...e---Open-Save-file-contains-abs-stereochemistry-1-2---open-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+261 Bytes
(100%)
...en-and-Save-file---Open-Save-file-with-R-Groups-1-2---open-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-60 Bytes
(99%)
...Save-file---V3000-mol-file-contains-Heteroatoms-1-2---open-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-316 Bytes
(98%)
...s.spec.ts-snapshots/Open-MOL-file-with-RBC-SUB-UNC-queries-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-82 Bytes
(99%)
...-with-different-formats-Open-file---Input-InChi-string-1-3-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-82 Bytes
(99%)
...-with-different-formats-Open-file---Input-InChi-string-2-3-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+2 Bytes
(100%)
...-with-different-formats-Open-file---Input-InChi-string-3-3-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-631 Bytes
(97%)
...-files-with-different-formats-Open-file---Input-rxn-string-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-214 Bytes
(98%)
...hots/open-files-with-different-formats-opening-inchi-files-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+244 Bytes
(100%)
...pshots/open-files-with-different-formats-opening-rxn-files-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+45 Bytes
(100%)
...pshots/open-files-with-different-formats-opening-smi-files-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+5 Bytes
(100%)
...---Reaction-from-file-that-contains-Heteroatoms-1-2---open-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.48 KB
(93%)
...--Reaction-from-file-that-contains-abbreviation-1-2---open-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-84 Bytes
(99%)
...-and-Save-file---V3000-rxn-file-contains-Rgroup-1-2---open-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-16 Bytes
(100%)
...ec.ts-snapshots/Open-SDF-V2000-file-and-place-it-on-canvas-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+9 Bytes
(100%)
...ec.ts-snapshots/Open-SDF-V3000-file-and-place-it-on-canvas-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.76 KB
(78%)
...nction-7c4e9-ml-file-with-contracted-and-expanded-function-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
...r-API-setMolecule-getMolecule-Open-CDXML-by-Open-Structure-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+88 Bytes
(100%)
...ecule-getMolecule-Open-save-open-cdxml-file-with-structure-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+31 Bytes
(100%)
...I-setMolecule-getMolecule-Open-structure-in-another-editor-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+31 Bytes
(100%)
...napshots/Tests-for-API-setMolecule-getMolecule-Paste-CDXML-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.72 KB
(84%)
...I-setMolecule-getMolecule-Save-Open-file---Save-cdxml-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-208 Bytes
(98%)
...S-files-Open-Daylight-SMILES-file-with-reagent-above-arrow-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-141 Bytes
(100%)
...ileString-from-V2000-mol-file-contains-abs-stereochemistry-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+178 Bytes
(100%)
...mileString-from-file-that-contains-Cis-Trans-configuration-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-81 Bytes
(99%)
...s-SmileString-from-file-that-contains-alias-and-pseudoatom-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-26 Bytes
(100%)
...-files-SmileString-from-mol-file-that-contains-Heteroatoms-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+173 Bytes
(100%)
...MILES-files-SmileString-from-mol-file-that-contains-Sgroup-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-201 Bytes
(99%)
...iles-SmileString-from-mol-file-that-contains-attached-data-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+120 Bytes
(100%)
...m-mol-file-that-contains-combination-of-different-features-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...ion-consists-of-two-or-more-reaction-arrows-and-structures-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+106 Bytes
(100%)
...ion-consists-of-two-or-more-reaction-arrows-and-structures-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-21 Bytes
(100%)
...file-Save-cyclic-structures-with-a-circle-inside-the-cycle-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-10 Bytes
(100%)
...2000-Save-cyclic-structures-with-a-circle-inside-the-cycle-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-29 Bytes
(100%)
...3000-Save-cyclic-structures-with-a-circle-inside-the-cycle-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+3 Bytes
(100%)
...2000-Save-cyclic-structures-with-a-circle-inside-the-cycle-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-35 Bytes
(100%)
...3000-Save-cyclic-structures-with-a-circle-inside-the-cycle-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+162 Bytes
(100%)
...iles-Save-cyclic-structures-with-a-circle-inside-the-cycle-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-32 Bytes
(100%)
...IP-Tool-Copy-Paste-of-structure-that-contain-stereo-labels-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+797 Bytes
(100%)
...alues-Tools-Calculate-all-canvas-and-change-Decimal-places-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+733 Bytes
(100%)
...alues-Tools-Calculate-all-canvas-and-change-Decimal-places-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+759 Bytes
(100%)
...ec.ts-snapshots/Calculated-Values-Tools-Calculate-reaction-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+822 Bytes
(100%)
...ec.ts-snapshots/Calculated-Values-Tools-Calculate-reaction-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+202 Bytes
(100%)
...shots/Calculated-Values-Tools-Calculate-selected-structure-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+142 Bytes
(100%)
...d-Values-Tools-Calculation-for-several-reaction-components-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+118 Bytes
(100%)
...Tools-Calculation-for-structure-with-S-group---SRU-polymer-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-53 Bytes
(100%)
...lation-for-structure-with-S-group---Superatom-abbreviation-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.06 KB
(98%)
...ools-Calculation-of-exact-mass-for-the-reaction-components-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+26 Bytes
(100%)
...ots/Calculated-Values-Tools-Calculations-for-Rgroup-member-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+21 Bytes
(100%)
...ls-Calculations-for-Rgroup-member-select-part-of-structure-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+581 Bytes
(100%)
...result-dc953-with-existing-but-not-selected-query-features-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+256 Bytes
(100%)
...Molfile--d887f-he-saved-structures-had-the-ABS-Chiral-Flag-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.46 KB
(95%)
...s/Verifying-buttons-on-reaction-am-tool-dropdown-UI-dialog-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+7 Bytes
(100%)
...tion-am-tool-dropdown-Verifying-of-the-correct-automapping-2-chromium-linux.png
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
ketcher-autotests/tests/Macromolecule-editor/Erase-Tool/erase-tool.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { test } from '@playwright/test'; | ||
import { | ||
addMonomerToCanvas, | ||
selectEraseTool, | ||
selectSingleBondTool, | ||
takeEditorScreenshot, | ||
} from '@utils'; | ||
import { turnOnMacromoleculesEditor } from '@utils/macromolecules'; | ||
import { bondTwoMonomers } from '@utils/macromolecules/polymerBond'; | ||
/* eslint-disable no-magic-numbers */ | ||
|
||
test.describe('Erase Tool', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(''); | ||
await turnOnMacromoleculesEditor(page); | ||
}); | ||
test.skip('Delete monomer bonded with another monomers', async ({ page }) => { | ||
/* | ||
Test case: #2370 - "Erase" tool for macromolecules editor | ||
Description: Erase Tool | ||
*/ | ||
|
||
// Create 4 peptides on canvas | ||
const MONOMER_NAME = 'Tza___3-thiazolylalanine'; | ||
const MONOMER_ALIAS = 'Tza'; | ||
await addMonomerToCanvas(page, MONOMER_NAME, 300, 300); | ||
await addMonomerToCanvas(page, MONOMER_NAME, 400, 400); | ||
await addMonomerToCanvas(page, MONOMER_NAME, 500, 500); | ||
await addMonomerToCanvas(page, MONOMER_NAME, 500, 200); | ||
|
||
// Get 4 peptides locators | ||
const peptides = await page.getByText(MONOMER_ALIAS).locator('..'); | ||
const peptide1 = peptides.nth(0); | ||
const peptide2 = peptides.nth(1); | ||
const peptide3 = peptides.nth(2); | ||
const peptide4 = peptides.nth(3); | ||
|
||
// Select bond tool | ||
await selectSingleBondTool(page); | ||
|
||
// Create bonds between peptides | ||
await bondTwoMonomers(page, peptide1, peptide2); | ||
await bondTwoMonomers(page, peptide3, peptide2); | ||
await bondTwoMonomers(page, peptide3, peptide4); | ||
|
||
await takeEditorScreenshot(page); | ||
|
||
await selectEraseTool(page); | ||
|
||
// Delete peptide linked with two other peptides by bonds | ||
await peptide3.click(); | ||
|
||
await takeEditorScreenshot(page); | ||
}); | ||
}); |
Binary file added
BIN
+8.95 KB
...ts/Erase-Tool-Delete-monomer-bonded-with-another-monomers-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+7.59 KB
...ts/Erase-Tool-Delete-monomer-bonded-with-another-monomers-2-chromium-darwin.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
...ests/tests/Macromolecule-editor/Rectangle-Selection-Tool/rectangle-selection-tool.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
import { test } from '@playwright/test'; | ||
import { | ||
addMonomerToCanvas, | ||
dragMouseTo, | ||
selectEraseTool, | ||
selectRectangleArea, | ||
selectRectangleSelectionTool, | ||
selectSingleBondTool, | ||
takeEditorScreenshot, | ||
} from '@utils'; | ||
import { turnOnMacromoleculesEditor } from '@utils/macromolecules'; | ||
import { bondTwoMonomers } from '@utils/macromolecules/polymerBond'; | ||
/* eslint-disable no-magic-numbers */ | ||
|
||
test.describe('Rectangle Selection Tool', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(''); | ||
await turnOnMacromoleculesEditor(page); | ||
}); | ||
test.skip('Select monomer and bonds and then erase', async ({ page }) => { | ||
/* | ||
Test case: #2360 - "Select" tool for Macromolecules editor | ||
Description: Rectangle Selection Tool | ||
*/ | ||
|
||
// Create 4 peptides on canvas | ||
const MONOMER_NAME = 'Tza___3-thiazolylalanine'; | ||
const MONOMER_ALIAS = 'Tza'; | ||
await addMonomerToCanvas(page, MONOMER_NAME, 300, 300); | ||
await addMonomerToCanvas(page, MONOMER_NAME, 400, 400); | ||
await addMonomerToCanvas(page, MONOMER_NAME, 500, 500); | ||
await addMonomerToCanvas(page, MONOMER_NAME, 500, 200); | ||
|
||
// Get 4 peptides locators | ||
const peptides = await page.getByText(MONOMER_ALIAS).locator('..'); | ||
const peptide1 = peptides.nth(0); | ||
const peptide2 = peptides.nth(1); | ||
const peptide3 = peptides.nth(2); | ||
const peptide4 = peptides.nth(3); | ||
|
||
// Select bond tool | ||
await selectSingleBondTool(page); | ||
|
||
// Create bonds between peptides | ||
await bondTwoMonomers(page, peptide1, peptide2); | ||
await bondTwoMonomers(page, peptide3, peptide2); | ||
await bondTwoMonomers(page, peptide3, peptide4); | ||
|
||
await page.screenshot({ | ||
path: 'tests/Macromolecule-editor/screenshots/rectangle-selection-tool.png', | ||
}); | ||
|
||
await selectRectangleSelectionTool(page); | ||
|
||
// Coordinates for rectangle selection | ||
const startX = 100; | ||
const startY = 100; | ||
const endX = 500; | ||
const endY = 500; | ||
|
||
await selectRectangleArea(page, startX, startY, endX, endY); | ||
|
||
await page.screenshot({ | ||
path: 'tests/Macromolecule-editor/screenshots/rectangle-selection-tool2.png', | ||
}); | ||
|
||
// Erase selected elements | ||
await selectEraseTool(page); | ||
|
||
await page.screenshot({ | ||
path: 'tests/Macromolecule-editor/screenshots/rectangle-selection-tool3.png', | ||
}); | ||
}); | ||
|
||
test.skip('Move monomer bonded with another monomers', async ({ page }) => { | ||
/* | ||
Test case: #2367 - move items on the canvas | ||
Description: check ability to move items on the canvas | ||
*/ | ||
|
||
// Choose peptide | ||
await page.getByText('Tza').click(); | ||
|
||
// Create 4 peptides on canvas | ||
await page.mouse.click(300, 300); | ||
await page.mouse.click(400, 400); | ||
await page.mouse.click(500, 500); | ||
await page.mouse.click(600, 600); | ||
|
||
// Get 4 peptides locators | ||
const peptides = await page.getByText('Tza').locator('..'); | ||
const peptide1 = peptides.nth(0); | ||
const peptide2 = peptides.nth(1); | ||
const peptide3 = peptides.nth(2); | ||
const peptide4 = peptides.nth(3); | ||
|
||
// Select bond tool | ||
await selectSingleBondTool(page); | ||
|
||
// Create bonds between peptides | ||
await bondTwoMonomers(page, peptide1, peptide2); | ||
await bondTwoMonomers(page, peptide3, peptide2); | ||
await bondTwoMonomers(page, peptide3, peptide4); | ||
|
||
await takeEditorScreenshot(page); | ||
|
||
// Move selected monomer | ||
await selectRectangleSelectionTool(page); | ||
await page.mouse.move(400, 400); | ||
await dragMouseTo(500, 500, page); | ||
await page.mouse.move(400, 400); | ||
await dragMouseTo(200, 400, page); | ||
|
||
await takeEditorScreenshot(page); | ||
}); | ||
}); |
Binary file added
BIN
+10.7 KB
...e-Selection-Tool-Move-monomer-bonded-with-another-monomers-1-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+14.2 KB
...e-Selection-Tool-Move-monomer-bonded-with-another-monomers-2-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-4.13 KB
(92%)
...ests/tests/Macromolecule-editor/screenshots/add-custom-preset-add-to-canvas.png
Oops, something went wrong.
Binary file modified
BIN
-3.85 KB
(92%)
ketcher-autotests/tests/Macromolecule-editor/screenshots/add-custom-preset-add.png
Oops, something went wrong.
Binary file modified
BIN
-3.27 KB
(93%)
...utotests/tests/Macromolecule-editor/screenshots/add-custom-preset-duplicate.png
Oops, something went wrong.
Binary file modified
BIN
-4 KB
(92%)
...totests/tests/Macromolecule-editor/screenshots/add-default-preset-to-canvas.png
Oops, something went wrong.
Binary file modified
BIN
-2.99 KB
(91%)
ketcher-autotests/tests/Macromolecule-editor/screenshots/chem-add-to-canvas.png
Oops, something went wrong.
Binary file modified
BIN
-1.01 KB
(97%)
ketcher-autotests/tests/Macromolecule-editor/screenshots/chem-library.png
Oops, something went wrong.
Binary file modified
BIN
-3.97 KB
(91%)
ketcher-autotests/tests/Macromolecule-editor/screenshots/default-presets.png
Oops, something went wrong.
Binary file modified
BIN
-2.49 KB
(94%)
...her-autotests/tests/Macromolecule-editor/screenshots/peptides-add-to-canvas.png
Oops, something went wrong.
Binary file modified
BIN
-2.66 KB
(92%)
...er-autotests/tests/Macromolecule-editor/screenshots/polymer-bond-tool-chem1.png
Oops, something went wrong.
Binary file modified
BIN
-2.93 KB
(91%)
...er-autotests/tests/Macromolecule-editor/screenshots/polymer-bond-tool-chem2.png
Oops, something went wrong.
Binary file modified
BIN
+258 Bytes
(100%)
ketcher-autotests/tests/Macromolecule-editor/screenshots/polymer-bond-tool.png
Oops, something went wrong.
Binary file modified
BIN
+281 Bytes
(100%)
ketcher-autotests/tests/Macromolecule-editor/screenshots/polymer-bond-tool2.png
Oops, something went wrong.
Binary file modified
BIN
-1.27 KB
(97%)
ketcher-autotests/tests/Macromolecule-editor/screenshots/polymer-bond-tool3.png
Oops, something went wrong.
Binary file added
BIN
+41.3 KB
...r-autotests/tests/Macromolecule-editor/screenshots/rectangle-selection-tool.png
Oops, something went wrong.
Binary file added
BIN
+46.1 KB
...-autotests/tests/Macromolecule-editor/screenshots/rectangle-selection-tool2.png
Oops, something went wrong.
Binary file added
BIN
+38.6 KB
...-autotests/tests/Macromolecule-editor/screenshots/rectangle-selection-tool3.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-224 Bytes
(98%)
...ls-Multiple-Non-default-Reaction-Arrows---Saving-open-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-130 Bytes
(99%)
...s-tools-Non-default-Reaction-Arrow-Tool---Saving-open-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+68 Bytes
(100%)
...-Save-multiple-reaction-arrows---All-formats-open-cml-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-130 Bytes
(99%)
...ave-multiple-reaction-arrows---All-formats-open-cxsmi-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-130 Bytes
(99%)
...-Save-multiple-reaction-arrows---All-formats-open-smi-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-192 Bytes
(98%)
...s-and-Arrows-tools-Save-multiple-reaction-arrows-open-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+66 Bytes
(100%)
...ve-non-default-reaction-arrows---All-formats-open-cml-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-130 Bytes
(99%)
...-non-default-reaction-arrows---All-formats-open-cxsmi-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-130 Bytes
(99%)
...ve-non-default-reaction-arrows---All-formats-open-smi-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+325 Bytes
(100%)
...t-Open-File-CDXML-with-molecules-above-and-below-one-arrow-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-6 Bytes
(100%)
...ents-CDXML-format-Open-File-CDXML-with-multistep-reactions-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.18 KB
(90%)
...-CDXML-format-Open-File-CDXML-with-reagent-NH3-above-arrow-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1.2 KB
(90%)
...Reagents-CDXML-format-Paste-from-clipboard-in-CDXML-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.07 KB
(110%)
...ots/Reagents-RXN-format-Open-from-file-in-RXN-V2000-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1.28 KB
(110%)
...ots/Reagents-RXN-format-Open-from-file-in-RXN-V3000-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-343 Bytes
(98%)
...agents-RXN-format-Paste-from-clipboard-in-RXN-V2000-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-530 Bytes
(97%)
...agents-RXN-format-Paste-from-clipboard-in-RXN-V3000-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+91 Bytes
(100%)
...nts-SMARTS-format-Open-from-file-in-Daylight-SMARTS-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+80 Bytes
(100%)
...ARTS-format-Paste-from-clipboard-in-Daylight-SMARTS-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-61 Bytes
(99%)
...opened-with-Not-List-atoms-saved-in-Daylight-SMARTS-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+105 Bytes
(100%)
...nts-SMILES-format-Open-from-file-in-Daylight-SMILES-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+104 Bytes
(100%)
...nts-SMILES-format-Open-from-file-in-Extended-SMILES-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+168 Bytes
(100%)
...ILES-format-Paste-from-clipboard-in-Daylight-SMILES-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+105 Bytes
(100%)
...ILES-format-Paste-from-clipboard-in-Extended-SMILES-format-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-704 Bytes
(94%)
...e-above-arrow-Open-File-CDXML-with-reagent-NH3-above-arrow-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-312 Bytes
(98%)
...ove-arrow-Open-File-RXN-v3000-with-reagent-NH3-above-arrow-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-137 Bytes
(99%)
...e-below-arrow-Open-File-CDXML-with-reagent-HCl-below-arrow-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-530 Bytes
(97%)
...low-arrow-Open-File-RXN-v3000-with-reagent-HCl-below-arrow-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+156 Bytes
(100%)
...ts-snapshots/Attachment-Point-Tool-Attachment-point-dialog-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+481 Bytes
(100%)
...snapshots/Attachment-Point-Tool-Click-and-Save-as-rxn-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
....ts-snapshots/Attachment-Point-Tool-Save-as-mol-file-V3000-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(100%)
...shots/R-Group-Label-Tool-Move-Structure-with-R-Group-label-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+140 Bytes
(100%)
...c.ts-snapshots/R-Group-Open-smi-file-with-R-Group-features-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+40 Bytes
(100%)
...ol-Open-mol-file-with-Data-S-Group-and-save-it-as-cml-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...-Add-Query-specific---Unsaturated-in-modal-and-press-Apply-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
...nversion-Inverts-and-Exact-change-in-modal-and-press-Apply-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+30 Bytes
(100%)
...operties-All-atom-properties-information-saved-as-rxn-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...om-Properties-Reaction-flags-information-saved-as-mol-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+410 Bytes
(100%)
...napshots/Atom-Properties-Ring-bonds-count---Representation-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-34 Bytes
(100%)
...erties-Save-structure-with-Isotope-information-as-mol-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+33 Bytes
(100%)
...h-Query-specific---Ring-bond-count-information-as-mol-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+36 Bytes
(100%)
...erties-Save-structure-with-Radical-information-as-mol-file-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
...Typing-in-isotope---several-atoms-through-Label-Edit-modal-1-chromium-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-938 Bytes
(88%)
...-V3000-file-with-contracted-and-expanded-functional-groups-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(100%)
...ection-highlight-appears-immediately-after-hover-over-text-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+9 Bytes
(100%)
...ck-a-warning-message-about-localStorage-to-template-window-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+17 Bytes
(100%)
...r-Templates-on-canvas-Empty-Molecule-name-field-validation-1-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+12 Bytes
(100%)
...-Templates-on-canvas-Molecule-Name-field-length-validation-1-chromium-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.