Skip to content

Commit a72e7da

Browse files
Merge pull request ecamp#5370 from BacLuc/skip-frontend-test
EColorPicker.spec.js: delete "accepts 3-digit hex color codes, after picker has been shown"
2 parents 97d6fea + 36aef83 commit a72e7da

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

frontend/src/components/form/base/__tests__/EColorPicker.spec.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -234,26 +234,6 @@ describe('An EColorPicker', () => {
234234
await screen.findByText(VALIDATION_MESSAGE)
235235
})
236236

237-
it('accepts 3-digit hex color codes, after picker has been shown', async () => {
238-
render(EColorPicker, {
239-
props: { value: COLOR1, label: 'test' },
240-
})
241-
const inputField = await screen.findByDisplayValue(COLOR1)
242-
const button = await screen.getByLabelText(PICKER_BUTTON_LABEL_TEXT)
243-
// click the button to open the picker
244-
await user.click(button)
245-
246-
// when
247-
await user.clear(inputField)
248-
await user.keyboard('#abc')
249-
await fireEvent.blur(inputField)
250-
251-
// then
252-
await waitFor(() => {
253-
screen.getByDisplayValue('#AABBCC')
254-
})
255-
})
256-
257237
it('accepts null', async () => {
258238
render(EColorPicker, {
259239
props: { value: COLOR2, label: 'test' },

0 commit comments

Comments
 (0)