I'm using the Xamarin.UITest framework to assert if some button is disabled or enabled. Unfortunately it seems that this is not working if the "Enabled" Property of the button is set via binding trough MVX (binding is working - button is really disabled).
Example axml with two buttons:
<xxx.Widgets.Button
android:id="@+id/btnSave"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:text="Save"
style="@style/DefaultButton"
local:MvxBind="Click SaveAndContinueCommand; Enabled SaveButtonActive" />
<xxx.Widgets.Button
android:id="@+id/btnTest"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:text="Test"
style="@style/DefaultButton"
android:enabled="false" />
Query with Xamarin.UITest:
var button = App.Query(v => v.Button("Save")).FirstOrDefault();
Assert.IsFalse(button.Enabled); // -> Button is always enabled
var testButton = App.Query(v => v.Button("Test")).FirstOrDefault();
Assert.IsFalse(button.Enabled); // -> Button is disabled. Correct!
Do I need to pay attention on something different? Has anyone experience with the combination of MVX and Xamarin.UITest?