qooxdoo / qxl.apiviewer

qooxdoo apiviewer app
https://qooxdoo.org/qxl.apiviewer
MIT License
5 stars 5 forks source link

Adding headless browser tests #35

Closed cboulanger closed 4 years ago

cboulanger commented 4 years ago

This uses the playwright library to run tests in chrome and firefox

oetiker commented 4 years ago

guess it would make sense to switch to playwrite for testtapper too

hkollmann commented 4 years ago

Great idea to do some tests. I would prefer to do it the "qooxdoo way" with qx test. Therefore the tests should be one in compile.js. Should i change this?

cboulanger commented 4 years ago

@hkollmann Please do! This is a proof of concept which needs to be improved anyways...

cboulanger commented 4 years ago

@oetiker I chose Playwright for it's cross-browser support. Safari doesn't work though (at least not locally using act). The API looks very usable. Maybe also a good fit for testtapper - maybe you can take a look?

cboulanger commented 4 years ago

Excellent idea to integrate it in qx test! This is a very useful pattern which we should document in the docs! Would you make a very basic page with the code snippets under https://qooxdoo.org/docs/#/development/testing/ and I can add some more text?

hkollmann commented 4 years ago

The whole testing chapter needs to be reworked ..