Skip to content

Commit e9ce8d6

Browse files
committed
Add wait time for Clipboard test before image
1 parent 9498b8e commit e9ce8d6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/jsActions/mobile-resources-native/e2e/specs/maestro

packages/jsActions/mobile-resources-native/e2e/specs/maestro/Clipboard.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@ appId: "${APP_ID}"
1212
text: "Set clipboard content to 'Hi there'"
1313
- tapOn:
1414
text: "Get clipboard content"
15+
# Because the image loading can take some time due to resources on emulator, we need to wait for the image to be visible
16+
- extendedWaitUntil:
17+
visible: randText # Any random text that does not exist in the UI
18+
optional: true # This should be true so that the test won't fail
19+
timeout: 5000 # 5 seconds
1520
- takeScreenshot:
1621
path: "maestro/images/actual/${PLATFORM}/clipboard"

0 commit comments

Comments
 (0)