You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2012/12/16 00:19:55 UTC

git commit: Update test for changes to the Palette component

Updated Branches:
  refs/heads/5.4-js-rewrite 2dc5ba686 -> 2f491839c


Update test for changes to the Palette component


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/2f491839
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/2f491839
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/2f491839

Branch: refs/heads/5.4-js-rewrite
Commit: 2f491839c673751c6da97f457d9897f2d1659a13
Parents: 2dc5ba6
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Sat Dec 15 15:19:41 2012 -0800
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Sat Dec 15 15:19:41 2012 -0800

----------------------------------------------------------------------
 .../itest/YUICompressorIntegrationTests.groovy     |   18 ++++++++++----
 1 files changed, 13 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/2f491839/tapestry-yuicompressor/src/test/groovy/org/apache/tapestry5/yuicompressor/itest/YUICompressorIntegrationTests.groovy
----------------------------------------------------------------------
diff --git a/tapestry-yuicompressor/src/test/groovy/org/apache/tapestry5/yuicompressor/itest/YUICompressorIntegrationTests.groovy b/tapestry-yuicompressor/src/test/groovy/org/apache/tapestry5/yuicompressor/itest/YUICompressorIntegrationTests.groovy
index 75f47d5..635f538 100644
--- a/tapestry-yuicompressor/src/test/groovy/org/apache/tapestry5/yuicompressor/itest/YUICompressorIntegrationTests.groovy
+++ b/tapestry-yuicompressor/src/test/groovy/org/apache/tapestry5/yuicompressor/itest/YUICompressorIntegrationTests.groovy
@@ -1,4 +1,4 @@
-// Copyright 2011 The Apache Software Foundation
+// Copyright 2011, 2012 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -19,19 +19,27 @@ import org.testng.annotations.Test;
 
 class YUICompressorIntegrationTests extends SeleniumTestCase
 {
+    def AVAILABLE_OPTIONS = "css=.t-palette-available select";
+
+    def SELECT_BUTTON = "css=.t-palette [data-action=select]";
+
     @Test
     void basic_functionality() {
 
         openBaseURL()
 
-        addSelection "languages-avail", "label=Clojure"
-        click "languages-select"
+        waitForPageInitialized()
 
-        addSelection "languages-avail", "label=Java"
-        click "languages-select"
+        addSelection AVAILABLE_OPTIONS, "label=Clojure"
+        click SELECT_BUTTON
+
+        addSelection AVAILABLE_OPTIONS, "label=Java"
+        click SELECT_BUTTON
         
         clickAndWait SUBMIT
 
+        waitForPageInitialized()
+
         assertText "selected", "CLOJURE, JAVA"
     }