-
Notifications
You must be signed in to change notification settings - Fork 7
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
initial cypress test for nav img #4
base: move-to-svelte
Are you sure you want to change the base?
Conversation
@@ -21,7 +21,7 @@ | |||
"@wharfkit/session": "latest", | |||
"@wharfkit/wallet-plugin-privatekey": "latest", | |||
"autoprefixer": "^10.4.7", | |||
"cypress": "^12.11.0", | |||
"cypress": "^12.14.0", |
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.
any reason we bumped the cypress version?
projectId: 'ENF EVM Faucet', | ||
e2e: { | ||
baseUrl: 'http://localhost:4173', | ||
}, |
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.
shouldn't this port be 5173 as the default svelte port?
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.
one documentation suggestion
## Cypress Testing | ||
To run the tests use the following command | ||
`npx cypress run` |
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.
Can we add that the user needs to have the server running first with yarn preview?
Resolves eosnetworkfoundation/frontend-engineering#63
How to Run
First start up the preview service.
yarn preview
Next run cypress (after
yarn install && yarn build
)npx cypress run
Configuration and File Layout
cypress.config.ts
has your base URL and env propertiescypress/e2e/base_page_check.cy.ts
the test to runcypress/support/commands.ts
ignore: custom commandscypress/support/e2e.ts
ignore: sources custom commandscypress/tsconfig.json
needed to compile custom commandspackage.json
rev minor version of cypressyarn.lock
rev minor version of cypress