Skip to content

Node assertions? #1

@wimdeblauwe

Description

@wimdeblauwe

It would be nice to be able to do things like:

NodeAssert.assertThat(find("#startMachineButton")).isDisabled();
NodeAssert.assertThat(find("#statusText")).isText().hasText("Machine stopped");
NodeAssert.assertThat(find("#startMachineButton")).isButton().hasText("Start");

(Note that the find method is a little helper method in my TestFX bases abstract base class I use in my UI tests to find a Node)

Are there any plans to provide node assertions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions