-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Various environments. Recreated mostly on Fedora Workstation 26, with git-plugin 3.4.1 in use. 3.6.3 will recreate it as well.
Seen with Firefox 46, and Chrome 62.0.3202.62.
Summary:
The acceptance test GitPluginTest#ancestry_strategy_to_choose_build fails every time it is run. I believe this is because it is unable to select "Strategy for choosing what to build," under "Additional Behaviours" when setting up the job to test with.
Steps to recreate:
1. Set your environment up to run the ATH as per the README. For this particular recreate, you should only need:
cd ../acceptance-test-harness/ export JENKINS_WAR=/home/kshultz/jenkinsWars/jenkins.war # Or firefox. I've got a -Dwebdriver.firefox.bin=/home/kshultz/bin/firefox-46/firefox # option that I use to make sure Firefox doesn't try to update itself part # way through the test export BROWSER=chrome # only need this if you've got a particular build of git-plugin you want to test export GIT_JPI=/home/kshultz/pluginBuilds/git
2. Run mvn clean test -Dtest=GitPluginTest#ancestry_strategy_to_choose_build. If you want to slow things down so you can see what's happening, I found that you can put a sleep, and a debug println, just above just above line 194 of GitScm.java. Kind of like this:
public <T extends Behaviour> T addBehaviour(Class<T> type) { System.out.println("\n--> Go watch the pulldown now\n"); sleep(10000); control("hetero-list-add[extensions]").click(); return newInstance(type, this, "extensions"); // FIXME: find the last extension added }
3. What we want to have selected is the item "Strategy for choosing what to build." But it never gets picked.
4. At this point the test fails, resulting in:
Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate By.xpath: .//A[@href][@id='Strategy for choosing what to build' or normalize-space(.)='Strategy for choosing what to build' or @title='Strategy for choosing what to build' or .//img[@alt='Strategy for choosing what to build']] in http://127.0.0.1:59247/job/expected_guerrilla/configure
As far as I can tell, the other tests of "Strategy for choosing what to build" are passing in the acceptance tests.
JENKINS-62868proposes to delete the one test that is affected by the user interface preparing for the change from tables to divs in the job configuration UI. I believe this issue can be closed since the other tests are working successfully.