While thousands of visitors to Shanghai Disneyland were lining up Sunday for roller coasters and watching fireworks above the fairy-tale castle, staff quietly sealed the amusement park. People in hazmat suits streamed in through the gates, preparing to test everyone for COVID-19 before they could leave for the day.

Nearly 34,000 people at Disneyland underwent testing, which ended close to midnight — long after the festivities at the park are usually finished. Ferried home on 220 special buses, all were found to be negative by Monday but are still required to isolate at home for two days, and be retested for the coronavirus in two weeks.

The shutdown of one of Walt Disney Co.’s most lucrative parks came after a case of COVID-19 was confirmed in a woman who traveled to Shanghai from nearby Hangzhou over the weekend. While officials are yet to confirm whether she visited Disneyland, her infection sparked an aggressive contract tracing effort across China, which eventually ensnared the park-goers, their families and Disneyland staff.