A test has been adapted in ceff4d46 whereas it shoudn't. Indeed this commit doesn't change anything in the case of 'Discard' button clicked.