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

Updated indigo to 1.26.0-dev.2 #5885

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
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 @@ -314,35 +314,34 @@ test.describe('CDX files without screenshots', () => {
expect(cdxFile).toEqual(cdxFileExpected);
});

test.fail(
'Validate that the schema with retrosynthetic, angel arrows and plus could be saved to Cdx file and loaded back',
async ({ page }) => {
/*
test('Validate that the schema with retrosynthetic, angel arrows and plus could be saved to Cdx file and loaded back', async ({
page,
}) => {
/*
* IMPORTANT: Test fails because we have bug https://github.com/epam/Indigo/issues/2205
Test case: #2097
Description: Validate that schema with retrosynthetic arrow could be saved to Cdx file and loaded back
*/

await openFileAndAddToCanvas(
'KET/schema-with-retrosynthetic-angel-arrows-and-plus.ket',
page,
);
const expectedFile = await getCdx(page);
await saveToFile(
'CDX/schema-with-retrosynthetic-angel-arrows-and-plus.cdx',
expectedFile,
);
await openFileAndAddToCanvas(
'KET/schema-with-retrosynthetic-angel-arrows-and-plus.ket',
page,
);
const expectedFile = await getCdx(page);
await saveToFile(
'CDX/schema-with-retrosynthetic-angel-arrows-and-plus.cdx',
expectedFile,
);

const { fileExpected: cdxFileExpected, file: cdxFile } =
await receiveFileComparisonData({
page,
expectedFileName:
'tests/test-data/CDX/schema-with-retrosynthetic-angel-arrows-and-plus.cdx',
});
const { fileExpected: cdxFileExpected, file: cdxFile } =
await receiveFileComparisonData({
page,
expectedFileName:
'tests/test-data/CDX/schema-with-retrosynthetic-angel-arrows-and-plus.cdx',
});

expect(cdxFile).toEqual(cdxFileExpected);
},
);
expect(cdxFile).toEqual(cdxFileExpected);
});

test('Validate that the schema with two retrosynthetic arrows could be saved to Cdx file and loaded back', async ({
page,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,43 +370,40 @@ test.describe('CML files', () => {
},
);

test(
'Validate that the simple schema with retrosynthetic, angel arrows and plus could be saved to CML file and loaded back',
{ tag: ['@IncorrectResultBecauseOfBug'] },
async ({ page }) => {
test.fail();
/*
test('Validate that the simple schema with retrosynthetic, angel arrows and plus could be saved to CML file and loaded back', async ({
page,
}) => {
/*
Test case: #2071
Description: Validate that the schema with retrosynthetic arrow could be saved to CML file and loaded back
Test working not in proper way because we have bug https://github.com/epam/Indigo/issues/2206
After fix we need update file and screenshot.
*/

await openFileAndAddToCanvas(
'KET/schema-with-retrosynthetic-angel-arrows-and-plus.ket',
await openFileAndAddToCanvas(
'KET/schema-with-retrosynthetic-angel-arrows-and-plus.ket',
page,
);
const expectedFile = await getCml(page);
await saveToFile(
'CML/schema-with-retrosynthetic-angel-arrows-and-plus.cml',
expectedFile,
);
const { fileExpected: cmlFileExpected, file: cmlFile } =
await receiveFileComparisonData({
page,
);
const expectedFile = await getCml(page);
await saveToFile(
'CML/schema-with-retrosynthetic-angel-arrows-and-plus.cml',
expectedFile,
);
const { fileExpected: cmlFileExpected, file: cmlFile } =
await receiveFileComparisonData({
page,
expectedFileName:
'tests/test-data/CML/schema-with-retrosynthetic-angel-arrows-and-plus.cml',
});
expectedFileName:
'tests/test-data/CML/schema-with-retrosynthetic-angel-arrows-and-plus.cml',
});

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

await openFileAndAddToCanvasAsNewProject(
'CML/schema-with-retrosynthetic-angel-arrows-and-plus.cml',
page,
);
await takeEditorScreenshot(page);
},
);
await openFileAndAddToCanvasAsNewProject(
'CML/schema-with-retrosynthetic-angel-arrows-and-plus.cml',
page,
);
await takeEditorScreenshot(page);
});

test(
'Validate that the simple schema with two retrosynthetic arrows could be saved to CML file and loaded back',
Expand Down
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 @@ -2175,7 +2175,10 @@ test.describe('Image files', () => {
'tests/test-data/CDX/images-png-50-with-50-structures-expected.cdx',
);
await openPasteFromClipboard(page, fileContent);
await pressButton(page, 'Open as New Project');
await waitForSpinnerFinishedWork(
page,
async () => await pressButton(page, 'Open as New Project'),
);
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
Loading