You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2022/03/03 02:24:13 UTC

[tapestry-5] branch latest-java-tests updated: Fixing TapestryBeanValidationIntegrationTests > beaneditform_validation

This is an automated email from the ASF dual-hosted git repository.

thiagohp pushed a commit to branch latest-java-tests
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git


The following commit(s) were added to refs/heads/latest-java-tests by this push:
     new 90494c3  Fixing TapestryBeanValidationIntegrationTests > beaneditform_validation
90494c3 is described below

commit 90494c3052add9fa6fc42e7db3827dfdf42bd22a
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Wed Mar 2 23:24:03 2022 -0300

    Fixing TapestryBeanValidationIntegrationTests > beaneditform_validation
---
 .../integration/TapestryBeanValidationIntegrationTests.java       | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tapestry-beanvalidator/src/test/java/org/apache/tapestry5/beanvalidator/integration/TapestryBeanValidationIntegrationTests.java b/tapestry-beanvalidator/src/test/java/org/apache/tapestry5/beanvalidator/integration/TapestryBeanValidationIntegrationTests.java
index bd0c889..6e945fc 100644
--- a/tapestry-beanvalidator/src/test/java/org/apache/tapestry5/beanvalidator/integration/TapestryBeanValidationIntegrationTests.java
+++ b/tapestry-beanvalidator/src/test/java/org/apache/tapestry5/beanvalidator/integration/TapestryBeanValidationIntegrationTests.java
@@ -15,6 +15,8 @@ package org.apache.tapestry5.beanvalidator.integration;
 
 import org.apache.tapestry5.test.SeleniumTestCase;
 import org.apache.tapestry5.test.TapestryTestConfiguration;
+import org.openqa.selenium.By;
+import org.openqa.selenium.support.ui.ExpectedConditions;
 import org.testng.annotations.Test;
 
 @Test(sequential = true, groups = "integration")
@@ -108,6 +110,12 @@ public class TapestryBeanValidationIntegrationTests extends SeleniumTestCase
     public void beaneditform_validation() throws Exception
     {
         openLinks("BeanEditForm Validation Demo");
+
+        // Ugly hack to fix the "Unable to locate element: //input[@type='submit']" error.
+        // I have no idea why it's failing here but not in other tests and pages.
+        // I have no idea why it's falling to begin with.
+        // waitForCondition(ExpectedConditions.presenceOfElementLocated(By.xpath(SUBMIT)));
+        Thread.sleep(5000);
         
         clickAndWait(SUBMIT);