Skip to content

Commit

Permalink
- code refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhirnoff committed Nov 29, 2024
1 parent 4569d45 commit 677d00b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
saveToFile,
receiveFileComparisonData,
openFileAndAddToCanvasAsNewProject,
moveMouseAway,
} from '@utils';
import {
clickOnFileFormatDropdown,
Expand Down Expand Up @@ -67,6 +68,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(page, 'CCCCC/CC/C:CC.C(C)CCCCCCCCCC');
Expand All @@ -86,6 +88,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand All @@ -106,6 +109,7 @@ test.describe('SMILES files', () => {
await openFileAndAddToCanvas('Molfiles-V2000/sec-butyl-abr.mol', page);
await getPreviewForSmiles(page, 'Daylight SMILES');
await page.getByText('Warnings').click();
await moveMouseAway(page);
await takeEditorScreenshot(page);
});

Expand All @@ -121,6 +125,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand Down Expand Up @@ -148,6 +153,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(page, 'NOSPFClBrI[H]');
Expand All @@ -171,6 +177,7 @@ test.describe('SMILES files', () => {

await getPreviewForSmiles(page, 'Daylight SMILES');
await page.getByText('Warnings').click();
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand All @@ -196,6 +203,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand Down Expand Up @@ -224,6 +232,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand All @@ -249,6 +258,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand All @@ -273,6 +283,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(page, 'CCCC*CC |$;;alias123;;GH*;;$|');
Expand All @@ -295,6 +306,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(
Expand Down Expand Up @@ -322,6 +334,7 @@ test.describe('SMILES files', () => {
);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);

await clearCanvasAndPasteSmiles(page, 'C1C=CC=CC=1>N>C1C=CC=CC=1');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
readFileContents,
pasteFromClipboardAndAddToCanvas,
waitForPageInit,
moveMouseAway,
} from '@utils';
import {
getExtendedSmiles,
Expand Down Expand Up @@ -64,6 +65,7 @@ test.describe('Reagents SMILES format', () => {
expect(smiFile).toEqual(smiFileExpected);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);
});

Expand All @@ -89,6 +91,7 @@ test.describe('Reagents SMILES format', () => {
expect(smiFile).toEqual(smiFileExpected);

await getPreviewForSmiles(page, 'Daylight SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);
});

Expand All @@ -108,6 +111,7 @@ test.describe('Reagents SMILES format', () => {
);

await getPreviewForSmiles(page, 'Extended SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);
});

Expand All @@ -127,6 +131,7 @@ test.describe('Reagents SMILES format', () => {
);

await getPreviewForSmiles(page, 'Extended SMILES');
await moveMouseAway(page);
await takeEditorScreenshot(page);
});

Expand Down

0 comments on commit 677d00b

Please sign in to comment.