Skip to content

Commit

Permalink
Fix test cases for stability (#5979)
Browse files Browse the repository at this point in the history
* fix tests

* fix tests
  • Loading branch information
Guch1g0v authored Nov 17, 2024
1 parent 61ed9b1 commit 1bf39f2
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,15 @@ const correctHELMStrings: IHELMString[] = [
'35. Simple peptides - The ratio of each element can be given as a numerical value after the monomer' +
'separated by the colon character. If no value is specified, it is assumed that the proportion of that element is unknown.',
HELMString: 'PEPTIDE1{(A:1.5+C:0.1)}$$$$V2.0',
pageReloadNeeded: true,
},
{
helmDescription:
'36. Multi-char peptides - The ratio of each element can be given as a numerical value after the monomer' +
'separated by the colon character. If no value is specified, it is assumed that the proportion of that element is unknown.',
HELMString:
'PEPTIDE1{([Aad]:1.1+[Abu]:2.2+[Aca]:3.3+[Aib]:4.4+[Apm]:5.5)}$$$$V2.0',
pageReloadNeeded: true,
},
{
helmDescription:
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.
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
Expand Up @@ -1644,6 +1644,7 @@ test.describe('Ambiguous monomers: ', () => {
(Error message should occur)
4. Take screenshot to make sure export is correct
*/
await pageReload(page);
await openFileAndAddToCanvasAsNewProjectMacro(
'KET/Ambiguous-monomers/Peptides (that have mapping to library, mixed).ket',
page,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ test.describe('Import-Saving .mol Files', () => {
In RNA, thymine (T) is replaced by uracil (U).
We have bug https://github.com/epam/ketcher/issues/3383
*/
await pageReload(page);
await openFileAndAddToCanvasMacro(`Molfiles-V3000/${fileType}.mol`, page);
await takeEditorScreenshot(page);
});
Expand Down Expand Up @@ -644,7 +645,7 @@ test.describe('Import-Saving .mol Files', () => {
Test case: #4382
Description: Validate that unsplit nucleotides connected with peptides could be saved to mol 3000 file and loaded back
*/

await pageReload(page);
await openFileAndAddToCanvasMacro(
'KET/unsplit-nucleotides-connected-with-peptides.ket',
page,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,14 @@ test.describe('Saving in .svg files', () => {
filename:
'KET/Ambiguous-monomers/Peptides (that have mapping to library, alternatives).ket',
description: '7. Peptides (that have mapping to library, alternatives)',
pageReload: true,
},
{
// Test task: https://github.com/epam/ketcher/issues/5558
filename:
'KET/Ambiguous-monomers/Peptides (that have mapping to library, mixed).ket',
description: '8. Peptides (that have mapping to library, mixed)',
pageReload: true,
},
{
// Test task: https://github.com/epam/ketcher/issues/5558
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.
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 @@ -269,7 +269,7 @@ test.describe('Side chain connections', () => {
/* All canvases (7 in total) contain all combinations of all types on mnomers (except unresolved monomer because of bug)
/* connected by all possible combinations.
*/

await pageReload(page);
await selectSnakeLayoutModeTool(page);
// Closing Library to enlarge canvas
await hideLibrary(page);
Expand Down

0 comments on commit 1bf39f2

Please sign in to comment.