in the response of a request i have this content:
"comp":[
{
"type":"header",
"version":1,
"settings":
{"logo":"mylogo",
"logoPosition":"left",
"inverseLogosPosition":false,
"headerTitle":"My Report",
"headerTitlePosition":"left",
"pageBreak":false
}
},
I want to assert the content of settings. i try this for example to assert the logoPosition = "left"
assert json.components.settings[0].logoPosition[0] == "left"
it's not working
This part is working well:
assert json.comp.type[0] == "header"
assert json.comp.version[0] == 1
Any help please, thank you