Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-153652

Ending a text input with a comma in Accounts automation tests causes an Array Index Out Of Bounds Exception

Description

    Accounts tests that add Addresses are failing through automation because of an ArrayIndexOutOfBoundsException.
    Steps to reproduce (as noted by poshi steps) (unable to reproduce manually).

    1. Create a business account via JSON
    2. Go to Accounts Admin (Applications Menu -> Control Panel -> Accounts)
    3. Click into created account
    4. Go to addresses tab and begin adding in details.
      Expected results: Automation test is able to fill out all desired inputs.
      Actual Results: Automation test fails when trying to fill out any input that ends with a comma.
      Our failing tests all have something similar to addressStreet1 = "537 Huangpu Road Taide Building," Removing the comma from the end allows test to continue normally without error.
      Addresses that end in a comma can still be saved when done manually.

    Testray
    Poshi
    Jenkins

         [exec]     BUILD FAILED: 1
         [exec]     /opt/dev/projects/github/liferay-portal/modules/apps/account/account-test/src/testFunctional/macros/Accounts.macro[_inputAddressDetails]:22
         [exec]     /opt/dev/projects/github/liferay-portal/modules/apps/account/account-test/src/testFunctional/macros/Accounts.macro[addAddress]:106
         [exec]     /opt/dev/projects/github/liferay-portal/modules/apps/account/account-test/src/testFunctional/tests/Accounts.testcase[CanDeleteAddress]:1712
         [exec] 
         [exec] 
         [exec] com.liferay.poshi.runner.PoshiRunner > test[LocalFile.Accounts#CanDeleteAddress] STANDARD_ERROR
         [exec]     java.lang.ArrayIndexOutOfBoundsException: 1
         [exec]     	at com.liferay.poshi.runner.selenium.BaseWebDriverImpl.moveToElement(BaseWebDriverImpl.java:4381)
    

    Attachments

      Activity

        People

          sharry.shi Sharry Shi
          eric.park Eric Park
          Marta Elicegui Marta Elicegui
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved:
            1 year, 2 weeks, 3 days ago

            Packages

              Version Package