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: #3849 - Auromatizing/Dearomatizing works correct for query features #4169

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
saveToFile,
waitForSpinnerFinishedWork,
waitForPageInit,
openFileAndAddToCanvasAsNewProject,
} from '@utils';
import { getCml, getMolfile, getRxn, getSmiles } from '@utils/formats';

Expand Down Expand Up @@ -378,4 +379,105 @@ test.describe('Aromatize/Dearomatize Tool', () => {

expect(cmlFile).toEqual(cmlFileExpected);
});

test('User can aromatize molecules with query parameters (not custom query, but only ordinary).', async ({
page,
}) => {
/*
Test case: https://github.com/epam/ketcher/issues/3849 - Test case 1
Description: User can aromatize molecules with query parameters (not custom query, but only ordinary).
1. Clear canvas
2. Open as New Project: AllPossibleQueryFeaturesWithOutCustomQuery.ket
3. Press Aromatize button
4. Validate canvas
IMPORTANT: Result of execution is incorrect because of https://github.com/epam/ketcher/issues/3529 issue.
Screenshots should be updated after fix.
*/
await openFileAndAddToCanvasAsNewProject(
'KET/all-possible-query-features-with-out-custom-query.ket',
page,
);
await waitForSpinnerFinishedWork(page, async () => {
await selectTopPanelButton(TopPanelButton.Aromatize, page);
});
});

test('User can DEaromatize molecules with query parameters (not custom query, but only ordinary).', async ({
page,
}) => {
/*
Test case: https://github.com/epam/ketcher/issues/3849 - Test case 2
Description: User can aromatize molecules with query parameters (not custom query, but only ordinary).
1. Clear canvas
2. Open as New Project: AllPossibleQueryFeaturesWithOutCustomQuery.ket
3. Press Aromatize button
4. Press Dearomatize button
5. Validate canvas
IMPORTANT: Result of execution is incorrect because of https://github.com/epam/ketcher/issues/3529 issue.
IMPORTANT: Result of execution is incorrect because of https://github.com/epam/Indigo/issues/1757 issue.
Screenshots should be updated after fix.
*/
await openFileAndAddToCanvasAsNewProject(
'KET/all-possible-query-features-with-out-custom-query.ket',
page,
);
await waitForSpinnerFinishedWork(page, async () => {
await selectTopPanelButton(TopPanelButton.Aromatize, page);
});
await waitForSpinnerFinishedWork(page, async () => {
await selectTopPanelButton(TopPanelButton.Dearomatize, page);
});
});

test('User can aromatize molecules with custom query parameters.', async ({
page,
}) => {
/*
Test case: https://github.com/epam/ketcher/issues/3849 - Test case 3
Description: User can aromatize molecules with query parameters (not custom query, but only ordinary).
1. Clear canvas
2. Open as New Project: AllPossibleQueryFeaturesWithOutCustomQuery.ket
3. Press Aromatize button
4. Validate canvas
IMPORTANT: Result of execution is incorrect because of https://github.com/epam/Indigo/issues/1753 issue.
IMPORTANT: Result of execution is incorrect because of https://github.com/epam/Indigo/issues/1754 issue.
IMPORTANT: Result of execution is incorrect because of https://github.com/epam/Indigo/issues/1759 issue.
Screenshots should be updated after fix.
*/
await openFileAndAddToCanvasAsNewProject(
'KET/all-possible-custom-query-features.ket',
page,
);
await waitForSpinnerFinishedWork(page, async () => {
await selectTopPanelButton(TopPanelButton.Aromatize, page);
});
});

test('User can Deuromatize molecules with custom query parameters.', async ({
page,
}) => {
/*
Test case: https://github.com/epam/ketcher/issues/3849 - Test case 4
Description: User can aromatize molecules with query parameters (not custom query, but only ordinary).
1. Clear canvas
2. Open as New Project: AllPossibleQueryFeaturesWithOutCustomQuery.ket
3. Press Aromatize button
4. Press Dearomatize button
4. Validate canvas
IMPORTANT: Result of execution is incorrect because of https://github.com/epam/Indigo/issues/1753 issue.
IMPORTANT: Result of execution is incorrect because of https://github.com/epam/Indigo/issues/1754 issue.
IMPORTANT: Result of execution is incorrect because of https://github.com/epam/Indigo/issues/1759 issue.
Screenshots should be updated after fix.
*/
await openFileAndAddToCanvasAsNewProject(
'KET/all-possible-custom-query-features.ket',
page,
);
await waitForSpinnerFinishedWork(page, async () => {
await selectTopPanelButton(TopPanelButton.Aromatize, page);
});
await waitForSpinnerFinishedWork(page, async () => {
await selectTopPanelButton(TopPanelButton.Dearomatize, page);
});
});
});
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
Loading