Please make sure you arrive at the airport at least 6 hours before your flight and book the Covid test in advance via https://projectscreen.co/zh-hant/predeparture-china.
Make sure you have a cell phone number in Hong Kong to register the account.