diff --git a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-idt.spec.ts-snapshots/Import-Saving-idt-Files-Verify-saving-of-unresolved-IDT-monomers-in-KET-format-1-chromium-linux.png b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-idt.spec.ts-snapshots/Import-Saving-idt-Files-Verify-saving-of-unresolved-IDT-monomers-in-KET-format-1-chromium-linux.png index d1fccf3c9a..73707d2469 100644 Binary files a/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-idt.spec.ts-snapshots/Import-Saving-idt-Files-Verify-saving-of-unresolved-IDT-monomers-in-KET-format-1-chromium-linux.png and b/ketcher-autotests/tests/Macromolecule-editor/Import-Saving-Files/import-saving-idt.spec.ts-snapshots/Import-Saving-idt-Files-Verify-saving-of-unresolved-IDT-monomers-in-KET-format-1-chromium-linux.png differ diff --git a/ketcher-autotests/tests/test-data/KET/sequence-with-unresolved-idt-monomers-expected.ket b/ketcher-autotests/tests/test-data/KET/sequence-with-unresolved-idt-monomers-expected.ket index 8fda3ab796..fcc34c4edb 100644 --- a/ketcher-autotests/tests/test-data/KET/sequence-with-unresolved-idt-monomers-expected.ket +++ b/ketcher-autotests/tests/test-data/KET/sequence-with-unresolved-idt-monomers-expected.ket @@ -528,8 +528,8 @@ "type": "monomer", "id": "0", "position": { - "x": -7.300001, - "y": -7.525000000000001 + "x": -6.1, + "y": -7.575000000000001 }, "alias": "MOE", "templateId": "MOE___2'-O-Methoxyethyl ribose", @@ -829,8 +829,8 @@ "type": "monomer", "id": "1", "position": { - "x": -7.300001, - "y": -9.125000000000002 + "x": -6.1, + "y": -9.075000000000001 }, "alias": "A", "templateId": "A___Adenine", @@ -1036,8 +1036,8 @@ "type": "monomer", "id": "2", "position": { - "x": -5.700001, - "y": -7.525000000000001 + "x": -4.6, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -1148,8 +1148,8 @@ "type": "monomer", "id": "3", "position": { - "x": -4.100001, - "y": -7.525000000000001 + "x": -3.0999999999999996, + "y": -7.575000000000001 }, "alias": "MOE", "templateId": "MOE___2'-O-Methoxyethyl ribose", @@ -1159,8 +1159,8 @@ "type": "monomer", "id": "4", "position": { - "x": -4.100001, - "y": -9.125000000000002 + "x": -3.0999999999999996, + "y": -9.075000000000001 }, "alias": "5meC", "templateId": "5meC___5-methylcytosine", @@ -1344,8 +1344,8 @@ "type": "monomer", "id": "5", "position": { - "x": -2.500001, - "y": -7.525000000000001 + "x": -1.5999999999999996, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -1355,8 +1355,8 @@ "type": "monomer", "id": "6", "position": { - "x": -0.9000009999999996, - "y": -7.525000000000001 + "x": -0.09999999999999964, + "y": -7.575000000000001 }, "alias": "MOE", "templateId": "MOE___2'-O-Methoxyethyl ribose", @@ -1366,8 +1366,8 @@ "type": "monomer", "id": "7", "position": { - "x": -0.9000009999999996, - "y": -9.125000000000002 + "x": -0.09999999999999964, + "y": -9.075000000000001 }, "alias": "G", "templateId": "G___Guanine", @@ -1588,8 +1588,8 @@ "type": "monomer", "id": "8", "position": { - "x": 0.699999, - "y": -7.525000000000001 + "x": 1.4000000000000004, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -1599,8 +1599,8 @@ "type": "monomer", "id": "9", "position": { - "x": 2.2999989999999997, - "y": -7.525000000000001 + "x": 2.9000000000000004, + "y": -7.575000000000001 }, "alias": "MOE", "templateId": "MOE___2'-O-Methoxyethyl ribose", @@ -1610,8 +1610,8 @@ "type": "monomer", "id": "10", "position": { - "x": 2.2999989999999997, - "y": -9.125000000000002 + "x": 2.9000000000000004, + "y": -9.075000000000001 }, "alias": "5meC", "templateId": "5meC___5-methylcytosine", @@ -1621,8 +1621,8 @@ "type": "monomer", "id": "11", "position": { - "x": 3.9000000000000004, - "y": -7.525000000000001 + "x": 4.4, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -1632,8 +1632,8 @@ "type": "monomer", "id": "12", "position": { - "x": 5.499999000000001, - "y": -7.525000000000001 + "x": 5.9, + "y": -7.575000000000001 }, "alias": "MOE", "templateId": "MOE___2'-O-Methoxyethyl ribose", @@ -1643,8 +1643,8 @@ "type": "monomer", "id": "13", "position": { - "x": 5.499999000000001, - "y": -9.125000000000002 + "x": 5.9, + "y": -9.075000000000001 }, "alias": "G", "templateId": "G___Guanine", @@ -1654,8 +1654,8 @@ "type": "monomer", "id": "14", "position": { - "x": 7.1, - "y": -7.525000000000001 + "x": 7.4, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -1665,8 +1665,8 @@ "type": "monomer", "id": "15", "position": { - "x": 8.699999, - "y": -7.525000000000001 + "x": 8.9, + "y": -7.575000000000001 }, "alias": "iMe-dC", "templateId": "unknown_monomer_with_idt_alias_iMe-dC", @@ -1778,8 +1778,8 @@ "type": "monomer", "id": "16", "position": { - "x": 10.299999000000001, - "y": -7.525000000000001 + "x": 10.4, + "y": -7.575000000000001 }, "alias": "dR", "templateId": "dR___Deoxy-Ribose", @@ -2002,8 +2002,8 @@ "type": "monomer", "id": "17", "position": { - "x": 10.299999000000001, - "y": -9.125000000000002 + "x": 10.4, + "y": -9.075000000000001 }, "alias": "G", "templateId": "G___Guanine", @@ -2014,7 +2014,7 @@ "id": "18", "position": { "x": 11.9, - "y": -7.525000000000001 + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -2024,8 +2024,8 @@ "type": "monomer", "id": "19", "position": { - "x": 13.500000000000002, - "y": -7.525000000000001 + "x": 13.4, + "y": -7.575000000000001 }, "alias": "dR", "templateId": "dR___Deoxy-Ribose", @@ -2035,8 +2035,8 @@ "type": "monomer", "id": "20", "position": { - "x": 13.500000000000002, - "y": -9.125000000000002 + "x": 13.4, + "y": -9.075000000000001 }, "alias": "A", "templateId": "A___Adenine", @@ -2046,8 +2046,8 @@ "type": "monomer", "id": "21", "position": { - "x": 15.100001, - "y": -7.525000000000001 + "x": 14.9, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -2057,8 +2057,8 @@ "type": "monomer", "id": "22", "position": { - "x": 16.699999, - "y": -7.525000000000001 + "x": 16.4, + "y": -7.575000000000001 }, "alias": "iMe-dC", "templateId": "unknown_monomer_with_idt_alias_iMe-dC", @@ -2068,8 +2068,8 @@ "type": "monomer", "id": "23", "position": { - "x": 18.299999, - "y": -7.525000000000001 + "x": 17.9, + "y": -7.575000000000001 }, "alias": "dR", "templateId": "dR___Deoxy-Ribose", @@ -2079,8 +2079,8 @@ "type": "monomer", "id": "24", "position": { - "x": 18.299999, - "y": -9.125000000000002 + "x": 17.9, + "y": -9.075000000000001 }, "alias": "T", "templateId": "T___Thymine", @@ -2264,8 +2264,8 @@ "type": "monomer", "id": "25", "position": { - "x": 19.9, - "y": -7.525000000000001 + "x": 19.4, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -2275,8 +2275,8 @@ "type": "monomer", "id": "26", "position": { - "x": 21.5, - "y": -7.525000000000001 + "x": 20.9, + "y": -7.575000000000001 }, "alias": "dR", "templateId": "dR___Deoxy-Ribose", @@ -2286,8 +2286,8 @@ "type": "monomer", "id": "27", "position": { - "x": 21.5, - "y": -9.125000000000002 + "x": 20.9, + "y": -9.075000000000001 }, "alias": "A", "templateId": "A___Adenine", @@ -2297,8 +2297,8 @@ "type": "monomer", "id": "28", "position": { - "x": 23.100001, - "y": -7.525000000000001 + "x": 22.4, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -2308,8 +2308,8 @@ "type": "monomer", "id": "29", "position": { - "x": 24.699999, - "y": -7.525000000000001 + "x": 23.9, + "y": -7.575000000000001 }, "alias": "dR", "templateId": "dR___Deoxy-Ribose", @@ -2319,8 +2319,8 @@ "type": "monomer", "id": "30", "position": { - "x": 24.699999, - "y": -9.125000000000002 + "x": 23.9, + "y": -9.075000000000001 }, "alias": "T", "templateId": "T___Thymine", @@ -2330,8 +2330,8 @@ "type": "monomer", "id": "31", "position": { - "x": 26.299996999999998, - "y": -7.525000000000001 + "x": 25.4, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -2341,8 +2341,8 @@ "type": "monomer", "id": "32", "position": { - "x": 27.9, - "y": -7.525000000000001 + "x": 26.9, + "y": -7.575000000000001 }, "alias": "dR", "templateId": "dR___Deoxy-Ribose", @@ -2352,8 +2352,8 @@ "type": "monomer", "id": "33", "position": { - "x": 27.9, - "y": -9.125000000000002 + "x": 26.9, + "y": -9.075000000000001 }, "alias": "A", "templateId": "A___Adenine", @@ -2363,8 +2363,8 @@ "type": "monomer", "id": "34", "position": { - "x": 29.499997999999998, - "y": -7.525000000000001 + "x": 28.4, + "y": -7.575000000000001 }, "alias": "sP", "templateId": "sP___Phosporothioate", @@ -2374,8 +2374,8 @@ "type": "monomer", "id": "35", "position": { - "x": 31.100001, - "y": -7.525000000000001 + "x": 29.9, + "y": -7.575000000000001 }, "alias": "iMe-dC", "templateId": "unknown_monomer_with_idt_alias_iMe-dC", diff --git a/ketcher-autotests/tests/utils/files/readFile.ts b/ketcher-autotests/tests/utils/files/readFile.ts index 614737f7de..69175a402c 100644 --- a/ketcher-autotests/tests/utils/files/readFile.ts +++ b/ketcher-autotests/tests/utils/files/readFile.ts @@ -478,7 +478,11 @@ export async function getAndCompareSmiles(page: Page, smilesFilePath: string) { export async function saveToFile(filename: string, data: string) { if (process.env.GENERATE_DATA === 'true') { // `tests/test-data/${filename}`, - return await fs.promises.writeFile(`${filename}`, data, 'utf-8'); + return await fs.promises.writeFile( + `tests/test-data/${filename}`, + data, + 'utf-8', + ); } }