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

File upload xpath error in IceFacesApplicantPortletTester.java

    Details

      Description

      The IceFacesApplicantPortletTester.java class does not have a getUploadedFileXpath() method and therefore uses the default value from BridgeApplicantPortletTester.java:

      ApplicantTesterBase.java
      protected String getUploadedFileXpath() {
      	return "//tr[@class='portlet-section-body results-row']/td[2]";
      }
      

      For ace:dataTable, a method similar to the following should be added:

      IceFacesApplicantPortletTester.java
      @Override
      protected String getUploadedFileXpath() {
      	return "//tr[@class='ui-datatable-even']/td[2]";
      }
      

      Steps to Reproduce:

      1. Deploy the icefaces-applicant-portlet demo with ICEfaces 4.2.0 or 4.2.0-SNAPSHOT to Liferay Portal 7.0

      2. Run the integration test:

      mvn clean verify -P selenium,liferay,chrome -Dit.test=*IceFaces*
      

      Expected Results:

      All tests pass.

      Actual Results:

      The uploaded file is not detected and the following error appears in the console log output:

      Tests in error:
        IceFacesApplicantPortletTester>ApplicantTesterBase.runApplicantPortletTest_I_FileUpload:286->ApplicantTesterBase.submitFile:471 ยป Timeout
      

        Attachments

          Activity

            People

            Assignee:
            neil.griffin Neil Griffin
            Reporter:
            neil.griffin Neil Griffin
            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-3.1.0
                bridge-impl-4.1.0