Skip to content

Testing Multiple Buttons [Technical Questions] #18

Discussion options

You must be logged in to vote

Hi @ananya-vasireddy,

Thank you for asking your question here. Sorry about the late response.

First: Your two tests look great! It is actually a good idea to separate different functional tests into different tests. This makes it easier to spot any regressions. E.g., you will know exactly which button no longer works based on which test fails.

Suppose you would nevertheless want to return back into your application after you, e.g., press a button to open another app. In that case, you can use this line to return back to your application (in the view where you have pressed the button) and continue any other next checks:

// Test the first button and check if safari is opened after you press…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ananya-vasireddy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants