def METHOD_NAME(self):
    self.widget.show_preview()
    wait_for_preview(self.widget)
    self.assertFalse(self.widget.Warning.preprocessor.is_shown())
    self.assertFalse(self.editor.Warning.some_warning.is_shown())
    self.assertTrue(self.editor.message_bar.isHidden())