I investigate how to make tests of SpecToplo working, and I encounter an issue with many of the tests here.
Particularly with the tests when selecting item of a list (or tree, table, treeTable).
The selection is performed in the UI process and not in the test one; thus, often the assert: is call before the UI had time to perform the select action.
I have two proposals:
- add
backendForTest waitUntilUIRedrawed. before every assert: to ensure that we are in a expected context
- implement another
assert: that includes the waitUntilUIRedrawed and would take the condition under evaluation as a block
A better solution would be to force some kind of using the same process for test in SpToploBackendForTest but I have no clue where I should start to do something like this, probably with runTest:
I investigate how to make tests of SpecToplo working, and I encounter an issue with many of the tests here.
Particularly with the tests when selecting item of a list (or tree, table, treeTable).
The selection is performed in the UI process and not in the test one; thus, often the
assert:is call before the UI had time to perform the select action.I have two proposals:
backendForTest waitUntilUIRedrawed.before everyassert:to ensure that we are in a expected contextassert:that includes thewaitUntilUIRedrawedand would take the condition under evaluation as a blockA better solution would be to force some kind of using the same process for test in
SpToploBackendForTestbut I have no clue where I should start to do something like this, probably withrunTest: