Skip to content

Instantly share code, notes, and snippets.

@mallibone
Created April 28, 2016 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mallibone/087161f91e644874b92e5bb94bfcd626 to your computer and use it in GitHub Desktop.
Save mallibone/087161f91e644874b92e5bb94bfcd626 to your computer and use it in GitHub Desktop.
[Test]
public void EnterAndSubmitText_ItAppearsInTheSubmittedTextLabel()
{
app.EnterText(q => q.Marked("InputMessageEntry"), "Hello from Xamarin Test Cloud");
app.Screenshot("Has entered text");
app.Tap(q => q.Marked("SubmitMessageButton"));
app.Screenshot("Has taped the submit button.");
Assert.IsFalse(string.IsNullOrEmpty(app.Query(q => q.Marked("SubmittedMessageLabel")).First().Text));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment