Example #1
0
        public void ShortAndLongPress()
        {
            var touchActions = new FlutterTouchActions().Tap(TapControl).LongPress(TapControl);

            FlutterDriver.Perform(touchActions);

            FlutterDriver.GetText(FlutterBy.ValueKey("tapCounter")).Should().Be("11", because: "because a tap and long press will increase the counter by 11 (1 + 10)");
        }
Example #2
0
        public void Tap()
        {
            var touchActions = new FlutterTouchActions().Tap(TapControl);

            FlutterDriver.Perform(touchActions);

            FlutterDriver.GetText(FlutterBy.ValueKey("tapCounter")).Should().Be("1", because: "because a short tap will increase the counter by 1");
        }