Skip to content

Instantly share code, notes, and snippets.

@SergioLuis
Created January 28, 2019 17:08
Show Gist options
  • Save SergioLuis/f57ca0fd25767da35bb28f0636107915 to your computer and use it in GitHub Desktop.
Save SergioLuis/f57ca0fd25767da35bb28f0636107915 to your computer and use it in GitHub Desktop.
A peek on how a GUI test looks like
/* (...) */
ITestableInputDialog testableDialog =
testableWindow.GetInputDialog();
testableDialog.ChangeEntryText("Sergio");
testableDialog.ClickOkButton();
WaitingAssert.IsTrue(() =>
{ return testableDialog.IsOkButtonEnabled()
&& testableDialog.IsCancelButtonEnabled()
&& testableDialog.IsEntryEnabled() },
"The input dialog was not enabled back in a reasonable time");
/* (...) */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment