Hi there,
I have a Streamlit app which uses pages to switch between a data analysis tool and a trending tool. When a user clicks on the “Data_Trending” page it pulls data from Snowflake and based on that data, populates the sidebar with different filters (checkboxes, multiselect…). is it possible to do a UI AppTest when a Snowflake query is required to load the page? Can I check the sidebar with AppTest after switching pages?
I have tried using patch with mock data, but I think I am missing something with the patch call. How can I correct my patch, so it finishes loading the page before it checks for items in my sidebar? I think I am either not calling it correctly or it just won’t work with Snowflake.
The “run_fake_query” function just returns a dataframe that the remaining functions in the trending page would expect in order to perform filtering.
The Streamlit app is running locally and on version 1.37.0, Python version 3.12.
I am super new to the AppTest and apologize if this is an easy answer!
Any help would be greatly appreciated! :)