-
Notifications
You must be signed in to change notification settings - Fork 39
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
documentation for @agoric/synpress #1103
Conversation
Deploying documentation with Cloudflare Pages
|
Cloudflare deployment logs are available here |
main/testing/end-to-end.md
Outdated
|
||
## Overview | ||
|
||
[`@agoric/synpress`](https://github.com/agoric-labs/synpress) is an end-to-end (e2e) testing framework specifically designed for Decentralized Applications (DApps). Built on [Cypress.io](https://www.cypress.io/), it provides a fully-featured testing environment. Using `@agoric/synpress`, developers can automate and test interactions with the Keplr wallet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace @agoric/synpress
with Synpress
to start the sentence with a capitalized word.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we differentiate our project from the actual Synpress project? to avoid any branding confusion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few suggestions. @frazarshad @rabi-siddique, Please have a look
main/testing/end-to-end-testing.md
Outdated
|
||
[`@agoric/synpress`](https://github.com/agoric-labs/synpress) is an end-to-end (e2e) testing framework specifically designed for DApps. Built on [Cypress.io](https://www.cypress.io/), it provides a fully-featured testing environment. Using `@agoric/synpress`, developers can automate and test interactions with the Keplr wallet. | ||
|
||
`@agoric/synpress` is a fork of the [`synthetixio/synpress`](https://github.com/Synthetixio/synpress) framework, which is a e2e testing framework written for the Metamask wallet. `@agoric/synpress` heavily modifies it in order to provide a robust testing framework for the Keplr wallet and Cosmos SDK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`@agoric/synpress` is a fork of the [`synthetixio/synpress`](https://github.com/Synthetixio/synpress) framework, which is a e2e testing framework written for the Metamask wallet. `@agoric/synpress` heavily modifies it in order to provide a robust testing framework for the Keplr wallet and Cosmos SDK. | |
### Background | |
`@agoric/synpress` is a modified fork of [`synthetixio/synpress`], which was originally designed for the Metamask wallet. These modifications make it a robust framework tailored for the Keplr wallet and Cosmos SDK. |
main/testing/end-to-end-testing.md
Outdated
## Getting Started | ||
|
||
### Installation: | ||
`@agoric/synpress` can be installed as a dev dependancy to any node project using the following command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to add multiple commands. One is enough and developers can find their relevant commands themselves.
`@agoric/synpress` can be installed as a dev dependancy to any node project using the following command | |
`@agoric/synpress` can be installed using the following command. |
main/testing/end-to-end-testing.md
Outdated
|
||
``` | ||
|
||
3. You're done! you can now trigger the tests by running: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. You're done! you can now trigger the tests by running: | |
3. You can now trigger the tests by running this command: |
main/testing/end-to-end-testing.md
Outdated
Optionally, you can create a custom config file for your synpress setup. Since `@agoric/synpress` is based on Cypress, it follows the same config file format. | ||
`@agoric/synpress` aleardy has some | ||
configurations set up in this | ||
[file](https://github.com/agoric-labs/synpress/blob/master/synpress.config.js). | ||
To override this and add your custom config, you can create your own config | ||
file `synpress.config.js` in `/project_dir/tests/e2e` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optionally, you can create a custom config file for your synpress setup. Since `@agoric/synpress` is based on Cypress, it follows the same config file format. | |
`@agoric/synpress` aleardy has some | |
configurations set up in this | |
[file](https://github.com/agoric-labs/synpress/blob/master/synpress.config.js). | |
To override this and add your custom config, you can create your own config | |
file `synpress.config.js` in `/project_dir/tests/e2e` | |
You can optionally create a custom configuration file for your Synpress setup. Since `@agoric/synpress` is based on Cypress, it follows the same configuration [file](https://github.com/agoric-labs/synpress/blob/master/synpress.config.js) format. To override the default settings and add your custom configurations, create a file named synpress.config.js in /project_dir/tests/e2e with the following content: |
main/testing/end-to-end-testing.md
Outdated
}); | ||
``` | ||
|
||
use this config by passing the `--configFile` flag to synpress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use this config by passing the `--configFile` flag to synpress | |
Use this configuration by passing the `--configFile` flag to Synpress. |
main/testing/end-to-end-testing.md
Outdated
|
||
### Projects Using `@agoric/synpress` | ||
|
||
Here are some examples of projects utilizing `@agoric/synpress` for their e2e tests, showcasing the framework in action and demonstrating its capabilities: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are some examples of projects utilizing `@agoric/synpress` for their e2e tests, showcasing the framework in action and demonstrating its capabilities: | |
Here are some examples of projects utilizing `@agoric/synpress` for their e2e tests. These examples showcase the framework in action and demonstrate its capabilities: |
9d8a82c
to
c964f05
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good. Left couple of comments to fix.
641dad8
to
3de8926
Compare
3de8926
to
147b845
Compare
147b845
to
975de7c
Compare
Documenting the agoric/synpress testing framework