Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 547 Bytes

File metadata and controls

22 lines (19 loc) · 547 Bytes

UI test template

[TestMethod]
public void ScenarioName_DescribesIntent()
{
  NavigateTo(TestContext.Properties["purl"].ToString());
  new Login(driver, TestContext)
      .LoginToApplication(
          TestContext.Properties["userName"].ToString(),
          TestContext.Properties["password"].ToString())
      .VerifyAccountsOverviewPageisLoaded();
}

Invalid login (stays on Login action):

new Login(driver, TestContext)
    .LoginToApplicationInvalid("bad", "bad")
    .VerifyInvalidUserMessageIsDisplayed();