page.fill used to populate i.e. an input field doesn't trigger a keyUp that may be used by the webapp.
page.fill on an already populated input field doesn't quite work as in the real world. It just blanks the field and populate
swap page.fill with page.keyboard.type. maybe also do backspace n times before. Or tripple-click and backspace?
check pure textcontent page.textContent
check content of an HTML element: page.innerHTML
Playwright wants me to do page.selectOption('select[name="maxwordselect"]', '40'), but I change it to page.selectOption('select#maxwords', '40') for now. Seems a bit more solid and lasting.
Doesn't need to be fancy. Create some tests. Add new tests whenever you discover a new bug or issue using the data or user journey you saw created issues.
Quick blogpost on how to.