Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EColorPicker.spec.js: delete "accepts 3-digit hex color codes, after picker has been shown" #5370

Merged
merged 1 commit into from
Jun 16, 2024
Merged
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
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
Loading