[JIRA] (JENKINS-59605) Broken core.FormValidationTest#validate

3 views
Skip to first unread message

ogondza@gmail.com (JIRA)

unread,
Oct 1, 2019, 6:59:03 AM10/1/19
to jenkinsc...@googlegroups.com
Oliver Gondža created an issue
 
Jenkins / Bug JENKINS-59605
Broken core.FormValidationTest#validate
Issue Type: Bug Bug
Assignee: Oliver Gondža
Components: acceptance-test-harness
Created: 2019-10-01 10:58
Priority: Major Major
Reporter: Oliver Gondža

As James has pointed out[1], the test was broken by a change I made.

[1] https://github.com/jenkinsci/acceptance-test-harness/pull/515#discussion_r329985479

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ogondza@gmail.com (JIRA)

unread,
Oct 11, 2019, 3:36:04 AM10/11/19
to jenkinsc...@googlegroups.com
Oliver Gondža started work on Bug JENKINS-59605
 
Change By: Oliver Gondža
Status: Open In Progress

ogondza@gmail.com (JIRA)

unread,
Oct 11, 2019, 4:30:02 AM10/11/19
to jenkinsc...@googlegroups.com
Oliver Gondža commented on Bug JENKINS-59605
 
Re: Broken core.FormValidationTest#validate

This problem here affects javascript based validation only. The problem is that AJAX based validation will add the <div/>[1] on success, but the javascript one does not[2]. Hence there is no easy way to tell, whether there is a validation that is pending or this is a successful result of JS validation (that keeps the DOM tree untouched).

[1] https://github.com/jenkinsci/jenkins/blob/24d0cf90ab82f89aadd2b54c84c7fcab093b0d37/core/src/main/java/hudson/util/FormValidation.java#L159
[2] https://github.com/jenkinsci/jenkins/blob/24d0cf90ab82f89aadd2b54c84c7fcab093b0d37/war/src/main/webapp/scripts/hudson-behavior.js#L498

Reply all
Reply to author
Forward
0 new messages