status-im / desktop-qa-automation

Legacy desktop tests
6 stars 12 forks source link

market data scenario #649

Closed anastasiyaig closed 1 month ago

anastasiyaig commented 5 months ago

Add a test that will check that the prices and chart are not empty (or integrate to any existing test)

Valentina1133 commented 4 months ago

I investigated how to implement it. With prices - no problem, we can get it from every single box with text. But there is the problem with charts. I compared locators for empty and non empty chart and they are completely the same

scrollView_graphComponent_Chart = {"container": scrollView_StatusScrollView, "id": "graphComponent", "type": "Chart", "unnamed": 1, "visible": True}

I also checked the properties for both - couldn't find any differences between them. So we need to figure out how to check that the chart is not empty

Valentina1133 commented 4 months ago

Ok. I found (but not sure yet), that there are different values of property maxTicksLimit if there is a graph (if not - the value is 0), maybe we can check this property to make sure that there is a graph

anastasiyaig commented 4 months ago

@Valentina1133 well if we get prices (they are not none / null) then we can skip checking the curve line of the chart, having data in prices field is the main idea

Valentina1133 commented 4 months ago

@anastasiyaig Ok! Great then