diff --git a/post-deployment/features/tango-commands.feature b/post-deployment/features/tango-commands.feature
index c45529a0409d7b3a3bb61467692f28ed30a5a3f0..d11cacd2dee0723aeddbe2ad928bcf7ad31d50b2 100644
--- a/post-deployment/features/tango-commands.feature
+++ b/post-deployment/features/tango-commands.feature
@@ -22,8 +22,8 @@ Scenario: Test DevString command
 
 Scenario: Test short_spectrum_ro
 	Given a device called sys/tg_test/1
-	Then the attribute short_spectrum_ro is True
+	Then the attribute short_spectrum_ro is tango._tango.AttrQuality.ATTR_VALID
 
 Scenario: Test short_spectrum
 	Given a device called sys/tg_test/1
-	Then the attribute short_spectrum is True
\ No newline at end of file
+	Then the attribute short_spectrum is tango._tango.AttrQuality.ATTR_VALID
\ No newline at end of file
diff --git a/post-deployment/tests/test_tango-commands.py b/post-deployment/tests/test_tango-commands.py
index 54f12faee40aed3ecbd09fc36bc1675aa4aedb1b..68304c8a2eb72d1be2571061d5e1fa5e7949b22b 100644
--- a/post-deployment/tests/test_tango-commands.py
+++ b/post-deployment/tests/test_tango-commands.py
@@ -86,7 +86,7 @@ def check_attribute(device_proxy, attribute_name, expected_value):
     if attr.data_format == tango._tango.AttrDataFormat.SCALAR:
         assert str(attr.value) == expected_value
     elif attr.data_format == tango._tango.AttrDataFormat.SPECTRUM:
-        assert str(attr.name) == attribute_name
+        assert str(attr.quality) == expected_value
 
 @then(parsers.parse("the result is {expected_result}"))
 def check_command(device_proxy, call_command, expected_result):