--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://localhost:8068/" />
+<title>ClickingWhilePopupOpen</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">ClickingWhilePopupOpen</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/run/ClickingWhilePopupOpen?restartApplication&debug</td>
+ <td></td>
+</tr>
+<tr>
+ <td>mouseClick</td>
+ <td>vaadin=runClickingWhilePopupOpen::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VPopupView[0]</td>
+ <td>132,7</td>
+</tr>
+<tr>
+ <td>mouseClick</td>
+ <td>vaadin=runClickingWhilePopupOpen::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VPopupView[0]</td>
+ <td>132,7</td>
+</tr>
+<tr>
+ <td>assertTextNotPresent</td>
+ <td>IllegalStateException: Cannot set a new parent without first clearing the old parent</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
--- /dev/null
+package com.vaadin.tests.components.popupview;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.PopupView;
+
+public class ClickingWhilePopupOpen extends TestBase {
+
+ @Override
+ protected void setup() {
+ Label popup = new Label("Popup");
+ popup.setSizeUndefined();
+ addComponent(new PopupView("Click here to open the popup", popup));
+ }
+
+ @Override
+ protected String getDescription() {
+ return "Clicking the popup view when the popup is already open throws a client-side IllegalStateException";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 8786;
+ }
+
+}