-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macro: #3495 - Is not possible to add RNA presets into the Favourite library #3584
Macro: #3495 - Is not possible to add RNA presets into the Favourite library #3584
Conversation
b52115d
to
8b5e7ad
Compare
8b5e7ad
to
7844d35
Compare
}); | ||
|
||
test('Should have star when hover over RNA presets', async ({ page }) => { | ||
await page.getByTestId('A_A_R_P').hover(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My proposal is not to add a lot of screenshots. if tests can be written w/o it, let's do it.
So for this specific case – you can screenshot NOT whole page, but only specific DOM-element.
In addition, you can check the functionality, by checking DOM-elements. For example, you can open "favourite" tab and check that preset isn't there, then add it to "favourites" and check that it appears – no screenshot needed.
import { turnOnMacromoleculesEditor } from '@utils/macromolecules'; | ||
import { toggleRnaBuilderAccordion } from '@utils/macromolecules/rnaBuilder'; | ||
|
||
async function gotoRNA(page: Page) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we already have this function somewhere. Can you move it to utils?
@@ -31,9 +33,15 @@ export const RNAContextMenu = () => { | |||
switch (id) { | |||
case 'duplicateandedit': | |||
props.duplicatePreset(activePresetForContextMenu); | |||
if (selectedTabIndex !== 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use a constant/enum for this
setActivePreset, | ||
setIsEditMode, | ||
} from 'state/rna-builder'; | ||
import { scrollToSelectedPreset } from './RnaBuilder/RnaEditor/RnaEditor'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move styles to separate file?
dispatch(createNewPreset()); | ||
dispatch(setActiveRnaBuilderItem(RnaBuilderPresetsItem.Presets)); | ||
} | ||
}, [activePreset]); | ||
|
||
const expandEditor = () => { | ||
setExpanded(!expanded); | ||
if (!activePreset.presetInList) { | ||
if (!activePreset?.presetInList) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you, please, also check the behaviour for editing presets?
- Just create any preset
- Click edit
- Try to change a name of preset
- Focus from input field is constantly lost after single character typing.
…ot-possible-to-add-rna-presets-into-the-favourite-library
0baf296
to
711a640
Compare
…ot-possible-to-add-rna-presets-into-the-favourite-library
…ot-possible-to-add-rna-presets-into-the-favourite-library
…ot-possible-to-add-rna-presets-into-the-favourite-library
…ot-possible-to-add-rna-presets-into-the-favourite-library
…ot-possible-to-add-rna-presets-into-the-favourite-library
…ot-possible-to-add-rna-presets-into-the-favourite-library
4612884
to
4c139de
Compare
…ot-possible-to-add-rna-presets-into-the-favourite-library
How the feature works? / How did you fix the issue?
(Screenshots, videos, or GIFs, if applicable)


Check list
#1234 – issue name