Skip to content

Commit

Permalink
#2389 - Update auto-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaepam committed Aug 24, 2023
1 parent 0367610 commit 4504481
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions ketcher-autotests/tests/Templates/S-Groups/s-groups.spec.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
/* eslint-disable no-magic-numbers */
import { test } from '@playwright/test';
import {
pressButton,
waitForKetcherInit,
takeEditorScreenshot,
openFileAndAddToCanvas,
} from '@utils';

test.describe('S-Groups', () => {
test.beforeEach(async ({ page }) => {
await page.goto('');
await waitForKetcherInit(page);
});

test.afterEach(async ({ page }) => {
await takeEditorScreenshot(page);
});

// this test works locally, but do not work in CI for some reason
test.fixme(
'Open file with several s-groups and check brackets',
async ({ page }) => {
/*
test('Open file with several s-groups and check brackets', async ({
page,
}) => {
/*
Test case related to issue: https://github.com/epam/ketcher/issues/2389
Description: Open file with S-groups (with Unsupported S-group type) and see that brackets in place for all S-Groups except DAT
Description: Open file with S-groups (with Unsupported S-group type GEN) and see that brackets in place for all S-Groups except DAT
*/
await openFileAndAddToCanvas(
'structure-with-s-groups-with-unsupported-s-group-type.rxn',
page,
);
await pressButton(page, 'OK');
await takeEditorScreenshot(page);
},
);
await openFileAndAddToCanvas(
'structure-with-s-groups-with-unsupported-s-group-type.rxn',
page,
);
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit 4504481

Please sign in to comment.