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

Test failure in Jsf2Html5PortletTest due to HTML5 date picker

    Details

      Description

      The jsf2-html5-portlet demo was developed in FACES-1786. It uses the new JSF 2.2 HTML5 Friendly Markup feature in order to render an HTML5 date picker:

      <input type="date" jsf:value="#{applicantModelBean.dateOfBirth}" />
      

      Unfortunately this component is not compatible with the way we test for date patterns like "MM/dd/yyyy" with the portlet preferences.

      Here is a log of the test failures:

      Tests run: 11, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 28.693 sec <<< FAILURE!
      
      Results :
      
      Tests in error: 
        jobApplicantRenderViewMode(com.liferay.faces.test.Jsf2Html5PortletTest): Unable to locate element: {"method":"xpath","selector":"//div[contains(text(),'You are signed in as')]"}(..)
        dataEntry(com.liferay.faces.test.Jsf2Html5PortletTest): Unable to locate element: {"method":"xpath","selector":"//input[contains(@id,':firstName')]"}(..)
        validateEmail(com.liferay.faces.test.Jsf2Html5PortletTest): Unable to locate element: {"method":"xpath","selector":"//input[contains(@id,':emailAddress')]"}(..)
        preferencesAndEditMode(com.liferay.faces.test.Jsf2Html5PortletTest): Unable to locate element: {"method":"xpath","selector":"//span[contains(text(),'Preferences')]/.."}(..)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  liferay-faces-4.2.5-ga6