Clean up the test in markdown_spec.js
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Label this issue](https://contributors.gitlab.com/manage-issue?action=label&projectId=278964&issueIid=327831)
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=327831)
</details>
<!--IssueSummary end-->
We should rewrite the tests present in `spec/frontend/notebook/cells/markdown_spec.js ` to be more aligned with our testing guidelines and use better finder function
issue