{"id":19525530,"url":"https://github.com/onekeyhq/test-dapp","last_synced_at":"2025-04-26T10:30:44.531Z","repository":{"id":38997576,"uuid":"396796699","full_name":"OneKeyHQ/test-dapp","owner":"OneKeyHQ","description":null,"archived":true,"fork":false,"pushed_at":"2023-03-06T08:22:26.000Z","size":3029,"stargazers_count":1,"open_issues_count":13,"forks_count":1,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-02-26T01:43:32.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OneKeyHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-16T13:01:13.000Z","updated_at":"2024-03-10T08:39:56.000Z","dependencies_parsed_at":"2023-02-06T08:46:54.676Z","dependency_job_id":null,"html_url":"https://github.com/OneKeyHQ/test-dapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneKeyHQ%2Ftest-dapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneKeyHQ%2Ftest-dapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneKeyHQ%2Ftest-dapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneKeyHQ%2Ftest-dapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneKeyHQ","download_url":"https://codeload.github.com/OneKeyHQ/test-dapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250972512,"owners_count":21516372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T01:05:21.420Z","updated_at":"2025-04-26T10:30:44.120Z","avatar_url":"https://github.com/OneKeyHQ.png","language":"JavaScript","readme":"# OneKeyHQ Test Dapp\n\nThis is a simple test dapp for use in OneKeyHQ e2e tests and manual QA.\n\nCurrently hosted [here](https://onekeyhq.github.io/test-dapp/).\n\n## Usage\n\nIf you wish to use this dapp in your e2e tests, install this package and set up a script of e.g. the following form:\n\n```shell\nstatic-server node_modules/@onekeyhq/test-dapp/dist --port 9011\n```\n\n## Contributing\n\n### Setup\n\n- Install [Node.js](https://nodejs.org) version 12\n  - If you are using [nvm](https://github.com/creationix/nvm#installation) (recommended) running `nvm use` will automatically choose the right node version for you.\n- Install [Yarn v1](https://yarnpkg.com/en/docs/install)\n- Run `yarn setup` to install dependencies and run any requried post-install scripts\n  - **Warning:** Do not use the `yarn` / `yarn install` command directly. Use `yarn setup` instead. The normal install command will skip required post-install scripts, leaving your development environment in an invalid state.\n\n### Testing and Linting\n\nRun `yarn lint` to run the linter, or run `yarn lint:fix` to run the linter and fix any automatically fixable issues.\n\nThis package has no tests.\n\n### Deploying\n\nAfter merging or pushing to `main`, please run `yarn deploy` in the package root directory if the contents of the `dist/` directory have changed.\n\n### Development\n\n#### Elements Must Be Selectable by XPath\n\nAll HTML elements should be easily selectable by XPath.\nThis means that appearances can be misleading.\nFor example, consider this old bug:\n\n```html\n\u003cbutton\n  class=\"btn btn-primary btn-lg btn-block mb-3\"\n  id=\"approveTokensWithoutGas\"\n  disabled\n\u003e\n  Approve Tokens Without Gas\n\u003c/button\u003e\n```\n\nThis appears on the page as `Approve Tokens Without Gas`. In reality, the value included the whitespace on the second line, and caused XPath queries for the intended value to fail.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonekeyhq%2Ftest-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonekeyhq%2Ftest-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonekeyhq%2Ftest-dapp/lists"}