Maytag will run through cycle but not drain unless i hit cancel drain buttom

I run my dishwasher through the cycle and at the end it does not drain. I have seen at time s the start button is slowly flashing. I ran it through diagnostics and all lights came up fine and ran through it teats and came back and appeared to be done, no lights on