Skip to content

Commit

Permalink
#3661 – fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitvex committed Dec 8, 2023
1 parent 9cd6dae commit 419429c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('Open and Save files - Open/Save structure with atom properties 1/2 - open'
}) => {
/**
* Test case: EPMLSOPKET-1855(1)
* Description: Sctucrute with atom properties is opened and saved correctly
* Description: Structure with atom properties is opened and saved correctly
*/
await waitForPageInit(page);

Expand All @@ -29,7 +29,7 @@ test('Open and Save files - Open/Save structure with atom properties 2/2 - save'
}) => {
/**
* Test case: EPMLSOPKET-1855(2)
* Description: Sctucrute with atom properties is opened and saved correctly
* Description: Structure with atom properties is opened and saved correctly
*/
await waitForPageInit(page);

Expand All @@ -54,7 +54,7 @@ test('Open and Save file - Open/Save V3000 file with atom and bond properties 1/
}) => {
/**
* Test case: EPMLSOPKET-1857(1)
* Description: Strucrute with atom and bond properties is opened and saved correctly
* Description: Structure with atom and bond properties is opened and saved correctly
*/
await waitForPageInit(page);

Expand All @@ -70,7 +70,7 @@ test('Open and Save file - Open/Save V3000 file with atom and bond properties 2/
test.fail();
/**
* Test case: EPMLSOPKET-1857(2)
* Description: Strucrute with atom and bond properties is opened and saved correctly
* Description: Structure with atom and bond properties is opened and saved correctly
*/
await waitForPageInit(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.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ M V30 2 1 1 3
M V30 END BOND
M V30 END CTAB
M V30 BEGIN TEMPLATE
M V30 TEMPLATE 1 AA/A/A NATREPLACE=AA/A
M V30 TEMPLATE 1 AA/Ala/A NATREPLACE=AA/A
M V30 BEGIN CTAB
M V30 COUNTS 7 6 3 0 0
M V30 BEGIN ATOM
Expand Down
3 changes: 2 additions & 1 deletion ketcher-autotests/tests/utils/files/readFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
delay,
takeEditorScreenshot,
clickOnTheCanvas,
waitForSpinnerFinishedWork,
} from '@utils';

import { MolfileFormat } from 'ketcher-core';
Expand Down Expand Up @@ -44,7 +45,7 @@ export async function openFileAndAddToCanvas(
) {
await selectTopPanelButton(TopPanelButton.Open, page);
await openFile(filename, page);
await waitForLoad(page, async () => {
await waitForSpinnerFinishedWork(page, async () => {
await pressButton(page, 'Add to Canvas');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Object {
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-yf8vq0-MuiSelect-nativeInput"
name=":r2:"
tabindex="-1"
value="ket"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Object {
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-yf8vq0-MuiSelect-nativeInput"
name=":r1:"
tabindex="-1"
value="mol"
/>
Expand Down Expand Up @@ -462,6 +463,7 @@ Object {
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-yf8vq0-MuiSelect-nativeInput"
name=":r1:"
tabindex="-1"
value="mol"
/>
Expand Down

0 comments on commit 419429c

Please sign in to comment.