0

I've been trying to validate the text inside a Snackbar prompt in an iOS app using XCUITest, but the Snackbar does not last long enough for me to run po XCUIApplication().debugDescription() on the console, and I have tried to click on the Snackbar using the test recorder which leads to the following error

Timestamped Event Matching Error: Failed to find matching element

Is there a way to test the Snackbar? is it even possible? any pointers would help :)

enter image description here

  • 1
    There's no `Snackbar` in iOS according to [this](https://stackoverflow.com/a/71549327/14577209). My suggestion is, find the custom component and adjust the fly-in fly-out animation timing in order to test this. – Maleesha97 Mar 29 '23 at 17:08

0 Answers0