Skip to content
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

URL changes in e2e tests to make it work locally #188

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

rabi-siddique
Copy link
Contributor

@rabi-siddique rabi-siddique commented Aug 28, 2024

After updating the ses version in #187, the a3p chain is working fine with the wallet app. This PR updates the e2e tests to use the localhost URL when AGORIC_NET is local.

closes #184

Copy link

cloudflare-workers-and-pages bot commented Aug 28, 2024

Deploying wallet-app with  Cloudflare Pages  Cloudflare Pages

Latest commit: 14d454c
Status: ✅  Deploy successful!
Preview URL: https://2b9d9142.wallet-app.pages.dev
Branch Preview URL: https://rs-fix-local-e2e-tests.wallet-app.pages.dev

View logs

Copy link

github-actions bot commented Aug 28, 2024

Cloudflare deployment logs are available here

@rabi-siddique rabi-siddique changed the title e2e tests changes to test locally URL changes in e2e tests to make it work locally Aug 28, 2024
@@ -19,15 +19,15 @@ describe('Wallet App Test Cases', { execTimeout: DEFAULT_EXEC_TIMEOUT }, () => {
});
});
it(`should open the web wallet URL successfully`, () => {
cy.visit(`${userConfig.webwalletURL}`);
cy.visit('/');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we do it conditionally wheb AGORIC_NET is local?

Copy link
Contributor Author

@rabi-siddique rabi-siddique Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All networks should use localhost:3000 for testing. Previously, all networks used localhost:3000 except when AGORIC_NET was set to local, in which case https://wallet.agoric.app/ was used. You can see this in the webWalletURL parameter here.

@rabi-siddique
Copy link
Contributor Author

Looks like E2E tests are passing with a3p chain after this change:
https://github.com/Agoric/wallet-app/actions/runs/10594005115/job/29356701659?pr=188

Only the test case related to viewing bids from CLI is failing. It fails with most networks except emerynet.

@rabi-siddique rabi-siddique merged commit 4ab9ece into main Aug 28, 2024
2 of 4 checks passed
@rabi-siddique rabi-siddique deleted the rs-fix-local-e2e-tests branch August 28, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to connect local chain with web wallet
3 participants