Steps to reproduce:
- Add a wiki portlet to a page > Click on "This page is empty. Edit it to add some text."
- Click on content field > Click on + button
- Assert the item selector appears > Click on the URL tab
- Type an image URL (https://raw.githubusercontent.com/liferay/liferay-portal/master/portal-web/test/functional/com/liferay/portalweb/dependencies/Document_1.jpg)
- Assert the first add button (under For example) is available > Click on it
- Assert the second add button on the bottom right is available > Click on it
- Delete the URL
- Assert the first add button (under For example) is not available
The second add button is not available, then the image can not be added (or remove the second add button).
Click on the second add button, the image still can be added.