The dishwasher is new. The plastic trim piece at the top is called a control panel assembly.
That piece is not broken, the piece has a crack in the plastic trim at the top.
Part number is WD34X28032
The plastic piece has no affect on the dishwasher working.
The light crack is cosmetic. May not be seen because that part would be under the counter.
Glue, yes, that would probably work as well, but as I said.
The crack in the plastic piece does not have any effect on the dishwasher, it is just cosmetic.