Beijing moved on a war footing on Wednesday, cancelling hundreds of domestic flights and trains while ramping up the mass testing of 90,000 people to stem the spread of the coronavirus, as the city reported 31 new COVID-19 cases, pushing the tally to 137.