You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then the assertion fails because the value in the field is empty. I can "force" it to update by doing another query:
...
firstNameField = $(TextField.class, firstNameField).first(); // Doesn't have to involve the first name fieldassertThat(firstNameField.getValue()).isEqualTo("Aria");
This time the assertion passes.
There are two issues that this highlights:
It seems that some simple things like testing components in a grid doesn't work using the tester classes.
When using the inline editing feature of a Grid component, there isn't any API in TestBench to access and test editor components.
Consider the following view (taken from the example in the docs):
If I try to test the "Edit" button:
I get the following error:
java.lang.IllegalStateException: Button[caption='Edit'] is not usable
To work around this, I can call
click()
directly on the component:Then the assertion fails because the value in the field is empty. I can "force" it to update by doing another query:
This time the assertion passes.
There are two issues that this highlights:
The second used to be possible in Vaadin 8 (GridEditorTest.java).
The text was updated successfully, but these errors were encountered: