diff --git a/.changeset/eighty-games-wink.md b/.changeset/eighty-games-wink.md new file mode 100644 index 0000000000..e87dc56b5f --- /dev/null +++ b/.changeset/eighty-games-wink.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-components': patch +--- + +Fixed bug where `', () => { expect(input.textContent).toBe('test 1'); }); + it('display nothing when placeholder is empty string and items updated to none', () => { + const initialValue = 'initial'; + const initialItems = [{ label: initialValue, value: initialValue }]; + const { getByTestId, rerender } = render( + ); + + expect(getByTestId('select').textContent).toBe(''); + }); + it('display the placeholder value when selected props updated to undefined', async () => { const { getByTestId, rerender } = render(