diff --git a/traitsui/tests/editors/test_range_editor_text.py b/traitsui/tests/editors/test_range_editor_text.py index 0b7e77903..52e5b053c 100644 --- a/traitsui/tests/editors/test_range_editor_text.py +++ b/traitsui/tests/editors/test_range_editor_text.py @@ -153,7 +153,7 @@ def test_text_editing_out_of_bounds(self): assert displayed == '4' assert num.number == 3 - cancel_button = tester.find_by_id(ui, "Cancel") + cancel_button = tester.find_by_id(ui, "OK") cancel_button.perform(command.MouseClick()) assert num.number == 4