-
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 https://github.com/epam/ketcher into 3475-ma…
…cro-change-rna-preset-configuration
- Loading branch information
Showing
222 changed files
with
4,865 additions
and
827 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
Binary file added
BIN
+16.5 KB
...tropis-42d07-e-not-lost-when-opening-saved-Extended-SMILES-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 added
BIN
+31.9 KB
...shots/SMILES-files-Open-SMILE-file-with-S-Group-Properties-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 added
BIN
+7.31 KB
...shots/SMILES-files-Open-SMILE-file-with-S-Group-Properties-2-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 added
BIN
+11.2 KB
...Single-d734c-is-preserved-after-pasting-a-SMILES-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 added
BIN
+11.4 KB
...s-Stereobond-is-preserved-after-pasting-a-SMILES-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
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
-3.56 KB
(88%)
...ry.spec.ts-snapshots/Open-Ketcher-Open-Chem-tab-in-library-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
-278 Bytes
(95%)
...avorites-switch-to-Favorites-tab-and-drag-it-to-the-canvas-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
+10.6 KB
(200%)
...hots/Ket-Deserialize-Open-ket-file-with-monomers-and-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.
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
-278 Bytes
(95%)
....ts-snapshots/Peptide-Select-peptide-and-drag-it-to-canvas-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
-22 Bytes
(100%)
...t-rotation-Select-monomer-and-bonds-and-then-hover-monomer-2-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
+134 Bytes
(100%)
...shots/Macromolecules-default-presets-Add-Guanine-to-canvas-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.93 KB
(93%)
...molecules-default-presets-Check-Guanine-in-default-presets-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
-3.68 KB
(94%)
...s/Macromolecules-delete-RNA-presets-Delete-copy-RNA-preset-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
-3.37 KB
(92%)
...s/Macromolecules-delete-RNA-presets-Delete-copy-RNA-preset-2-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.88 KB
(94%)
...es-delete-RNA-presets-Should-not-delete-default-RNA-preset-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
-3.6 KB
(89%)
...ayout.spec.ts-snapshots/RNA-layout-Each-panel-is-collapsed-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
-3.2 KB
(91%)
...pec.ts-snapshots/RNA-layout-RNA-Builder-panel-is-collapsed-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
-747 Bytes
(95%)
...gle-Selection-Tool-Select-monomer-and-bonds-and-then-erase-2-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
-3.17 KB
(94%)
...tests/Macromolecule-editor/screenshots/check-finding-right-chain-sequence-1.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
-3.37 KB
(93%)
...tests/Macromolecule-editor/screenshots/check-finding-right-chain-sequence-2.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
-3.97 KB
(92%)
...r-autotests/tests/Macromolecule-editor/screenshots/check-snake-mode-arrange.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
-3.03 KB
(94%)
...s/tests/Macromolecule-editor/screenshots/create-snake-bond-between-peptides.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions
84
ketcher-autotests/tests/Reagents/CDX-Format/reagents-cdx-format.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,84 @@ | ||
import { Page, expect, test } from '@playwright/test'; | ||
import { | ||
takeEditorScreenshot, | ||
openFileAndAddToCanvas, | ||
waitForPageInit, | ||
saveToFile, | ||
receiveFileComparisonData, | ||
pasteFromClipboardAndAddToCanvas, | ||
FILE_TEST_DATA, | ||
clickInTheMiddleOfTheScreen, | ||
selectTopPanelButton, | ||
TopPanelButton, | ||
} from '@utils'; | ||
import { getCdx } from '@utils/formats'; | ||
|
||
async function saveFileAsCdxFormat(page: Page) { | ||
await selectTopPanelButton(TopPanelButton.Save, page); | ||
await page.getByRole('button', { name: 'MDL Rxnfile V2000' }).click(); | ||
await page.getByRole('option', { name: 'CDX', exact: true }).click(); | ||
} | ||
|
||
test.describe('Reagents CDX format', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await waitForPageInit(page); | ||
}); | ||
|
||
test.afterEach(async ({ page }) => { | ||
await takeEditorScreenshot(page); | ||
}); | ||
|
||
test('File saves in "CDX" format', async ({ page }) => { | ||
/* | ||
Test case: EPMLSOPKET-4709 | ||
Description: File saved in format (e.g. "ketcher.cdx") | ||
*/ | ||
|
||
await openFileAndAddToCanvas('KET/two-reagents-above-and-below.ket', page); | ||
const expectedFile = await getCdx(page); | ||
await saveToFile( | ||
'CDX/two-reagents-above-and-below-expected.cdx', | ||
expectedFile, | ||
); | ||
|
||
const { fileExpected: cdxFileExpected, file: cdxFile } = | ||
await receiveFileComparisonData({ | ||
page, | ||
expectedFileName: | ||
'tests/test-data/CDX/two-reagents-above-and-below-expected.cdx', | ||
}); | ||
|
||
expect(cdxFile).toEqual(cdxFileExpected); | ||
}); | ||
|
||
test('Open file in "CDX" format', async ({ page }) => { | ||
/* | ||
Test case: EPMLSOPKET-4711 | ||
Description: File open in CDX format. | ||
*/ | ||
await openFileAndAddToCanvas('CDX/two-reagents.cdx', page); | ||
}); | ||
|
||
test('Paste from clipboard in "CDX" format', async ({ page }) => { | ||
/* | ||
Test case: EPMLSOPKET-4710 | ||
Description: Reagents 'NH3' displays above reaction arrow and HCl below. | ||
*/ | ||
await pasteFromClipboardAndAddToCanvas( | ||
page, | ||
FILE_TEST_DATA.reagentsBelowAndAboveArrowCdx, | ||
); | ||
await clickInTheMiddleOfTheScreen(page); | ||
}); | ||
|
||
test('Detection molecule as reagent and write reagent information in CDX format in "Preview" tab', async ({ | ||
page, | ||
}) => { | ||
/* | ||
Test case: EPMLSOPKET-4707, EPMLSOPKET-4708 | ||
Description: 'Can not display binary content' in Preview window. | ||
*/ | ||
await openFileAndAddToCanvas('CDX/two-reagents.cdx', page); | ||
await saveFileAsCdxFormat(page); | ||
}); | ||
}); |
Binary file added
BIN
+27.6 KB
...-as-reag-0fb16-nt-information-in-CDX-format-in-Preview-tab-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 added
BIN
+10.6 KB
....ts-snapshots/Reagents-CDX-format-File-saves-in-CDX-format-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 added
BIN
+12.6 KB
...c.ts-snapshots/Reagents-CDX-format-Open-file-in-CDX-format-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 added
BIN
+12.6 KB
...ots/Reagents-CDX-format-Paste-from-clipboard-in-CDX-format-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
Oops, something went wrong.