theappbusiness / TABTestKit

Library designed to make writing and maintaining automated tests for iOS applications. This includes automation of bio-metrics and controlling of mock servers
MIT License
59 stars 13 forks source link

Making adjustment on the pickerWheel will fail in some scenario #21

Closed TABanniefung closed 5 years ago

TABanniefung commented 5 years ago

Issue on the pickerWheel:

This step here When(I: adjust(menuScreen.picker.wheel(0), to: "Example")) does not work in scenario when self.view.endEditing(true) is implemented for the pickerWheel in the app code.

The reason is that the pickerWheel is set to disappear from the screen after the user makes an adjustment on the wheel. Therefore when running the UI test, it succeeds in making the adjustment on the pickerWheel but fails on asserting the expected value that has been set.

TABanniefung commented 5 years ago

Issue on the slider:

This step here Then(I: adjust(otherElementsScreen.slider, to: 1)) provided in the example fails.

The reason for the assertion failure is Element did not have the right value before timing out! Expected: 1.0, actual: 0.9971751570701599

KaneCheshire commented 5 years ago

@TABanniefung these seem like two separate issues?

KaneCheshire commented 5 years ago

Issue #23 covers the slider issue (although I can't reproduce it!)