@@ -195,6 +195,30 @@ Feature: Dashboards
195195 And the response "widgets[0].definition.requests[0].formulas[0].formula" is equal to "query1"
196196 And the response "widgets[0].definition.time.live_span" is equal to "week_to_date"
197197
198+ @team:DataDog/dashboards-backend
199+ Scenario : Create a new dashboard with a timeseries widget using formulas and functions metrics query with combined semantic_mode
200+ Given new "CreateDashboard" request
201+ And body with value {"layout_type" : "ordered" , "title" : "{{ unique }} with combined semantic_mode" , "widgets" : [{"definition" : {"type" : "timeseries" , "requests" : [{"queries" : [{"data_source" : "metrics" , "name" : "query1" , "query" : "avg:system.cpu.user{*}" , "semantic_mode" : "combined" }], "response_format" : "timeseries" , "formulas" : [{"formula" : "query1" }], "display_type" : "line" }]}}]}
202+ When the request is sent
203+ Then the response status is 200 OK
204+ And the response "widgets[0].definition.requests[0].response_format" is equal to "timeseries"
205+ And the response "widgets[0].definition.requests[0].queries[0].data_source" is equal to "metrics"
206+ And the response "widgets[0].definition.requests[0].queries[0].name" is equal to "query1"
207+ And the response "widgets[0].definition.requests[0].queries[0].query" is equal to "avg:system.cpu.user{*}"
208+ And the response "widgets[0].definition.requests[0].queries[0].semantic_mode" is equal to "combined"
209+
210+ @team:DataDog/dashboards-backend
211+ Scenario : Create a new dashboard with a timeseries widget using formulas and functions metrics query with native semantic_mode
212+ Given new "CreateDashboard" request
213+ And body with value {"layout_type" : "ordered" , "title" : "{{ unique }} with native semantic_mode" , "widgets" : [{"definition" : {"type" : "timeseries" , "requests" : [{"queries" : [{"data_source" : "metrics" , "name" : "query1" , "query" : "avg:system.cpu.user{*}" , "semantic_mode" : "native" }], "response_format" : "timeseries" , "formulas" : [{"formula" : "query1" }], "display_type" : "line" }]}}]}
214+ When the request is sent
215+ Then the response status is 200 OK
216+ And the response "widgets[0].definition.requests[0].response_format" is equal to "timeseries"
217+ And the response "widgets[0].definition.requests[0].queries[0].data_source" is equal to "metrics"
218+ And the response "widgets[0].definition.requests[0].queries[0].name" is equal to "query1"
219+ And the response "widgets[0].definition.requests[0].queries[0].query" is equal to "avg:system.cpu.user{*}"
220+ And the response "widgets[0].definition.requests[0].queries[0].semantic_mode" is equal to "native"
221+
198222 @team:DataDog/dashboards-backend
199223 Scenario : Create a new dashboard with a toplist widget sorted by group
200224 Given new "CreateDashboard" request
0 commit comments