A couple of things I'd like to add to the project
- I added an undocumented feature of appending #safetest to the url to get info about available tests in the console. Ideally I want this to be a runner like page similar to Cypress UI or Playwright UI.
- It's possible to add NextJS server side render component testing to the project. I'm not sure if it's worth it though. We would be able to test things like sending a dark-themed page to a user with dark mode enabled etc, there wouldn't be any page actions since those are client side events.
- I want to "hide" the Safetest library frames from the stack trace similar to how Playwright does it. It's probably as simple as referencing the Safetest
expect
function intoError.captureStackTrace(expect)
- reference - SafeTest probably needs a dedicated command to start the different main configurations instead of having some magic incantation in
package.json
scripts. - Create a custom reporter instead of having the artifacts flag and then using the
add-artifact-info
command to glue them together. - It may be worth abandoning
bootstrap(...)
mechanism and just using the<Bootstrap>
component like the one used in NextJS, this may not translate well to non React frameworks.