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
2 changes: 1 addition & 1 deletion packages/main/cypress/specs/ColorPicker.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe("Color Picker general interaction tests", () => {
.realClick({ position: "center" });

cy.get<ColorPicker>("@colorPicker")
.should("have.value", "rgba(64, 191, 189, 1)");
.should("have.value", "rgba(64, 191, 191, 1)");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tsanislavgatev I believe this test used to be wrong? Could you please confirm? the Slider' value is now correct from 0 to 360, clicking center should count as value 180

Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't say wrong, but testing on the current slider behaviour. Both colors are almost identical. They resolve to #40bfbf and #40bfbd which doesn't really have a noticable difference. The change in the test is okay, but I would say it just tests the behaviour of the component based on the behaviour of the slider.

});

it("should update value when alpha is changed via the Alpha slider", () => {
Expand Down
Loading
Loading