Skip to content

Commit c61ae1c

Browse files
committed
Add Playwright browser installation to VM setup for E2E testing
1 parent 18fb415 commit c61ae1c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tools/multipass.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,13 @@ GRAPHDONE_SETUP
274274
- su ubuntu -c 'export HOME=/home/ubuntu && cd ${GRAPHDONE_PATH} && npm run db:seed'
275275
GRAPHDONE_SEED
276276
fi
277+
278+
# Install Playwright browsers for E2E testing
279+
cat >> "$CLOUD_INIT_OUTPUT" <<PLAYWRIGHT_INSTALL
280+
# Install Playwright browsers
281+
- echo '=== Installing Playwright browsers for E2E testing ==='
282+
- su ubuntu -c 'export HOME=/home/ubuntu && cd ${GRAPHDONE_PATH} && npx playwright install --with-deps chromium firefox webkit'
283+
PLAYWRIGHT_INSTALL
277284
fi
278285

279286
# Add systemd enable and start commands if run_on_boot is enabled (before final messages)

0 commit comments

Comments
 (0)