Skip to content

Commit fddc8c6

Browse files
committed
Fixing functional test that started failing #3476
1 parent 38ba589 commit fddc8c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/integration-test/groovy/au/org/ala/fieldcapture/ImportProjectsSpec.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ import pages.RlpProjectPage
1111
@Slf4j
1212
class ImportProjectsSpec extends StubbedCasSpec {
1313

14-
def setup() {
14+
def setupSpec() {
1515
useDataSet('dataset2')
1616
loginAsAlaAdmin(browser)
1717
to AdminTools
1818
clearMetadata()
1919
to AdminClearCachePage
2020
clearProgramListCache()
21+
at AdminClearCachePage // reset at check time
2122
clearServiceListCache()
2223
}
2324

src/integration-test/groovy/au/org/ala/fieldcapture/StubbedCasSpec.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class StubbedCasSpec extends FieldcaptureFunctionalTest {
201201
private String loggedInUser = null
202202

203203
def login(Map userDetails, Browser browser) {
204-
if (loggedInUser != userDetails.userId) {
204+
if (loggedInUser && loggedInUser != userDetails.userId) {
205205
logout(browser)
206206
}
207207
oidcLogin(userDetails, browser)

0 commit comments

Comments
 (0)