Skip to content

Commit

Permalink
Macro: #3041 – RNA Builder. Delete presets. (#3414)
Browse files Browse the repository at this point in the history
* #3041 Delete RNA presets.
* #3041 add dots menu and change delete dialog style
* #3041 align modal style
* #3041 update screenshots

---------

Co-authored-by: Nikita_Vozisov <Nikita_Vozisov@epam.com>
  • Loading branch information
StarlaStarla and Nitvex authored Oct 18, 2023
1 parent 97ebc29 commit b07a313
Show file tree
Hide file tree
Showing 34 changed files with 3,848 additions and 936 deletions.
2 changes: 1 addition & 1 deletion ketcher-autotests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ If you want to run tests from Polymer Editor, add `ENABLE_POLYMER_EDITOR=true` i

Also make sure, that test is not skipped! Check if test starts with
`test.skip('We test something', async ({ page }) => {`
Remove "skip" before running. Than add it back before push - we do not test Polymer Editor on ci/cd for now (will be changed in the future).
Remove "skip" before running.

- **Run app in browser: from root directory "ketcher"**:

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
@@ -0,0 +1,43 @@
import { Page, test } from '@playwright/test';
import { POLYMER_TOGGLER, RNA_TAB } from '../../../constants/testIdConstants';
import { waitForPageInit } from '@utils/common';
import { takePageScreenshot } from '@utils';

async function gotoRNA(page: Page) {
await page.getByTestId(POLYMER_TOGGLER).click();
await page.getByTestId(RNA_TAB).click();
}

test.describe('Macromolecules delete RNA presets', () => {
test.beforeEach(async ({ page }) => {
await waitForPageInit(page);
await gotoRNA(page);
});

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

test('Should not delete default RNA preset', async ({ page }) => {
await page.getByTestId('cancel-btn').click();

await page.getByTestId('A_A_R_P').click({ button: 'right' });
});

test('Delete copy RNA preset', async ({ page }) => {
await page.getByTestId('cancel-btn').click();

await page.getByTestId('A_A_R_P').click({ button: 'right' });

await page.getByTestId('duplicateandedit').click();

await page.getByTestId('A_Copy_A_R_P').click();
await page.getByTestId('A_Copy_A_R_P').click({ button: 'right' });

await page.getByTestId('deletepreset').click();

await takePageScreenshot(page);

await page.getByTitle('Delete').click();
});
});
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

0 comments on commit b07a313

Please sign in to comment.