-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
97ebc29
commit b07a313
Showing
34 changed files
with
3,848 additions
and
936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-16 Bytes
(100%)
...shots/Macromolecules-default-presets-Add-Guanine-to-canvas-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+195 Bytes
(100%)
...molecules-default-presets-Check-Guanine-in-default-presets-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions
43
ketcher-autotests/tests/Macromolecule-editor/RNAEditor/delete-preset.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |
Binary file added
BIN
+64.8 KB
...s/Macromolecules-delete-RNA-presets-Delete-copy-RNA-preset-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.5 KB
...s/Macromolecules-delete-RNA-presets-Delete-copy-RNA-preset-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.7 KB
...es-delete-RNA-presets-Should-not-delete-default-RNA-preset-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.