Forms
A sign-up form with the usual controls and validation on the server. No account is created and nothing is stored.
What to practise
- Fill the fields, choose a country and a plan, accept the terms and submit; check what the server received.
- Submit with empty fields and check the messages and the number of errors.
- Check that the promotion code is disabled and the button stays disabled until the terms are accepted.
- Open the password rules with ? and read the tooltip; type notes and watch the counter.
Control types: guide, section 2.
Tested in VAF-Demo
A test of this page from VAF-Demo, written with shared steps: the test says what the user does, the steps hold the VAF chains.
[Test]
public void ValidRegistrationIsShownBack()
{
FormsSteps.LetsRegister("Ada Lovelace", "ada@example.com", "analytical", "Croatia", plan: "Team");
FormsSteps.LetsCheckTheResult("Ada Lovelace", "ada@example.com", "Croatia", plan: "Team");
}
On GitHub (opens in a new tab)
-
Page object
—
FormsPage.cs: the locators of this page -
Native tests
—
FormsTests.cs: the whole VAF chain in each test -
Shared steps
—
FormsSteps.cs: the steps the test above calls -
Shared steps tests
—
FormsStepsTests.cs: the tests of this page written with steps - The whole project and its README Latest test run (GitHub Actions)