You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2026/04/25 15:50:36 UTC

(grails-spring-security) 03/03: style(test): use g:submitButton in testRole/edit and testRequestmap/edit GSPs

This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch improve/grails8-sb4-review-fixes
in repository https://gitbox.apache.org/repos/asf/grails-spring-security.git

commit a871b56090dc4eae0e4c5c560aefe18349b743a4
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Sat Apr 25 11:50:21 2026 -0400

    style(test): use g:submitButton in testRole/edit and testRequestmap/edit GSPs
    
    Replaces the bare <input type="submit"> markup in the two outliers with
    <g:submitButton ... /> to match the rest of the functional-test-app GSPs
    (create.gsp variants already use g:submitButton). The rendered HTML is
    equivalent (g:submitButton emits an <input type="submit">) so the Geb
    $('input', value: 'Update') page selectors in EditRolePage and
    EditRequestmapPage are unaffected.
    
    Per jdaugherty's PR #1214 review note about consistent submit-button
    markup.
    
    Assisted-by: claude-code:claude-4.6-opus
---
 .../functional-test-app/grails-app/views/testRequestmap/edit.gsp        | 2 +-
 .../examples/functional-test-app/grails-app/views/testRole/edit.gsp     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugin-core/examples/functional-test-app/grails-app/views/testRequestmap/edit.gsp b/plugin-core/examples/functional-test-app/grails-app/views/testRequestmap/edit.gsp
index 1c0c4f0e3..a359d1b63 100644
--- a/plugin-core/examples/functional-test-app/grails-app/views/testRequestmap/edit.gsp
+++ b/plugin-core/examples/functional-test-app/grails-app/views/testRequestmap/edit.gsp
@@ -47,7 +47,7 @@
 					<g:render template="form"/>
 				</fieldset>
 				<fieldset class="buttons">
-					<input type="submit" class="save" value='Update'>
+					<g:submitButton name="update" class="save" value='Update' />
 				</fieldset>
 			</g:form>
 		</div>
diff --git a/plugin-core/examples/functional-test-app/grails-app/views/testRole/edit.gsp b/plugin-core/examples/functional-test-app/grails-app/views/testRole/edit.gsp
index ff434df59..1151cfa54 100644
--- a/plugin-core/examples/functional-test-app/grails-app/views/testRole/edit.gsp
+++ b/plugin-core/examples/functional-test-app/grails-app/views/testRole/edit.gsp
@@ -46,7 +46,7 @@
 					<g:render template="form"/>
 				</fieldset>
 				<fieldset class="buttons">
-					<input type="submit" class="save" value="Update">
+					<g:submitButton name="update" class="save" value="Update" />
 				</fieldset>
 			</g:form>
 		</div>