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

E2E tests for gov3 and gov4 wallets #142

Merged
merged 5 commits into from
Oct 29, 2024
Merged

E2E tests for gov3 and gov4 wallets #142

merged 5 commits into from
Oct 29, 2024

Conversation

rabi-siddique
Copy link
Contributor

@rabi-siddique rabi-siddique commented Oct 16, 2024

refs Agoric/agoric-sdk#10209

This PR introduces end-to-end(E2E) tests that use gov4 to propose questions and then vote on them using both gov4 and gov2 wallets. The objective is to verify whether gov4, as a new member of the EC committee, can effectively execute tasks related to the EC committee and charter.

The PR also adds E2E tests that ensure gov3 can no longer propose and vote on questions.

Copy link

cloudflare-workers-and-pages bot commented Oct 16, 2024

Deploying dapp-econ-gov with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4027d6c
Status: ✅  Deploy successful!
Preview URL: https://8ddc65c0.dapp-econ-gov.pages.dev
Branch Preview URL: https://rs-test-this-branch.dapp-econ-gov.pages.dev

View logs

Copy link

github-actions bot commented Oct 16, 2024

Cloudflare deployment logs are available here

@rabi-siddique rabi-siddique force-pushed the rs-gov4-tests branch 3 times, most recently from e1048d9 to f3d47fe Compare October 16, 2024 07:08
@rabi-siddique rabi-siddique force-pushed the rs-gov4-tests branch 3 times, most recently from ebdffab to 2d97a5c Compare October 16, 2024 09:16
@dckc
Copy link
Member

dckc commented Oct 24, 2024

Let's test that gov3's voting rights are revoked as well.

@rabi-siddique
Copy link
Contributor Author

rabi-siddique commented Oct 28, 2024

@rabi-siddique rabi-siddique force-pushed the rs-gov4-tests branch 2 times, most recently from 979a1ef to 64a6e05 Compare October 28, 2024 09:35
@rabi-siddique rabi-siddique force-pushed the rs-gov4-tests branch 2 times, most recently from e17b701 to 6f0b9da Compare October 28, 2024 11:54
@rabi-siddique rabi-siddique changed the title test: propose and vote with gov4 E2E tests for gov3 and gov4 wallets Oct 28, 2024
@rabi-siddique rabi-siddique force-pushed the rs-gov4-tests branch 3 times, most recently from 477a948 to 9f7e6fb Compare October 28, 2024 13:50
Comment on lines 95 to 96
GOV1_PHRASE: ${{ inputs.gov1_mnemonic || secrets.GOV1_PHRASE }}
GOV2_PHRASE: ${{ inputs.gov2_mnemonic || secrets.GOV2_PHRASE }}
Copy link
Contributor

Choose a reason for hiding this comment

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

not directly related to this PR but we should remove these inputs for gov1 and gov2 and get the phrases from secrets only

@@ -9,6 +9,9 @@ export const phrasesList = {
networkConfigURL: 'https://emerynet.agoric.net/network-config',
gov1Phrase: Cypress.env('GOV1_PHRASE'),
gov2Phrase: Cypress.env('GOV2_PHRASE'),
// UNTIL https://github.com/Agoric/dapp-econ-gov/issues/144
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this comment mean? i dont think that we will be removing these lines after this issue is resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We won’t remove these lines. Instead, we’ll reverse the addresses. The "UNTIL" comment serves as a reminder and marker for where the update should occur.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh. missed that. thanks for clarifying

@@ -54,7 +65,12 @@ describe('Make Proposal Tests', () => {
cy.acceptAccess();
});

it('should allow gov1 to create a proposal', () => {
it('should allow gov2 to create a proposal', () => {
if (AGORIC_NET !== 'local') {
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldnt this be done for all networks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think so. Let me verify

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, you're right. Thanks for pointing it out.
Tested here in this testing branch:
https://github.com/Agoric/dapp-econ-gov/actions/runs/11574206948/job/32217963284?pr=145

Copy link
Contributor

@frazarshad frazarshad left a comment

Choose a reason for hiding this comment

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

LGTM

@rabi-siddique rabi-siddique merged commit 21ed15e into main Oct 29, 2024
7 checks passed
@rabi-siddique rabi-siddique deleted the rs-gov4-tests branch October 29, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants