Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

&.markAsComponentIcon {
width: 15px;
color: var(--color-icon-grey);
color: var(--color-icon-grey, @color-grey-5);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,37 +221,6 @@ describe('RnaPresetTabs - applyHighlights function', () => {
expect(mockEditor.highlights.clear).toHaveBeenCalled();
});

it('should not create highlights when highlightEnabled is false', () => {
wizardState.base.structure = {
atoms: [1, 2, 3],
bonds: [1, 2],
};

render(
<Provider store={mockStore}>
<RnaPresetTabs
wizardState={wizardState}
editor={mockEditor}
wizardStateDispatch={mockDispatch}
phosphatePosition={undefined}
onPhosphatePositionChange={mockOnPhosphatePositionChange}
/>
</Provider>,
);

// Clear the initial calls
mockEditor.highlights.clear.mockClear();
mockEditor.highlights.create.mockClear();

// Click the highlight checkbox to disable it
const highlightCheckbox = screen.getByRole('checkbox');
fireEvent.click(highlightCheckbox);

// Should clear but not create new highlights
expect(mockEditor.highlights.clear).toHaveBeenCalled();
expect(mockEditor.highlights.create).not.toHaveBeenCalled();
});

it('should apply active highlight color to the active tab component', () => {
const ACTIVE_HIGHLIGHT_COLOR = '#CDF1FC';
wizardState.base.structure = {
Expand Down
Loading
Loading