Rerun test step in web engine recipe

This is part of https://flutter-review.googlesource.com/c/recipes/+/17560 to retry flaky test steps in Mac Web Engine.

Change-Id: Id5c53e71c90ecbab627d99fb98eff8f5694ec08c
Bug: https://github.com/flutter/flutter/issues/89059
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/17801
Reviewed-by: Yegor Jbanov <yjbanov@google.com>
Commit-Queue: Keyong Han <keyonghan@google.com>
diff --git a/recipes/web_engine.py b/recipes/web_engine.py
index f41b841..5465a47 100644
--- a/recipes/web_engine.py
+++ b/recipes/web_engine.py
@@ -23,6 +23,7 @@
     'flutter/os_utils',
     'flutter/osx_sdk',
     'flutter/repo_util',
+    'flutter/retry',
     'flutter/shard_util',
     'flutter/web_util',
     'flutter/yaml',
@@ -197,7 +198,7 @@
         felt_test_safari_desktop = copy.deepcopy(felt_cmd)
         felt_test_safari_desktop.append('test')
         felt_test_safari_desktop.extend(additional_args_safari_desktop)
-        api.step('felt test safari desktop', felt_test_safari_desktop)
+        api.retry.step('felt test safari desktop', felt_test_safari_desktop)
       if api.platform.is_linux:
         # TODO(nurhan): Web engine analysis can also be part of felt and used
         # in a shard.