Open JasonGrace2282 opened 1 month ago
I feel pretty happy with this approach - what do you think @krishnans2006 ?
I did some benchmarking, and I found on my machine (for actual Tin pages):
0.01s
0.002s
And with python -O
0.006s
0.002s
So I'm not too concerned about performance. I've written some light tests to illustrate kind of what I was going for with the UI testing approach, any kind of feedback would be nice :)
As discussed internally
button
and input type=submit
unless the tin-btn
css class is not found.Looking back at this PR, it might be worth it to use Selenium instead of just parsing html...
This is mostly here so I can explore how I like this solution, and others can see my progress.
The main difference is this now uses
BeautifulSoup4
, so we can leverage the flexibility of that for more advanced queries. The simple but tedious cases are encapsulated in anHtml
class, which should be sufficient for most tests.Testing plan
pytest
Progress
assignments
app to see if the framework is sufficiently useful.