-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System Test: add support for Web JS on soroban dapp test cases #5
Comments
I'd suggest https://phantomjs.org/. It's been more reliable than selenium for me in the past. |
|
@Shaptic , is this notion of executing js-soroban-client from a headless browser worthwhile coverage? does it run aspects of js-soroban-client dist that node/tsx invocations will miss iike polyfill aspects? just trying to determine if the extra effort to get this is worth the coverage. |
In my experience, the browser-based tests in the libraries themselves are occasionally useful when there are polyfill or bundling differences, yes. They use karma to run in headless browser instances, too. I think the projected 5 points of work may be worthwhile here because it would avoid having downstream systems (e.g. Freighter, Laboratory) be our guinea pigs for browser builds (as it is today): we could catch issues earlier and not rely on fitting our library updates into their work streams. |
What problem does your feature solve?
e2e tests currently invoke the soroban js/ts code from node/typescript engine referred to in the tests as
NODEJS
, but don't invoke it from an actual Web browser engine yet, which would validate additional browser side and polyfill aspects of the packaged dist of js/ts.What would you like to see?
The dapp feature test suite should provide config ability for including Web browser side invocation as a client test case.
Web browser tests use the soroban-js-client
Add 'JSWEB' as Client Tool options in the Gherkin feature definitions(dapp_develop.feature):
Figure out how the web browser test will run, which headless browser?
How should the browser load/run the test js code to invoke soroban-js-client, as a small react app and package.json dependency to js-soroban-client?
What alternatives are there?
The text was updated successfully, but these errors were encountered: