@@ -15,10 +15,12 @@ jobs:
1515 env :
1616 # The ci step will test the dspace-angular code against DSpace REST.
1717 # Direct that step to utilize a DSpace REST service that has been started in docker.
18- DSPACE_REST_HOST : localhost
18+ DSPACE_REST_HOST : 127.0.0.1
1919 DSPACE_REST_PORT : 8080
2020 DSPACE_REST_NAMESPACE : ' /server'
2121 DSPACE_REST_SSL : false
22+ # Spin up UI on 127.0.0.1 to avoid host resolution issues in e2e tests with Node 18+
23+ DSPACE_UI_HOST : 127.0.0.1
2224 # When Chrome version is specified, we pin to a specific version of Chrome
2325 # Comment this out to use the latest release
2426 # CHROME_VERSION: "90.0.4430.212-1"
@@ -147,7 +149,7 @@ jobs:
147149 run : |
148150 nohup yarn run serve:ssr &
149151 printf 'Waiting for app to start'
150- until curl --output /dev/null --silent --head --fail http://localhost :4000/home; do
152+ until curl --output /dev/null --silent --head --fail http://127.0.0.1 :4000/home; do
151153 printf '.'
152154 sleep 2
153155 done
@@ -158,7 +160,7 @@ jobs:
158160 # This step also prints entire HTML of homepage for easier debugging if grep fails.
159161 - name : Verify SSR (server-side rendering)
160162 run : |
161- result=$(wget -O- -q http://localhost :4000/home)
163+ result=$(wget -O- -q http://127.0.0.1 :4000/home)
162164 echo "$result"
163165 echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep DSpace
164166
0 commit comments