We’re using Anvil to create simple web apps to control devices using API’'s.
We use CI/CD pipelines to build and test our work and deploy to docker containers
We need to test the UI’s and how they interact with the server back and device, we would normally use Selenium to do this.
Is anyone else doing something similar and what tools are you using? Anvil people, I assume you do this internally as part of your CI/CD process, can you share anything?
Popping back in to answer this question, which got kinda lost in the follow-up:
This can be solved straightforwardly, by using anvil.js to put identifying IDs or classes onto particular components in your __init__ method. (This is the approach I mentioned here, which got refined into a scary but effective monkey-patch for every instance of the Component class here)
Or you can even find and target elements within components. For example, to target the <button> element inside a Button component:
from anvil.js import get_dom_node, window
# Find the component:
node = window.jQuery(get_dom_node(self.button_1))
# Tag the actual <button> element that component:
node.find("button").attr("id", "something-meaningful")