public function postContentEditorIsInMode(string $mode)
    {
        $content_editor = $this->edit_post_page->getContentEditor();
        if (strtoupper($mode) !== $content_editor->getMode()) {
            throw new ExpectationException(
                sprintf('[W808] Content editor is in "%1$s" mode. Expected "%2$s".', $content_editor->getMode(), $mode),
                $this->getSession()->getDriver()
            );
        }
    }