It's really not that confusing. You need to have a covid test when you arrive at the airport in Thailand. You need to pre pay for that covid test before you fly.
After you get your covid test, you take an SHA+ taxi to your hotel and stay in your room until the results come back, usually within 4-5 hours.