#10017 - Autotests: Highlighting - presets in the monomer creation wizard#10122
Merged
Conversation
Implements test cases for issue #10017 covering: - Highlight checkbox presence and default state - Fluorescent blue outline for inactive components - Pale blue shading for active components - Turning highlight OFF removes all outlines/shading - No highlight before components are defined - Multiple component highlighting behavior 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Alexey Girin <AlexeyGirin@users.noreply.github.com>
5 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds automated coverage for the “Highlight” behavior in the Monomer Creation Wizard’s nucleotide preset flow by exposing a stable UI selector and adding Playwright tests that capture the expected visual states.
Changes:
- Added a
data-testidto the Highlight checkbox in the nucleotide preset UI. - Introduced a new Playwright spec that covers Highlight default state and visual highlighting behavior across tabs.
- Extended the Nucleotide preset page object with a Highlight checkbox locator and a helper to toggle it.
Reviewed changes
Copilot reviewed 3 out of 18 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/ketcher-react/src/script/ui/views/components/MonomerCreationWizard/RnaPresetTabs.tsx | Adds a stable data-testid (highlight-toggle) to the Highlight checkbox for UI test automation. |
| ketcher-autotests/tests/specs/Chromium-popup/Features/8851-highlighting-presets-monomer-wizard.spec.ts | Adds Playwright coverage for Highlight default state and tab-dependent highlighting behavior, using screenshot assertions. |
| ketcher-autotests/tests/pages/molecules/canvas/createMonomer/NucleotidePresetSection.ts | Exposes the Highlight checkbox via test id and adds a setHighlight() helper for tests. |
YatsekTest
approved these changes
May 27, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #10017