Conversation
|
@e-fisher Thanks for the review!
I've fixed the window handler and it should work appropriately now. Please let me know how it goes. You can also see a complete run here. macos-13 takes a really long time to build, so I ended up cancelling that build.
Great idea! I've included a
Those are wrong. These functions return a ChainablePromiseElement which is a normal WebdriverIO pattern. Only the element actions need to be awaited. I believe the warning is coming from |
e-fisher
left a comment
There was a problem hiding this comment.
Works locally as well! 🙌 Let's get this working for us, if others don't have any comments 🚀
|
Just thought of this - is there a way we could run e2e against running dev app locally? This would help with debugging, creating a new build to verify if change fixed tests could be time-consuming. |
Description
This PR attempts to implement E2E testing for k6 Studio using Webdriver.io, which is one of the recommendations on the ElectronJS website.
You can find a working CI action in https://github.com/grafana/k6-studio/actions/runs/18286347336/job/52062255939.
How to Test
Locally run
npm installand run the test suite pointing to a build. This can be a Production build:npm run wdio -- --app-path="/Applications/k6 Studio.app/Contents/MacOS/k6-studio"Checklist
npm run lint) and all checks pass.npm test) and all tests pass.Screenshots (if appropriate):
Related PR(s)/Issue(s)
Resolves #331