Skip to content

Commit 33dd07d

Browse files
committed
retry tests
1 parent ee261a8 commit 33dd07d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

features/environment.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55
import uuid
66
from behave.model import Scenario
7+
from behave.contrib.scenario_autoretry import patch_scenario_with_autoretry
78
from dotenv import load_dotenv
89
from playwright.sync_api import sync_playwright, expect
910
from methods.api import eps_api_methods
@@ -232,6 +233,9 @@ def before_feature(context, feature):
232233
if "skip-sandbox" in feature.tags and "sandbox" in environment:
233234
feature.skip("Marked with @skip-sandbox")
234235
return
236+
if environment == "internal-dev":
237+
for scenario in feature.walk_scenarios():
238+
patch_scenario_with_autoretry(scenario, max_attempts=3)
235239

236240

237241
def before_scenario(context, scenario):

0 commit comments

Comments
 (0)