2. A panel that opens and closes

These are the details. They are in the page all the time, but visible only while the panel is open.

3. Tabs

A small product to practise on.
Weight 1 kg, width 20 cm.
No reviews yet.

What to practise

In VAF: AsMenu(), AsPane(), AsSection() — guide, section 2.

Tested in VAF-Demo

A test of this page from VAF-Demo: the whole VAF chain, from the page to the element, is in the test.

[Test]
public void MenuItemIsChosen()
{
    // A closed menu: the item is in the page, but not shown.
    SharedContext.App.Should().HaveSection<NavigationPage.AccountMenu>()
        .That.Should().NotHaveElement<NavigationPage.AccountMenu.Settings>();

    SharedContext.App.Should().HaveSection<NavigationPage.AccountMenu>()
        .That.Should().HaveElement<NavigationPage.AccountMenu.Open>()
            .That.AsMenu().LetsClick()
        .AndAlso().Should().HaveElement<NavigationPage.AccountMenu.Settings>()
            .That.AsMenu().LetsClick()
        .AndAlso().Should().HaveElement<NavigationPage.AccountMenu.Result>()
            .That.AsLabelText().Should().HaveValue("Settings");
}

On GitHub (opens in a new tab)