Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit a5a1fc3
Author: Dmitry Baranov <baranov.d.v.1988@gmail.com>
Date:   Thu May 30 15:58:32 2024 +0500

    Backmerge: #4399 - Different chains shown by the same sequence in sequence mode (system ignores sugar presence) (#4681)

commit 01b189e
Author: Mikhail Zhirnov <62464241+Zhirnoff@users.noreply.github.com>
Date:   Thu May 30 11:53:41 2024 +0300

    Autotests: #4668 - api tests (#4673)

    * - added tests to 'API';
    - added functions to 'format.ts'

    * - added tests;
    - added expected snapshots

    * - added tests;
    - added expected snapshots

    * - updated files and screenshots

    * - added tests;
    - added 1 test file;
    - added expected snapshots

    * - added tests;
    - added expected snapshots

    * - updated snapshots

    * - added tests;
    - added expected snapshots

    * - updated playwright version

    * - added tests;
    - added expected snapshots

commit c4042b5
Author: Alexey Girin <agirin@mail.ru>
Date:   Thu May 30 10:35:40 2024 +0300

    Autotests: #4422 - GUI tests (#4691)

    * 4422 - GUI tests (test and screenshots)

    * 4422 - more GUI tests

    * Final version

    * Minor corrections

    * More fixes

    * more fixes2

    * More fixes

    * more fixes 2

    * More fixes 3

    * More fixes 4

    * #4422 - broken tests and some flacky are fixed

    * MOde fixes

    * and more

    * More fixes

    * One more fix

    * More fixes

commit a00bf26
Author: Ruslan <117785539+Guch1g0v@users.noreply.github.com>
Date:   Thu May 30 02:00:38 2024 +0500

commit 1e7c398
Author: Alexey Girin <agirin@mail.ru>
Date:   Wed May 29 11:43:07 2024 +0300

    Bump request: Update playwright.yml (#4707)

    temporary rise execution time for microtests

    [skip ci]

commit d15aa1d
Merge: b7b81e1 5c30180
Author: Ilya Asiyuk <156656634+ilya-asiyuk-epam@users.noreply.github.com>
Date:   Wed May 29 10:23:48 2024 +0400

    Merge pull request #4699 from epam/4697-macro-highlight-connection-point-change-mouse-cursor-on-mouse-hover

commit b7b81e1
Author: Alexey Girin <agirin@mail.ru>
Date:   Tue May 28 23:28:00 2024 +0300

commit af5d024
Merge: 52ace78 66d6d0b
Author: Ilya Asiyuk <156656634+ilya-asiyuk-epam@users.noreply.github.com>
Date:   Tue May 28 15:07:24 2024 +0400

    Merge pull request #4696 from epam/4692-macro-cursors-should-be-copied-from-small-mode

commit 5c30180
Author: Ilya Asiyuk <ilya_asiyuk@epam.com>
Date:   Tue May 28 12:37:03 2024 +0400

commit 66d6d0b
Author: Ilya Asiyuk <ilya_asiyuk@epam.com>
Date:   Mon May 27 15:29:14 2024 +0400
  • Loading branch information
vitaepam committed May 30, 2024
1 parent a674190 commit 657c3dc
Showing 1 changed file with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ test.describe('RNA Library', () => {
test('Add Custom preset to Presets section and display after page reload', async ({
page,
}) => {
/*
Test case: #4427 - Edit RNA mode
Description: Custom presets added to Presets section and saved in local storage after reload.
*/
await expandCollapseRnaBuilder(page);
await selectMonomer(page, Sugars.TwentyFiveR);
await selectMonomer(page, Bases.Adenine);
Expand Down Expand Up @@ -363,6 +367,31 @@ test.describe('RNA Library', () => {
await takeEditorScreenshot(page);
});

test('Add same Custom preset to Presets section', async ({ page }) => {
/*
Test case: #4427 - Edit RNA mode
Description: System alert that you should rename preset.
*/
await expandCollapseRnaBuilder(page);
await selectMonomer(page, Sugars.TwelveddR);
await selectMonomer(page, Bases.Adenine);
await selectMonomer(page, Phosphates.Test6Ph);
await page.getByTestId('add-to-presets-btn').click();
await page.getByTestId('12ddR(A)Test-6-Ph_A_12ddR_Test-6-Ph').click();
await expandCollapseRnaBuilder(page);
await takePresetsScreenshot(page);
await page.reload();
await waitForPageInit(page);
await turnOnMacromoleculesEditor(page);
await page.getByTestId('RNA-TAB').click();
await expandCollapseRnaBuilder(page);
await selectMonomer(page, Sugars.TwelveddR);
await selectMonomer(page, Bases.Adenine);
await selectMonomer(page, Phosphates.Test6Ph);
await page.getByTestId('add-to-presets-btn').click();
await takeEditorScreenshot(page);
});

test('Add Custom preset to Canvas', async ({ page }) => {
/*
Test case: #2507 - Add RNA monomers to canvas
Expand Down Expand Up @@ -518,6 +547,25 @@ test.describe('RNA Library', () => {
await takePresetsScreenshot(page);
});

test('After clicking Duplicate and Edit button and subsequently clicking Cancel, preset not saved', async ({
page,
}) => {
/*
Test case: #3633 - Edit RNA mode
Description: After clicking Duplicate and Edit button and subsequently clicking Cancel, preset not saved
*/
await expandCollapseRnaBuilder(page);
await page.getByTestId('A_A_R_P').click({
button: 'right',
});
await page.getByTestId('duplicateandedit').locator('div').click();
await page.getByTestId('cancel-btn').click();
// To avoid unstable test execution
// Allows see a right preset in a veiwport
await expandCollapseRnaBuilder(page);
await takePresetsScreenshot(page);
});

test('Add Custom preset to Presets section and Delete', async ({ page }) => {
/*
Test case: #2759 - Edit RNA mode
Expand Down

0 comments on commit 657c3dc

Please sign in to comment.