Skip to content

System Test: add support for Web JS on soroban dapp test cases #5

@sreuland

Description

@sreuland

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):

  Examples: 
        | Tool         | ContractExampleSubPath | ContractName                  | ContractCompiledFileName             |FunctionName  | Param1    | Result             |
        | JSWEB        | hello_world            | soroban-hello-world-contract  | soroban_hello_world_contract.wasm    | hello        | Aloha     | ["Hello","Aloha"]  |
        | CLI          | hello_world            | soroban-hello-world-contract  | soroban_hello_world_contract.wasm    | hello        | Aloha     | ["Hello","Aloha"]  |
        | JSWEB        | increment              | soroban-increment-contract    | soroban_increment_contract.wasm      | increment    |           | 1                  | 
        | CLI          | increment              | soroban-increment-contract    | soroban_increment_contract.wasm      | increment    |           | 1                  |

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions