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

Showcase tests fail to find error messages when running against Alloy Showcase 2.x

    Details

      Description

      {markdown}
      The showcase test fail to find error messages when running against the Alloy Showcase version 2.x. This is because the CSS classes for error messages are different between Bootstrap 2 (Alloy 2) and Bootstrap 3 (Alloy 3). In order to fix this issue, the error message xpaths should be changed to select error messages from Bootstrap 2 or Bootstrap 3 (likely with the `or` operator or the union operator ("`|`") ([example](https://github.com/liferay/liferay-faces-showcase/blob/master/jsf-showcase-webapp/src/test/java/com/liferay/faces/test/showcase/selectmanycheckbox/SelectManyCheckboxTester.java#L29))).

      Here's a list of the failing tests:{markdown}
      Results :
      
      Failed tests:   runInputHiddenGeneralTest(com.liferay.faces.test.showcase.inputhidden.InputHiddenGeneralTester): Element (//div[contains(@class,'field form-group has-success')])[1] is not present in the DOM.
        runInputHiddenValidationTest(com.liferay.faces.test.showcase.inputhidden.InputHiddenValidationTester): Element (//div[contains(@class,'field form-group has-error')])[1] is not present in the DOM.
        runInputSecretGeneralTest(com.liferay.faces.test.showcase.inputsecret.InputSecretGeneralTester): Element (//div[contains(@class,'field form-group has-success')])[1] is not present in the DOM.
        runInputSecretValidationTest(com.liferay.faces.test.showcase.inputsecret.InputSecretValidationTester): Element (//div[contains(@class,'field form-group has-error')])[1] is not present in the DOM.
        runInputTextConversionTest(com.liferay.faces.test.showcase.inputtext.InputTextConversionTester): Element (//div[contains(@class,'field form-group has-error')])[1] is not present in the DOM.
        runInputTextGeneralTest(com.liferay.faces.test.showcase.inputtext.InputTextGeneralTester): Element (//div[contains(@class,'field form-group has-success')])[1] is not present in the DOM.
        runInputTextValidationTest(com.liferay.faces.test.showcase.inputtext.InputTextValidationTester): Element (//div[contains(@class,'field form-group has-error')])[1] is not present in the DOM.
        runInputTextareaConversionTest(com.liferay.faces.test.showcase.inputtextarea.InputTextareaConversionTester): Element (//div[contains(@class,'field form-group has-error')])[1] is not present in the DOM.
        runInputTextareaGeneralTest(com.liferay.faces.test.showcase.inputtextarea.InputTextareaGeneralTester): Element (//div[contains(@class,'field form-group has-success')])[1] is not present in the DOM.
        runInputTextareaValidationTest(com.liferay.faces.test.showcase.inputtextarea.InputTextareaValidationTester): Element (//div[contains(@class,'field form-group has-error')])[1] is not present in the DOM.
        runSelectManyCheckboxGeneralTest(com.liferay.faces.test.showcase.selectmanycheckbox.SelectManyCheckboxGeneralTester): Element (//div[contains(@class,'field form-group has-error') and contains(., 'Validation Error: Value is required.')])[1] is not present in the DOM.
        runSelectManyListboxGeneralTest(com.liferay.faces.test.showcase.selectmanylistbox.SelectManyListboxGeneralTester): Element (//div[contains(@class,'field form-group has-error') and contains(., 'Validation Error: Value is required.')])[1] is not present in the DOM.
        runSelectManyMenuGeneralTest(com.liferay.faces.test.showcase.selectmanymenu.SelectManyMenuGeneralTester): Element (//div[contains(@class,'field form-group has-error') and contains(., 'Validation Error: Value is required.')])[1] is not present in the DOM.
        runSelectOneListboxGeneralTest(com.liferay.faces.test.showcase.selectonelistbox.SelectOneListboxGeneralTester): Element (//div[contains(@class,'field form-group has-error') and contains(., 'Validation Error: Value is required.')])[1] is not present in the DOM.
        runSelectOneMenuGeneralTest(com.liferay.faces.test.showcase.selectonemenu.SelectOneMenuGeneralTester): Element (//div[contains(@class,'field form-group has-error') and contains(., 'Validation Error: Value is required.')])[1] is not present in the DOM.
        runSelectOneRadioGeneralTest(com.liferay.faces.test.showcase.selectoneradio.SelectOneRadioGeneralTester): Element (//div[contains(@class,'field form-group has-error') and contains(., 'Validation Error: Value is required.')])[1] is not present in the DOM.
      
      Tests run: 67, Failures: 16, Errors: 0, Skipped: 0
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                showcase-2.0.0
                showcase-3.0.0