diff --git a/tests/features/bootstrap/VarbaseContext.php b/tests/features/bootstrap/VarbaseContext.php
index d42b9374021bca33afd683116125fccdb49b9607..85ae75a68d47da196ddcb35639f6fbd9e9040e70 100644
--- a/tests/features/bootstrap/VarbaseContext.php
+++ b/tests/features/bootstrap/VarbaseContext.php
@@ -1503,7 +1503,7 @@ JS;
   /**
    * Maximize the window before scenario.
    *
-   * @BeforeStep
+   * @BeforeScenario @javascript
    */
   public function beforeStepMaximizeWindow() {
     $this->getSession()->getDriver()->maximizeWindow();