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

Autotests: #5876 - tests for cascade and pathway reactions #5891

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2b7cf64
- added tests;
Zhirnoff Oct 31, 2024
0bf93a6
- deleted unused import
Zhirnoff Oct 31, 2024
f8627ba
- added tests;
Zhirnoff Oct 31, 2024
5c9ea5c
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Oct 31, 2024
92c7eaf
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 1, 2024
349cb1f
- added tests;
Zhirnoff Nov 1, 2024
5068a0a
- updated snapshots
Zhirnoff Nov 1, 2024
7d3bf0e
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 1, 2024
2258097
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 2, 2024
c0cb626
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 4, 2024
594302a
- added tests;
Zhirnoff Nov 4, 2024
04b9eab
- added tests;
Zhirnoff Nov 4, 2024
2c8ea1d
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 5, 2024
ff29fe8
- added tests;
Zhirnoff Nov 5, 2024
c460d85
- added tests;
Zhirnoff Nov 5, 2024
9f1a59a
- added comments
Zhirnoff Nov 5, 2024
6d07950
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 6, 2024
9d886fd
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 6, 2024
61f8d98
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 6, 2024
9597dea
- added tests;
Zhirnoff Nov 6, 2024
fb51390
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 7, 2024
807bdfc
- added tests;
Zhirnoff Nov 7, 2024
1ccbdf0
- added tests;
Zhirnoff Nov 7, 2024
17a6cf9
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 8, 2024
11cb6ab
- added tests;
Zhirnoff Nov 8, 2024
b1029f0
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 11, 2024
5310144
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 13, 2024
14d9030
- code refactored
Zhirnoff Nov 14, 2024
501dcec
- code refactored
Zhirnoff Nov 14, 2024
afeb416
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 29, 2024
6dab8b8
- updated snapshots
Zhirnoff Nov 29, 2024
cb2c5bb
- updated snapshots;
Zhirnoff Nov 29, 2024
f8f578b
- updated snapshots;
Zhirnoff Nov 29, 2024
4569d45
Merge branch 'master' of https://github.com/epam/ketcher into 5876-au…
Zhirnoff Nov 29, 2024
677d00b
- code refactored
Zhirnoff Nov 29, 2024
ef09819
- code refactored
Zhirnoff Nov 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
saveToFile,
receiveFileComparisonData,
openFileAndAddToCanvasAsNewProject,
moveMouseAway,
} from '@utils';
import {
clickOnFileFormatDropdown,
Expand Down Expand Up @@ -67,6 +68,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(page, 'CCCCC/CC/C:CC.C(C)CCCCCCCCCC');
Expand All @@ -86,6 +88,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand All @@ -106,6 +109,7 @@ test.describe('SMILES files', () => {
await openFileAndAddToCanvas('Molfiles-V2000/sec-butyl-abr.mol', page);
await getPreviewForSmiles(page, 'Daylight SMILES');
await page.getByText('Warnings').click();
await moveMouseAway(page);
await takeEditorScreenshot(page);
});

Expand All @@ -121,6 +125,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand Down Expand Up @@ -148,6 +153,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(page, 'NOSPFClBrI[H]');
Expand All @@ -171,6 +177,7 @@ test.describe('SMILES files', () => {

await getPreviewForSmiles(page, 'Daylight SMILES');
await page.getByText('Warnings').click();
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand All @@ -196,6 +203,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand Down Expand Up @@ -224,6 +232,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand All @@ -249,6 +258,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand All @@ -273,6 +283,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(page, 'CCCC*CC |$;;alias123;;GH*;;$|');
Expand All @@ -295,6 +306,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand Down Expand Up @@ -322,6 +334,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(page, 'C1C=CC=CC=1>N>C1C=CC=CC=1');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import {
selectAllStructuresOnCanvas,
clickOnCanvas,
selectMacroBond,
selectOpenTool,
} from '@utils';
import {
addSuperatomAttachmentPoint,
Expand Down Expand Up @@ -3056,3 +3057,14 @@ test.describe('Move in collepsed state on Micro canvas: ', () => {
});
}
});

test('Switch to Macro mode, verify that user cant open reactions from RDF RXN V2000/V3000 - error message is displayed', async () => {
/*
Test case: https://github.com/epam/Indigo/issues/2102
Description: In Macro mode, user can't open reactions from RDF RXN V2000/V3000 - error message is displayed.
*/
await selectOpenTool(page);
await openFile('RDF-V3000/rdf-rxn-v3000-cascade-reaction-2-1-1.rdf', page);
await pressButton(page, 'Open as New');
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
Loading