Skip to content

Commit

Permalink
#3554 – Implicit hydrogens for aromatised structures containing Sulphur
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitvex committed Nov 14, 2023
1 parent df6d75c commit ac1b884
Show file tree
Hide file tree
Showing 19 changed files with 1,946 additions and 27 deletions.
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);
});
});
}
});
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
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.
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
]
}
]
}
}
Loading

0 comments on commit ac1b884

Please sign in to comment.