I read the docs (below) on WebDriver tests within Retool but am wondering, are Cypress and Playwright the only ways to implement testing within Retool?
And if so, it seems like to integrate either of these frameworks, we need to have our Retool apps within a repo in an external IDE, not Retool's GUI - is this correct?
Edited to add: Can we only write E2E tests for Retool, and no unit tests?
Thanks, our team is trying to implement testing and I'm doing some discovery into the best way to go about it. Any help or guidance appreciated!
Yes those docs are the best source of truth for all things Retool testing.
Yes Cypress and Playwright the only ways to implement testing within Retool.
I was also a little confused by the code snippets in the docs, I just checked with our engineering team and you do not need use and IDE to add in code snippets to a Retool repo. Those are templates/blueprints of how to do end to end tests of Retool.
Thanks for the reply @Jack_T - I watched the Youtube video and the Cypress code is in VSCode. Is that the same repo as the Retool project? What I meant by asking about the IDE is that we can't add testing via the Retool website (where we develop our apps). For Cypress or Playwright we would need to add the code elsewhere
Just asked the engineer on the testing team those questions.
I was under the impression that your org would need to be self-hosting Retool to have a code base repo where you can add those snippets from the testing library.
Yes that is the same repo as the Retool project.
They told me "They need access to source control if they want to run Cypress when creating a PR. Cypress is external and can be used to test any website, so it can be used with any Retool account. Though, it has to be hosted/run externally"
So it sounds like it can't be done on a cloud hosted org since the code isn't exposed to any IDE to edit
The docs say it's available for cloud hosted orgs. But it seems like we would need to "host" the test code ourselves(?), which is fine, we could do. Our Retool apps are on GitHub too
Yes I see that in the docs as well, I was thinking the docs were potentially outdated but as long as you are hosting the test branch on GitHub then you should be able to open that repo in an IDE to add in the testing tools with the app still being hosted on the cloud.