Volume

50

What to practise

In VAF: AsSlideBar().LetsSetValue(73), LetsMoveToPercentage(25).

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 ExactValueIsSet()
{
    SharedContext.App.Should().HaveSection<SliderPage.Volume>()
        .That.Should().HaveElement<SliderPage.Volume.Slider>()
            .That.AsSlideBar().LetsSetValue(73);

    SharedContext.App.Should().HaveSection<SliderPage.Volume>()
        .That.Should().HaveElement<SliderPage.Volume.Slider>()
            .That.AsSlideBar().Should().HaveValue("73")
        .AndAlso().Should().HaveElement<SliderPage.Volume.Value>()
            .That.AsLabelText().Should().HaveValue("73");
}

On GitHub (opens in a new tab)