Skip to content

#10017 - Autotests: Highlighting - presets in the monomer creation wizard#10122

Merged
AlexeyGirin merged 3 commits into
masterfrom
claude/issue-10017-20260526-0933
May 27, 2026
Merged

#10017 - Autotests: Highlighting - presets in the monomer creation wizard#10122
AlexeyGirin merged 3 commits into
masterfrom
claude/issue-10017-20260526-0933

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Closes #10017

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>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-testid to 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.

@AlexeyGirin AlexeyGirin merged commit 7d1d159 into master May 27, 2026
15 of 16 checks passed
@AlexeyGirin AlexeyGirin deleted the claude/issue-10017-20260526-0933 branch May 27, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autotests: Highlighting - presets in the monomer creation wizard

3 participants