Skip to content

Instantly share code, notes, and snippets.

@forki
Created February 21, 2011 16:34
Show Gist options
  • Save forki/837312 to your computer and use it in GitHub Desktop.
Save forki/837312 to your computer and use it in GitHub Desktop.
First trial for FluentSelenium in MSpec
[Subject(typeof (AcqRequestHeader))]
public class When_creating_call_order_with_frame_contract : when_logged_in
{
Because of =
() => FluentSelenium<AcqRequestHeaderViewModel>()
.GoToUrl("AcqRequestHeader/Create")
.SelectValueFrom(x => x.Record_Type, "Abrufauftrag")
.TypeTextInFor(x => x.Frame_Contract_No, "12345");
It should_not_display_an_error_message =
() => FluentSelenium<AcqRequestHeaderViewModel>()
.GetFieldValidationError(x => x.Frame_Contract_No)
.ShouldBeEmpty();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment