Skip to content

Commit

Permalink
Merge pull request #5370 from BacLuc/skip-frontend-test
Browse files Browse the repository at this point in the history
EColorPicker.spec.js: delete "accepts 3-digit hex color codes, after picker has been shown"
  • Loading branch information
manuelmeister committed Jun 16, 2024
2 parents 97d6fea + 36aef83 commit a72e7da
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions frontend/src/components/form/base/__tests__/EColorPicker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,26 +234,6 @@ describe('An EColorPicker', () => {
await screen.findByText(VALIDATION_MESSAGE)
})

it('accepts 3-digit hex color codes, after picker has been shown', async () => {
render(EColorPicker, {
props: { value: COLOR1, label: 'test' },
})
const inputField = await screen.findByDisplayValue(COLOR1)
const button = await screen.getByLabelText(PICKER_BUTTON_LABEL_TEXT)
// click the button to open the picker
await user.click(button)

// when
await user.clear(inputField)
await user.keyboard('#abc')
await fireEvent.blur(inputField)

// then
await waitFor(() => {
screen.getByDisplayValue('#AABBCC')
})
})

it('accepts null', async () => {
render(EColorPicker, {
props: { value: COLOR2, label: 'test' },
Expand Down

0 comments on commit a72e7da

Please sign in to comment.