However, all before hooks that apply are executed before any beforeeach hook. This explains the order above: Sublevel before executes before top beforeeach because it is a before hook.

Before moving to my question, i know how the :before and :after selectors work. (not a duplicate of what is ::before or ::after expression). My question is in regards to use.