-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backmerge: #3208 - structure disappearance by pressing layout
* #3208 - Remove unused 'openFile' variable declaration * #3208 - simplify 'Stereo flag' test by using a loop and refactor 'Center molecule after layout' test * #3208 - Refactor code to ensure 'label' object is properly initialized * #3208 – fix tests --------- Co-authored-by: Gayane Chilingaryan <[email protected]> Co-authored-by: Nikita_Vozisov <[email protected]>
- Loading branch information
1 parent
cbd61f2
commit cfc2e8e
Showing
10 changed files
with
192 additions
and
22 deletions.
There are no files selected for viewing
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
Binary file added
BIN
+28.5 KB
...yout-t-a20ba-does-not-disappear-and-can-be-interacted-with-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.
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
81 changes: 81 additions & 0 deletions
81
...autotests/tests/test-data/Molfiles-V2000/chloro-ethylamino-dimethyl-propoxy-propan-ol.mol
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,81 @@ | ||
|
||
Ketcher 7102316352D 1 1.00000 0.00000 0 | ||
|
||
36 40 0 0 0 0 0 0 0 0999 V2000 | ||
3.3523 1.9354 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
3.3523 1.1104 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
2.6378 0.6979 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1.9233 1.1104 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1.1387 0.8555 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0 | ||
0.6538 1.5229 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1.1387 2.1904 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
0.8838 2.9750 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
0.0768 3.1465 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
-0.1781 3.9312 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
0.3739 4.5442 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0 | ||
0.1190 5.3289 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
0.6710 5.9420 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
0.4161 6.7266 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
0.9681 7.3397 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1.7751 7.1682 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
2.0300 6.3835 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1.4780 5.7704 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
2.3271 7.7812 0.0000 N 0 0 0 0 0 0 0 0 0 0 0 0 | ||
2.0722 8.5659 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1.2652 8.7374 0.0000 O 0 0 0 0 0 0 0 0 0 0 0 0 | ||
2.6242 9.1790 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
2.3693 9.9636 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
2.9213 10.5767 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
2.6663 11.3613 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
3.2184 11.9744 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
4.0253 11.8029 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
4.5774 12.4160 0.0000 Cl 0 0 0 0 0 0 0 0 0 0 0 0 | ||
4.2803 11.0182 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
5.0873 10.8467 0.0000 Cl 0 0 0 0 0 0 0 0 0 0 0 0 | ||
3.7283 10.4052 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1.1809 4.3727 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1.4358 3.5881 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1.9233 1.9354 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
2.6378 2.3479 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
4.0668 2.3479 0.0000 R 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1 2 2 0 0 0 | ||
2 3 1 0 0 0 | ||
3 4 2 0 0 0 | ||
4 5 1 0 0 0 | ||
5 6 1 0 0 0 | ||
6 7 2 0 0 0 | ||
7 8 1 0 0 0 | ||
8 9 1 0 0 0 | ||
9 10 1 0 0 0 | ||
10 11 1 0 0 0 | ||
11 12 1 0 0 0 | ||
12 13 1 0 0 0 | ||
13 14 1 0 0 0 | ||
14 15 1 0 0 0 | ||
15 16 1 0 0 0 | ||
16 17 1 0 0 0 | ||
17 18 1 0 0 0 | ||
13 18 1 0 0 0 | ||
16 19 1 0 0 0 | ||
19 20 1 0 0 0 | ||
20 21 2 0 0 0 | ||
20 22 1 0 0 0 | ||
22 23 2 0 0 0 | ||
23 24 1 0 0 0 | ||
24 25 2 0 0 0 | ||
25 26 1 0 0 0 | ||
26 27 2 0 0 0 | ||
27 28 1 0 0 0 | ||
27 29 1 0 0 0 | ||
29 30 1 0 0 0 | ||
29 31 2 0 0 0 | ||
24 31 1 0 0 0 | ||
11 32 1 0 0 0 | ||
32 33 1 0 0 0 | ||
8 33 1 0 0 0 | ||
7 34 1 0 0 0 | ||
4 34 1 0 0 0 | ||
34 35 2 0 0 0 | ||
1 35 1 0 0 0 | ||
36 1 1 0 0 0 | ||
M END |
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
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,2 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
export async function emptyFunction() {} |
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
38 changes: 38 additions & 0 deletions
38
ketcher-autotests/tests/utils/common/loaders/waitForRender.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,38 @@ | ||
import { Page } from '@playwright/test'; | ||
|
||
type AnyFunction = (...args: any) => Promise<any>; | ||
|
||
export const waitForRender = async ( | ||
page: Page, | ||
callback: AnyFunction, | ||
timeout?: number, | ||
) => { | ||
await Promise.all([ | ||
waitForCustomEvent(page, 'renderComplete', timeout), | ||
callback(), | ||
]); | ||
}; | ||
|
||
async function waitForCustomEvent( | ||
page: Page, | ||
eventName: string, | ||
timeout?: number, | ||
) { | ||
return page.evaluate( | ||
async ({ eventName, timeout }: { eventName: string; timeout?: number }) => { | ||
return new Promise((resolve) => { | ||
window.addEventListener( | ||
eventName, | ||
() => { | ||
resolve(true); | ||
}, | ||
{ once: true }, | ||
); | ||
if (timeout) { | ||
setTimeout(() => resolve(true), timeout); | ||
} | ||
}); | ||
}, | ||
{ eventName, timeout }, | ||
); | ||
} |
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
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