Created
February 21, 2011 16:34
-
-
Save forki/837312 to your computer and use it in GitHub Desktop.
First trial for FluentSelenium in MSpec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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