I believe that the Acera rear derailleur stocked on that bike has a low-sprocket range of 32-36T, at least according to the Shimano website:
The SHIMANO ACERA M3000 rear derailleur lets you ride aggressively with fewer interruptions thanks to its SHIMANO SHADOW design.
bike.shimano.com
So if you go with a 46T-max 8-speed cassette, you'll also need a new long-cage derailleur, otherwise max the new cassette at 36T.