diff --git a/addons/web/static/src/views/fields/state_selection/state_selection_field.xml b/addons/web/static/src/views/fields/state_selection/state_selection_field.xml index 7d5d25a85dd..32c6afee576 100644 --- a/addons/web/static/src/views/fields/state_selection/state_selection_field.xml +++ b/addons/web/static/src/views/fields/state_selection/state_selection_field.xml @@ -9,7 +9,7 @@ - +
diff --git a/addons/web/static/tests/views/fields/state_selection_field_tests.js b/addons/web/static/tests/views/fields/state_selection_field_tests.js index 93cea9f1a4a..bccf0236844 100644 --- a/addons/web/static/tests/views/fields/state_selection_field_tests.js +++ b/addons/web/static/tests/views/fields/state_selection_field_tests.js @@ -87,6 +87,11 @@ QUnit.module("Fields", (hooks) => { "should not have one green status since selection is the second, blocked state" ); assert.containsNone(target, ".dropdown-menu", "there should not be a dropdown"); + assert.strictEqual( + target.querySelector(".o_field_state_selection .dropdown-toggle").dataset.tooltip, + "Blocked", + "tooltip attribute has the right text" + ); // Click on the status button to make the dropdown appear await click(target, ".o_field_widget.o_field_state_selection .o_status");