In Poland, stories about some silly mistake that you or someone else has made are called flowers. Probably after THE LITTLE FLOWERS OF SAINT FRANCIS OF ASSISI.
And that why this series of automation mistakes is called Flowers. I will write here about broken principals and anti-patterns which I have encountered in my automation career. I will also show how to fix them. I will concentrate on small mistakes. There are easy to ignore, and by themselves are not harmful. But they have a tendency to multiply and then they are a time-consuming nuisance.
All code examples of bad Practices are based on an actual 'production' code. It was running as part of regressions suites, CI pipelines, etc. I have stripped it of all unnecessary elements: other antipatterns, redundant logic. I have also anonymized it, so at least Names and locators will be different