From bc576f48aa4fd51114cba4426e7ab95e633ac719 Mon Sep 17 00:00:00 2001
From: Zhe Sun <31067185+ZheSun88@users.noreply.github.com>
Date: Mon, 24 Jun 2019 11:10:49 +0300
Subject: Limit previous solution for non-push mode UI (#11629)

* add test case

* Limit the workaround for non-push mode

Fixes #11616
---
 .../components/upload/InterruptUploadWithPush.java     | 18 ++++++++++++++++++
 .../components/upload/InterruptUploadWithPushTest.java |  4 ++++
 2 files changed, 22 insertions(+)
 create mode 100644 uitest/src/main/java/com/vaadin/tests/components/upload/InterruptUploadWithPush.java
 create mode 100644 uitest/src/test/java/com/vaadin/tests/components/upload/InterruptUploadWithPushTest.java

(limited to 'uitest')

diff --git a/uitest/src/main/java/com/vaadin/tests/components/upload/InterruptUploadWithPush.java b/uitest/src/main/java/com/vaadin/tests/components/upload/InterruptUploadWithPush.java
new file mode 100644
index 0000000000..a16c0d97ee
--- /dev/null
+++ b/uitest/src/main/java/com/vaadin/tests/components/upload/InterruptUploadWithPush.java
@@ -0,0 +1,18 @@
+package com.vaadin.tests.components.upload;
+
+import com.vaadin.annotations.Push;
+
+@Push
+public class InterruptUploadWithPush extends InterruptUpload {
+
+    @Override
+    protected Integer getTicketNumber() {
+        return 11616;
+    }
+
+    @Override
+    public String getDescription() {
+        return "Interrupting an upload with @Push shouldn't prevent uploading that same file immediately afterwards.";
+    }
+
+}
diff --git a/uitest/src/test/java/com/vaadin/tests/components/upload/InterruptUploadWithPushTest.java b/uitest/src/test/java/com/vaadin/tests/components/upload/InterruptUploadWithPushTest.java
new file mode 100644
index 0000000000..2924cc1e1f
--- /dev/null
+++ b/uitest/src/test/java/com/vaadin/tests/components/upload/InterruptUploadWithPushTest.java
@@ -0,0 +1,4 @@
+package com.vaadin.tests.components.upload;
+
+public class InterruptUploadWithPushTest extends InterruptUploadTest {
+}
-- 
cgit v1.2.3