-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3554 – Implicit hydrogens for aromatised structures containing Sulphur
- Loading branch information
Showing
19 changed files
with
1,946 additions
and
27 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...otests/tests/Indigo-Tools/Aromatize-Dearomatize/implicit-hydrogen-after-aromatize.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,42 @@ | ||
import { test } from '@playwright/test'; | ||
import { | ||
TopPanelButton, | ||
openFileAndAddToCanvas, | ||
selectTopPanelButton, | ||
takeEditorScreenshot, | ||
waitForPageInit, | ||
waitForSpinnerFinishedWork, | ||
} from '@utils'; | ||
|
||
test.describe('Shows correctly implicit Hydrogen after aromatize', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await waitForPageInit(page); | ||
}); | ||
|
||
test.afterEach(async ({ page }) => { | ||
await takeEditorScreenshot(page); | ||
}); | ||
|
||
const fileNames = [ | ||
'first.ket', | ||
'second.ket', | ||
'third.ket', | ||
'fourth.ket', | ||
'fifth.ket', | ||
'sixth.ket', | ||
'seventh.ket', | ||
'eighth.ket', | ||
]; | ||
|
||
for (const fileName of fileNames) { | ||
test(`for ${fileName}`, async ({ page }) => { | ||
await openFileAndAddToCanvas( | ||
`KET/Implicit-Hydrogen-After-Aromatize/${fileName}`, | ||
page, | ||
); | ||
await waitForSpinnerFinishedWork(page, async () => { | ||
await selectTopPanelButton(TopPanelButton.Aromatize, page); | ||
}); | ||
}); | ||
} | ||
}); |
Binary file added
BIN
+18.8 KB
...correctly-implicit-Hydrogen-after-aromatize-for-eighth-ket-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
+14.5 KB
...-correctly-implicit-Hydrogen-after-aromatize-for-fifth-ket-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
+8.67 KB
...-correctly-implicit-Hydrogen-after-aromatize-for-first-ket-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.3 KB
...correctly-implicit-Hydrogen-after-aromatize-for-fourth-ket-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
+17.2 KB
...correctly-implicit-Hydrogen-after-aromatize-for-second-ket-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.7 KB
...orrectly-implicit-Hydrogen-after-aromatize-for-seventh-ket-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
+27.9 KB
...-correctly-implicit-Hydrogen-after-aromatize-for-sixth-ket-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
+18 KB
...-correctly-implicit-Hydrogen-after-aromatize-for-third-ket-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.
325 changes: 325 additions & 0 deletions
325
ketcher-autotests/tests/test-data/KET/Implicit-Hydrogen-After-Aromatize/eighth.ket
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,325 @@ | ||
{ | ||
"root": { | ||
"nodes": [ | ||
{ | ||
"$ref": "mol0" | ||
} | ||
], | ||
"connections": [], | ||
"templates": [] | ||
}, | ||
"mol0": { | ||
"type": "molecule", | ||
"atoms": [ | ||
{ | ||
"label": "N", | ||
"location": [ | ||
8.612449791898534, | ||
-8.350660018897544, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
8.716979657232418, | ||
-9.345181918647475, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "N", | ||
"location": [ | ||
7.907963369928045, | ||
-9.93296735493618, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "N", | ||
"location": [ | ||
9.630525213824182, | ||
-9.751917786062208, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
10.439542097175046, | ||
-9.164132200761879, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "N", | ||
"location": [ | ||
11.390598051579413, | ||
-9.473149226102828, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
11.978383636879741, | ||
-8.664132193740341, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
12.978383948946062, | ||
-8.664132193740341, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "S", | ||
"location": [ | ||
13.478383806955977, | ||
-9.530157794773578, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
14.478383970010674, | ||
-9.530157794773578, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
14.97838397703221, | ||
-10.396183172289378, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "N", | ||
"location": [ | ||
15.978384028328191, | ||
-10.396183172289378, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
16.478384147108446, | ||
-11.26220854980518, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "N", | ||
"location": [ | ||
16.071647497382692, | ||
-12.175754031891133, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "S", | ||
"location": [ | ||
16.81479245172033, | ||
-12.844884689610524, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "N", | ||
"location": [ | ||
17.680817866489036, | ||
-12.344884608083175, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
17.472905972352564, | ||
-11.366736925022835, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "N", | ||
"location": [ | ||
18.142036630071956, | ||
-10.623591896179388, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "C", | ||
"location": [ | ||
11.390598051579413, | ||
-7.855115310389478, | ||
0 | ||
] | ||
}, | ||
{ | ||
"label": "S", | ||
"location": [ | ||
10.439542097175046, | ||
-8.164132037707182, | ||
0 | ||
] | ||
} | ||
], | ||
"bonds": [ | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
0, | ||
1 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
1, | ||
2 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
1, | ||
3 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
3, | ||
4 | ||
] | ||
}, | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
4, | ||
5 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
5, | ||
6 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
6, | ||
7 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
7, | ||
8 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
8, | ||
9 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
9, | ||
10 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
10, | ||
11 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
11, | ||
12 | ||
] | ||
}, | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
12, | ||
13 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
13, | ||
14 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
14, | ||
15 | ||
] | ||
}, | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
15, | ||
16 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
16, | ||
12 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
16, | ||
17 | ||
] | ||
}, | ||
{ | ||
"type": 2, | ||
"atoms": [ | ||
6, | ||
18 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
18, | ||
19 | ||
] | ||
}, | ||
{ | ||
"type": 1, | ||
"atoms": [ | ||
19, | ||
4 | ||
] | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.