From 01fb77a7df6c76ca71092623b5f22ae7564d3529 Mon Sep 17 00:00:00 2001 From: Mattias Reichel Date: Mon, 18 Nov 2024 19:27:35 +0100 Subject: [PATCH] test: Remove `FiltersFunctionalSpec` Grails Filters support was deprecated and removed in Grails 3.2 (see commit f370b49). Since this functionality is no longer available, the corresponding test has been removed. --- .../groovy/app2/FiltersFunctionalSpec.groovy | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 app2/src/integration-test/groovy/app2/FiltersFunctionalSpec.groovy diff --git a/app2/src/integration-test/groovy/app2/FiltersFunctionalSpec.groovy b/app2/src/integration-test/groovy/app2/FiltersFunctionalSpec.groovy deleted file mode 100644 index c03e3323..00000000 --- a/app2/src/integration-test/groovy/app2/FiltersFunctionalSpec.groovy +++ /dev/null @@ -1,30 +0,0 @@ -package app2 - -import grails.plugin.geb.ContainerGebSpec -import grails.testing.mixin.integration.Integration -import spock.lang.Ignore - -@Ignore('Filters support was dropped in Grails 3.2 according to f370b49') -@Integration(applicationClass = Application) -class FiltersFunctionalSpec extends ContainerGebSpec { - - void 'test before filter'() { - when: - go '/filtersDemo/index' - - then: - driver.pageSource.contains 'Filter Ran: yes.' - - // TODO: Why doesn't this work?... - // $().text() == 'Filter Ran: yes.' - } - - void 'test after filter'() { - when: - go '/filtersDemo/data' - - then: - $('h2', 0).text() == 'Company Name: OCI' - $('h2', 1).text() == 'Company City: St. Louis' - } -}