Skip to content

How to modify SpAbstractAdapterTest to support async backend #1933

Description

@badetitou

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:

  1. add backendForTest waitUntilUIRedrawed. before every assert: to ensure that we are in a expected context
  2. 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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions