summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/fieldgroup
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-01-27 18:16:03 +0200
committerArtur Signell <artur@vaadin.com>2015-02-04 16:25:47 +0200
commitfcaf5e9fb70088d7c772be0a82a09952236e5b3a (patch)
tree9bcbbbe264252b4375050fc59da312ceeb927de9 /uitest/src/com/vaadin/tests/fieldgroup
parent2ce286d9b24d451beb0bb005d592a2868dffbfc0 (diff)
downloadvaadin-framework-fcaf5e9fb70088d7c772be0a82a09952236e5b3a.tar.gz
vaadin-framework-fcaf5e9fb70088d7c772be0a82a09952236e5b3a.zip
Use a custom field factory for editor row (#16513)
Change-Id: I0102d93c7f661993a5a07d2bcdf511f433419300
Diffstat (limited to 'uitest/src/com/vaadin/tests/fieldgroup')
-rw-r--r--uitest/src/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRowTest.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRowTest.java b/uitest/src/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRowTest.java
new file mode 100644
index 0000000000..3ccd547417
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/fieldgroup/BasicCrudGridEditorRowTest.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.tests.fieldgroup;
+
+import org.junit.Test;
+import org.openqa.selenium.interactions.Actions;
+
+import com.vaadin.testbench.elements.GridElement;
+import com.vaadin.testbench.elements.GridElement.GridCellElement;
+import com.vaadin.tests.tb3.MultiBrowserTest;
+
+public class BasicCrudGridEditorRowTest extends MultiBrowserTest {
+
+ @Test
+ public void lookAndFeel() throws Exception {
+ openTestURL();
+ GridElement grid = $(GridElement.class).first();
+ GridCellElement ritaBirthdate = grid.getCell(2, 3);
+ compareScreen("grid");
+
+ // Open editor row
+ new Actions(getDriver()).doubleClick(ritaBirthdate).perform();
+ compareScreen("editorrow");
+
+ }
+}