Skip to content

Commit be96ead

Browse files
authored
chore: update ColorPicker.cy.tsx
1 parent 1c551c8 commit be96ead

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/main/cypress/specs/ColorPicker.cy.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ColorPicker from "../../src/ColorPicker.js";
2+
import { COLORPICKER_HUE_SLIDER } from "../../src/generated/i18n/i18n-defaults.js";
23

34
describe("Color Picker general interaction tests", () => {
45
it("should not display color channel inputs and alpha slider in simplified mode", () => {
@@ -372,7 +373,7 @@ describe("Color Picker accessibility tests", () => {
372373
cy.get<ColorPicker>("@colorPicker")
373374
.shadow()
374375
.find(".ui5-color-picker-hue-slider")
375-
.should("have.attr", "accessible-name", "Hue control");
376+
.should("have.attr", "accessible-name", ColorPicker.i18nBundle.getText(COLORPICKER_HUE_SLIDER));
376377

377378
cy.get<ColorPicker>("@colorPicker")
378379
.shadow()

0 commit comments

Comments
 (0)