Skip to content

Commit 39e8568

Browse files
committed
Fix flakey test_use_linked_inputs
1 parent 43c7a44 commit 39e8568

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/tooling/common.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import os
12
from typing import Any
23

34
from reactpy.core.types import LayoutEventMessage, LayoutUpdateMessage
45

5-
# see: https://github.com/microsoft/playwright-python/issues/1614
6-
DEFAULT_TYPE_DELAY = 100 # milliseconds
6+
GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS", "False")
7+
DEFAULT_TYPE_DELAY = (
8+
250 if GITHUB_ACTIONS.lower() in {"y", "yes", "t", "true", "on", "1"} else 25
9+
)
710

811

912
def event_message(target: str, *data: Any) -> LayoutEventMessage:

0 commit comments

Comments
 (0)