Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3440

JSF JSP Applicant Portlet tester fails on Chrome 74

    Details

      Description

      Steps to reproduce:

      1. Deploy the JSF JSP Applicant Portlet to Liferay 7.0+.
      2. Run the JSF JSP Applicant Portlet tester with Chrome 74:
        (cd test/integration/ && mvn verify -P selenium,firefox -Dit.test=*JSP*)
        

      If the bug still exists, the runApplicantPortletTest_E_AllFieldsRequired test will fail with the following output:

      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester
      Starting ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}) on port 21888
      Only local connections are allowed.
      Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
      Tests run: 10, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 34.525 sec <<< FAILURE! - in com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester
      runApplicantPortletTest_E_AllFieldsRequired(com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester)  Time elapsed: 13.029 sec  <<< FAILURE!
      com.liferay.faces.test.selenium.browser.internal.WaitingAsserterImpl$1: org.openqa.selenium.TimeoutException: Timed out after 10 seconds waiting for all conditions to be valid: text ('Value is required') to be present in element found by By.xpath: //input[contains(@id,':postalCode')]/../span[@class='portlet-msg-error']visibility of element located by By.xpath: //input[contains(@id,':postalCode')]/../span[@class='portlet-msg-error']
              at com.liferay.faces.test.selenium.browser.internal.WaitingAsserterImpl.createAssertionErrorWithoutExtraInfo(WaitingAsserterImpl.java:43)
              at com.liferay.faces.test.selenium.browser.internal.WaitingAsserterImpl.assertTrue(WaitingAsserterImpl.java:172)
              at com.liferay.faces.test.selenium.browser.internal.WaitingAsserterImpl.assertTextPresentInElement(WaitingAsserterImpl.java:147)
              at com.liferay.faces.test.selenium.browser.internal.WaitingAsserterImpl.assertTextPresentInElement(WaitingAsserterImpl.java:137)
              at com.liferay.faces.bridge.test.integration.demo.applicant.JSF_JSPApplicantPortletTester.runApplicantPortletTest_E_AllFieldsRequired(JSF_JSPApplicantPortletTester.java:117)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
              at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
              at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
              at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
              at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
              at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
              at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
              at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
              at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
              at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
              at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      Caused by: org.openqa.selenium.TimeoutException: Timed out after 10 seconds waiting for all conditions to be valid: text ('Value is required') to be present in element found by By.xpath: //input[contains(@id,':postalCode')]/../span[@class='portlet-msg-error']visibility of element located by By.xpath: //input[contains(@id,':postalCode')]/../span[@class='portlet-msg-error']
      Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
      System info: host: 'kylestiemann-XPS-15-9530', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-144-generic', java.version: '1.8.0_172'
      Driver info: org.openqa.selenium.chrome.ChromeDriver
      Capabilities [{mobileEmulationEnabled=false, timeouts={implicit=0, pageLoad=300000, script=30000}, hasTouchScreen=false, platform=LINUX, acceptSslCerts=false, goog:chromeOptions={debuggerAddress=localhost:42435}, acceptInsecureCerts=false, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=ignore, applicationCacheEnabled=false, rotatable=false, networkConnectionEnabled=false, chrome={chromedriverVersion=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}), userDataDir=/tmp/.com.google.Chrome.XzjmQ4}, takesHeapSnapshot=true, pageLoadStrategy=normal, strictFileInteractability=false, databaseEnabled=false, handlesAlerts=true, version=74.0.3729.131, browserConnectionEnabled=false, proxy={}, nativeEvents=true, locationContextEnabled=true, cssSelectorsEnabled=true}]
      Session ID: a29e6be0c2ae88d645445d0215fdc8ee
              at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:80)
              at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:261)
              at com.liferay.faces.test.selenium.browser.internal.BrowserDriverImpl.waitFor(BrowserDriverImpl.java:468)
              at com.liferay.faces.test.selenium.browser.internal.WaitingAsserterImpl.assertTrue(WaitingAsserterImpl.java:169)
              ... 30 more
      
      
      Results :
      
      Failed tests:
        JSF_JSPApplicantPortletTester.runApplicantPortletTest_E_AllFieldsRequired:117 org.openqa.selenium.TimeoutException: Timed out after 10 seconds waiting for all conditions to be valid: text ('Value is required') to be present in element found by By.xpath: //input[contains(@id,':postalCode')]/../span[@class='portlet-msg-error']visibility of element located by By.xpath: //input[contains(@id,':postalCode')]/../span[@class='portlet-msg-error']
      
      Tests run: 10, Failures: 1, Errors: 0, Skipped: 2
      
      [INFO]
      [INFO] --- maven-failsafe-plugin:2.19.1:verify (selenium-tests) @ com.liferay.faces.test.bridge.integration ---
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 37.036 s
      [INFO] Finished at: 2019-05-13T13:15:18-04:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.19.1:verify (selenium-tests) on project com.liferay.faces.test.bridge.integration: There are test failures.
      [ERROR]
      [ERROR] Please refer to /home/kylestiemann/Projects/liferay.com/liferay-faces-bridge-impl/test/integration/target/failsafe-reports for the individual test results.
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      

      If the bug is fixed, the JSF JSP Applicant portlet tester will pass all non-skipped tests.

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann (Inactive)
              Reporter:
              kyle.stiemann Kyle Stiemann (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                bridge-impl-4.1.3