Skip to content

Autotests: Color Picker UI #10090

@github-actions

Description

@github-actions

Source task(s):

Suggested test scenarios:

  • Opening Molecules > Stereochemistry settings displays three color pickers: Absolute Center, AND Centers, and OR Centers
  • Clicking a preset color swatch in the palette immediately updates the color preview box to the selected color
  • Clicking Apply after selecting a preset swatch applies the chosen color to the corresponding stereochemistry center label in the editor
  • Clicking Cancel after selecting a new swatch discards the change and keeps the previously set color
  • Clicking the "+" icon opens the Custom Colors section revealing hue and brightness/saturation sliders and HEX input; clicking "X" closes it
  • Dragging the hue slider updates the color preview box and populates the HEX input field with the corresponding valid HEX code
  • Entering a valid HEX code (e.g. #FF5733) in the HEX input field updates the color preview box to match
  • Entering an invalid or incomplete HEX code (e.g. #GGG, #12) does not update the preview and is blocked by the input mask
  • Clicking the Delete icon next to the HEX input clears the field and resets the custom color preview
  • Applying a custom color defined via HEX input correctly updates the stereochemistry center color in the rendered molecule
  • Each of the three stereochemistry centers (Absolute, AND, OR) maintains its own independently selected color without cross-contamination
  • Selecting "Reset to Default" reverts all three stereochemistry center colors to Ketcher default values
  • Selecting "Reset to ACS" reverts all three stereochemistry center colors to the ACS preset values
  • Custom color selections persist after closing and reopening the Settings dialog (saved in browser cache)
  • Using "Save Settings" and "Load Settings" correctly serializes and restores all three stereochemistry center color values

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions