-
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
Faucet Polling in E2E Tests #164
Conversation
Deploying dapp-psm with Cloudflare Pages
|
Cloudflare deployment logs are available here |
cy.request({ | ||
method: 'POST', | ||
url: networkPhrases.faucetUrl, |
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.
nit: i think its safe to remove faucetUrl
from networkPhrases
now
const { transactionStatus } = resp.body; | ||
if (transactionStatus === TRANSACTION_STATUS.NOT_FOUND) | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
return cy.wait(2000).then(() => getStatus(txHash)); |
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.
Do we have in general timeout limit on our tests? Thinking of a case when we are getting consistent NOT_FOUND
for some unexpected reason.
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.
Yes there is a maximum timeout limit of 30 seconds
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.
LGTM
Description
Updated test to poll for transaction completion
Successful run on Emerynet:
https://github.com/Agoric/dapp-psm/actions/runs/10792624611/job/29932687814