You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2014/11/26 09:13:31 UTC

svn commit: r1641772 - in /myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle: selectManyShuttle-value.selenium.html selectManyShuttle-value.xhtml

Author: lofwyr
Date: Wed Nov 26 08:13:31 2014
New Revision: 1641772

URL: http://svn.apache.org/r1641772
Log:
TOBAGO-1425: tx:selectManyShuttle does not submit selected values
selenium test

Added:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.selenium.html
Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.xhtml

Added: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.selenium.html
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.selenium.html?rev=1641772&view=auto
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.selenium.html (added)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.selenium.html Wed Nov 26 08:13:31 2014
@@ -0,0 +1,80 @@
+<?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">
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+-->
+
+<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:8080/" />
+  <title>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+  <thead>
+  <tr><td rowspan="1" colspan="3">New Test</td></tr>
+  </thead><tbody>
+<tr>
+  <td>open</td>
+  <td>/faces/test/selectManyShuttle/selectManyShuttle-value.xhtml</td>
+  <td></td>
+</tr>
+<tr>
+  <td>addSelection</td>
+  <td>id=page:shuttle::unselected</td>
+  <td>label=B</td>
+</tr>
+<tr>
+  <td>click</td>
+  <td>id=page:shuttle::add</td>
+  <td></td>
+</tr>
+<tr>
+  <td>addSelection</td>
+  <td>id=page:shuttle::unselected</td>
+  <td>label=E (disabled)</td>
+</tr>
+<tr>
+  <td>click</td>
+  <td>id=page:shuttle::add</td>
+  <td></td>
+</tr>
+<tr>
+  <td>addSelection</td>
+  <td>id=page:shuttle::unselected</td>
+  <td>label=Y</td>
+</tr>
+<tr>
+  <td>click</td>
+  <td>id=page:shuttle::add</td>
+  <td></td>
+</tr>
+<tr>
+  <td>clickAndWait</td>
+	<td>id=page:submit</td>
+  <td></td>
+</tr>
+<tr>
+  <td>verifyValue</td>
+	<td>id=page:valueOnServer</td>
+  <td>b,y</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.xhtml?rev=1641772&r1=1641771&r2=1641772&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyShuttle/selectManyShuttle-value.xhtml Wed Nov 26 08:13:31 2014
@@ -22,7 +22,7 @@
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core">
 
-  <tc:page>
+  <tc:page id="page">
     <tc:gridLayoutConstraint width="700px" height="400px"/>
     <f:facet name="layout">
       <tc:gridLayout rows="auto;*;auto;auto"/>
@@ -30,7 +30,7 @@
 
     <tc:messages/>
 
-    <tc:selectManyShuttle value="#{shuttle.value}">
+    <tc:selectManyShuttle value="#{shuttle.value}" id="shuttle">
       <tc:selectItem itemValue="a" itemLabel="A (disabled)" itemDisabled="true"/>
       <tc:selectItem itemValue="b" itemLabel="B"/>
       <tc:selectItem itemValue="c" itemLabel="C"/>
@@ -59,9 +59,9 @@
       <tc:selectItem itemValue="z" itemLabel="Z"/>
     </tc:selectManyShuttle>
 
-    <tc:button label="submit"/>
+    <tc:button label="submit" id="submit"/>
 
-    <tx:in label="on server" value="#{shuttle.result}" readonly="true"/>
+    <tx:in label="on server" value="#{shuttle.result}" readonly="true" fieldId="valueOnServer"/>
 
   </tc:page>
 </f:view>