I’m wondering whether there are any resources available on how to test apps written in panel using e.g. tools like selenium.
E.g. for selenium I need a programmatic way to access the individual components of my app from the html (say, a file upload / a button / … widget) and I notice that panel does not add id attributes to the corresponding html tags.
E.g. one could imagine a “mode” where the name argument that is passed to many of the panel widgets is set as the id attribute of the corresponding html tags.
I’d be interested to learn about best practises on how to do this type of testing with panel (also, if you recommend other approaches for panel).
Of course this does not test that the table updates in the UI or that the selection is placed over the table (or to the right of the table). But to me that is of lesser importance/ risk though.
Also in my experience Selenium tests take a lot of time to develop and are unstable. Thus I believe I get much more value/ effort out of writing python tests than selenium tests.
If things can be easily tested in the way you suggest, that seems even better.
Do you happen to know of example code for testing user input like file upload, button clicks etc. as well?