@@ -11,6 +11,11 @@ set -eo pipefail
1111# Number of pages to test per content type during export test
1212EXPORT_TEST_PAGES_PER_CONTENT_TYPE=1
1313
14+ # Pages that should always be tested (e.g., known edge cases, previously failing pages)
15+ ALWAYS_TEST_PAGES=(
16+ /salt-lake-city-health-care/news-releases/new-data-shows-veterans-increased-use-of-online-va
17+ )
18+
1419export NVM_DIR=" $HOME /.nvm"
1520[ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh"
1621[ -s " $NVM_DIR /bash_completion" ] && \. " $NVM_DIR /bash_completion"
@@ -64,7 +69,7 @@ run_test() {
6469 local name=" $1 " ; shift
6570 printf ' Testing: %s... ' " $name "
6671 set +e
67- out=$( " $@ " > next/test.log 2>&1 )
72+ out=$( " $@ " >> next/test.log 2>&1 )
6873 exit_code=$?
6974 set -e
7075 if [ " $exit_code " = " 0" ]; then
@@ -110,6 +115,12 @@ build_sample_paths() {
110115 local content_types
111116 mapfile -t content_types < <( get_enabled_content_types)
112117
118+ # Include always-test pages first
119+ if [[ ${# ALWAYS_TEST_PAGES[@]} -gt 0 ]]; then
120+ echo " Adding ${# ALWAYS_TEST_PAGES[@]} always-test page(s)..."
121+ paths+=(" ${ALWAYS_TEST_PAGES[@]} " )
122+ fi
123+
113124 echo " Gathering ${EXPORT_TEST_PAGES_PER_CONTENT_TYPE} sample path(s) for ${# content_types[@]} content types from .env.${APP_ENV:- example} ..." >&2
114125 for ct in " ${content_types[@]} " ; do
115126 local ct_paths
@@ -182,9 +193,6 @@ next_build() (
182193 APP_ENV=" ${APP_ENV} " BUILD_OPTION=static yarn export --no-USE_REDIS
183194)
184195
185- # Clear existing log
186- [ -f " next/test.log" ] && rm next/test.log
187-
188196echo " Testing against: ${DRUPAL_ADDRESS} "
189197echo " "
190198
0 commit comments