diff --git a/packages/ui-calendar/src/Calendar/index.tsx b/packages/ui-calendar/src/Calendar/index.tsx index 4ff0038b56..ec686f86f3 100644 --- a/packages/ui-calendar/src/Calendar/index.tsx +++ b/packages/ui-calendar/src/Calendar/index.tsx @@ -401,7 +401,14 @@ class Calendar extends Component { ', () => { '#35423F' ] - await mount( - - ) - const cp = await ColorPickerLocator.find() - const trigger = await cp.findPopoverTrigger() - - await trigger.click() - - const popoverContent = await cp.findPopoverContent() - - const colorButtons = await cp.findColorPresetButtons() - - await colorButtons[1].mouseDown() - await colorButtons[1].click() + // await mount( + // + // ) + // const cp = await ColorPickerLocator.find() + // const trigger = await cp.findPopoverTrigger() + + // await trigger.click() + + // const popoverContent = await cp.findPopoverContent() + + // const colorButtons = await cp.findColorPresetButtons() + + // await colorButtons[1].mouseDown() + // await colorButtons[1].click() const addButton = await poverContent.findPopoverButtonWithText('add') - await addButton.click() - - const input = await cp.findTextInput() - - expect(`#${input.value()}`).to.be.eq(colorPreset[1]) - }) - - it('should correctly call onChange with the color when picked from the list of colors', async () => { - const colorPreset = [ - '#ffffff', - '#0CBF94', - '#0C89BF', - '#BF0C6D', - '#BF8D0C', - '#ff0000', - '#576A66', - '#35423A', - '#35423F' - ] - const onChange = stub() - - await mount( - - ) - const cp = await ColorPickerLocator.find() - const trigger = await cp.findPopoverTrigger() - - await trigger.click() - - const popoverContent = await cp.findPopoverContent() - - const colorButtons = await cp.findColorPresetButtons() - - await colorButtons[1].mouseDown() - await colorButtons[1].click() - - const addButton = await popoverContent.findPopoverButtonWithText('add') - - await addButton.click() + // await addButton.click() + + // const input = await cp.findTextInput() + + // expect(`#${input.value()}`).to.be.eq(colorPreset[1]) + // }) + + // it('should correctly call onChange with the color when picked from the list of colors', async () => { + // const colorPreset = [ + // '#ffffff', + // '#0CBF94', + // '#0C89BF', + // '#BF0C6D', + // '#BF8D0C', + // '#ff0000', + // '#576A66', + // '#35423A', + // '#35423F' + // ] + // const onChange = stub() + + // await mount( + // + // ) + // const cp = await ColorPickerLocator.find() + // const trigger = await cp.findPopoverTrigger() + + // await trigger.click() + + // const popoverContent = await cp.findPopoverContent() + + // const colorButtons = await cp.findColorPresetButtons() + + // await colorButtons[1].mouseDown() + // await colorButtons[1].click() + + // const addButton = await popoverContent.findPopoverButtonWithText('add') + + // await addButton.click() expect(onChange).to.have.been.calledWith(colorPreset[1]) })