-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Macro: #3495 - Is not possible to add RNA presets into the Favourite …
…library (#3584) * #3495 add RNA presets into the Favourite library * #3495 fix ci error * #3495 update tests * #3495 fix input lost focus issue * #3495 disable duplication for undefined preset * #3495 fix dispatch selectTool rerender issue * #3495 fix preset name auto fill issue * #3495 fix screenshots * #3495 fix ci issue * #3495 fix autotest issue and prevent rerender of RnaEditor * #3495 fix ci issue * #3495 fix unit tests * #3495 update screenshots * #3495 fix duplicate preset name issue * #3495 fix duplicated preset name issue * #3495 fix autotests * #3495 update screenshot * #3495 merge choosing RNA parts * #3495 refresh selected monomer after changed monomer group * #3495 enable expanding monomer group not in edit mode
- Loading branch information
1 parent
cfb891b
commit ceb5a86
Showing
46 changed files
with
949 additions
and
389 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
ketcher-autotests/tests/Macromolecule-editor/RNA-Builder/add-preset-to-favorites.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,26 @@ | ||
import { test, expect } from '@playwright/test'; | ||
import { waitForPageInit } from '@utils/common'; | ||
import { takePageScreenshot } from '@utils'; | ||
import { gotoRNA } from '@utils/macromolecules/rnaBuilder'; | ||
|
||
test.describe('Macromolecules add RNA presets to Favorites', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await waitForPageInit(page); | ||
await gotoRNA(page); | ||
}); | ||
|
||
test('Should have star when hover over RNA presets', async ({ page }) => { | ||
await page.getByTestId('A_A_R_P').hover(); | ||
await takePageScreenshot(page); | ||
}); | ||
|
||
test('Should add RNA presets to Favorites', async ({ page }) => { | ||
await page.getByTestId('FAVORITES-TAB').click(); | ||
await expect(page.getByTestId('A_A_R_P')).not.toBeVisible(); | ||
|
||
await page.getByTestId('RNA-TAB').click(); | ||
await page.locator('div[class="star "]').first().click(); | ||
await page.getByTestId('FAVORITES-TAB').click(); | ||
await expect(page.getByTestId('A_A_R_P')).toBeVisible(); | ||
}); | ||
}); |
Binary file added
BIN
+24.2 KB
...A-presets-to-Favorites-Should-add-RNA-presets-to-Favorites-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
+51.8 KB
...-to-Favorites-Should-have-star-when-hover-over-RNA-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.
12 changes: 2 additions & 10 deletions
12
ketcher-autotests/tests/Macromolecule-editor/RNA-Builder/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
Binary file modified
BIN
-420 Bytes
(99%)
...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.
Binary file modified
BIN
-1.27 KB
(96%)
...ayout.spec.ts-snapshots/RNA-layout-Each-panel-is-collapsed-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
-1.1 KB
(97%)
...pec.ts-snapshots/RNA-layout-RNA-Builder-panel-is-collapsed-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
-118 Bytes
(99%)
...NA-Library-Add-Custom-preset-to-Presets-section-and-Delete-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
-1.17 KB
(97%)
...ch-between-Macro-and-Micro-mode-does-not-crash-application-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
+7 Bytes
(100%)
...hosphate-and-Base-in-Library-once-it-chosen-in-RNA-Builder-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.
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
import { Page } from '@playwright/test'; | ||
import { turnOnMacromoleculesEditor } from '.'; | ||
import { RNA_TAB } from '@constants/testIdConstants'; | ||
|
||
export async function toggleRnaBuilderAccordion(page: Page) { | ||
await page.getByText('RNA Builder').locator('button').click(); | ||
} | ||
|
||
export async function gotoRNA(page: Page) { | ||
await turnOnMacromoleculesEditor(page); | ||
await page.getByTestId(RNA_TAB).click(); | ||
await toggleRnaBuilderAccordion(page); | ||
} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.