File tree 16 files changed +871
-584
lines changed
groovy/au/org/ala/ecodata/forms
16 files changed +871
-584
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,10 @@ jobs:
34
34
- name : Validate Gradle wrapper
35
35
uses : gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
36
36
37
- - name : run _Events target
37
+ - name : Run tests and jacoco coverage report with Gradle
38
38
uses : gradle/gradle-build-action@v2.4.2
39
39
with :
40
- arguments : _Events
41
-
42
- # - name: Run tests and jacoco coverage report with Gradle
43
- # uses: gradle/gradle-build-action@v2.4.2
44
- # with:
45
- # arguments: -PenableJacoco=true check
40
+ arguments : -PenableJacoco=true check
46
41
47
42
- name : Run javascript unit tests
48
43
run : node_modules/karma/bin/karma start karma.conf.js --single-run --browsers ChromeHeadless
Original file line number Diff line number Diff line change @@ -89,4 +89,13 @@ grails:
89
89
staticparts : none
90
90
91
91
userProfile :
92
- userIdAttribute : " username"
92
+ userIdAttribute : " username"
93
+
94
+ ---
95
+ environments :
96
+ test :
97
+ server :
98
+ port : " 8087"
99
+ spring :
100
+ autoconfigure :
101
+ exclude : " au.org.ala.ws.security.AlaWsSecurityConfiguration"
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
4
import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
5
6
import pages.PreviewPage
6
7
@Integration
8
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
7
9
class ComputedValuesSpec extends GebReportingSpec {
8
10
9
11
def " computed values are evaluated correctly" () {
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ import geb.module.Checkbox
4
4
import geb.module.Select
5
5
import geb.spock.GebReportingSpec
6
6
import grails.testing.mixin.integration.Integration
7
+ import org.springframework.boot.test.context.SpringBootTest
7
8
import pages.PreviewPage
8
9
9
10
@Integration
11
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
10
12
class ConstraintsSpec extends GebReportingSpec {
11
13
12
14
def " Constraints can be specified such that each constraint may be selected only once on a form" () {
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
4
import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
5
6
import pages.PreviewPage
6
7
7
8
@Integration
9
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
8
10
class DateSpec extends GebReportingSpec {
9
11
10
12
def " We can enter dates via the date or simpleDate view types" () {
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
4
import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
5
6
import pages.PreviewPage
6
7
7
8
@Integration
9
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
8
10
class FeatureMapSpec extends GebReportingSpec {
9
11
10
12
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
4
import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
5
6
import pages.PreviewPage
6
7
7
8
/*
@@ -22,6 +23,7 @@ import pages.PreviewPage
22
23
*/
23
24
24
25
@Integration
26
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
25
27
class GeoMapSpec extends GebReportingSpec {
26
28
def " GeoMap smoke test" () {
27
29
when :
Original file line number Diff line number Diff line change 1
1
package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
+ import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
4
6
import pages.PreviewPage
5
-
7
+ @Integration
8
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
6
9
class ImageTypeSpec extends GebReportingSpec {
7
10
8
11
def " The default behaviour of the view mode of the image view type is to show metadata on hover" () {
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
4
import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
5
6
import pages.PreviewPage
6
7
7
8
/*
@@ -21,6 +22,7 @@ import pages.PreviewPage
21
22
* Created by Temi on 26/11/19.
22
23
*/
23
24
@Integration
25
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
24
26
class MultiInputSpec extends GebReportingSpec {
25
27
def " multi input tests" () {
26
28
when :
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
4
import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
5
6
import pages.PreviewPage
6
7
7
8
@Integration
9
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
8
10
class Select2Spec extends GebReportingSpec {
9
11
10
12
def " We can enter data into select2 dropdowns" () {
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ package au.org.ala.ecodata.forms
3
3
import geb.module.Select
4
4
import geb.spock.GebReportingSpec
5
5
import grails.testing.mixin.integration.Integration
6
+ import org.springframework.boot.test.context.SpringBootTest
6
7
import pages.PreviewPage
7
8
8
9
@Integration
10
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
9
11
class SelectOneSpec extends GebReportingSpec {
10
12
11
13
def " We can enter data in selectOne widgets" () {
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
4
import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
5
6
import pages.PreviewPage
6
7
7
8
@Integration
9
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
8
10
class TableFooterSpec extends GebReportingSpec {
9
11
10
12
def " Table footers can be displayed" () {
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
4
import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
5
6
import pages.PreviewPage
6
7
7
8
@Integration
9
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
8
10
class TableSpec extends GebReportingSpec {
9
11
10
12
def " Tables can be displayed correctly in edit mode" () {
Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ package au.org.ala.ecodata.forms
2
2
3
3
import geb.spock.GebReportingSpec
4
4
import grails.testing.mixin.integration.Integration
5
+ import org.springframework.boot.test.context.SpringBootTest
5
6
import pages.PreviewPage
6
7
7
8
8
9
@Integration
10
+ @SpringBootTest (webEnvironment = SpringBootTest.WebEnvironment .DEFINED_PORT )
9
11
class TestSpec extends GebReportingSpec {
10
12
11
13
def grailsApplication
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ if (!System.getProperty("webdriver.chrome.driver")) {
6
6
System . setProperty(" webdriver.chrome.driver" , " node_modules/chromedriver/bin/chromedriver" )
7
7
}
8
8
driver = { new ChromeDriver () }
9
- baseUrl = ' http://devt.ala.org.au :8087/'
9
+ baseUrl = ' http://localhost :8087/'
10
10
atCheckWaiting = true
11
11
waiting {
12
12
timeout = 20
You can’t perform that action at this time.
0 commit comments