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

Add more tests for create multisig #466

Merged
merged 12 commits into from
Jan 7, 2024
Merged

Conversation

Lykhoyda
Copy link
Collaborator

@Lykhoyda Lykhoyda commented Dec 12, 2023

closes #445


Copy link
Member

@asnaith asnaith left a comment

Choose a reason for hiding this comment

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

Left some minor suggestions but mainly on naming convention or typos.

I think in this test context it makes sense to have the several describe blocks to logically separate each screen in the flow 👍

packages/ui/cypress/tests/multisig-creation.cy.ts Outdated Show resolved Hide resolved
packages/ui/cypress/tests/multisig-creation.cy.ts Outdated Show resolved Hide resolved
packages/ui/cypress/tests/multisig-creation.cy.ts Outdated Show resolved Hide resolved
packages/ui/cypress/tests/multisig-creation.cy.ts Outdated Show resolved Hide resolved
packages/ui/src/components/NewMulisigAlert.tsx Outdated Show resolved Hide resolved
packages/ui/cypress/support/page-objects/landingPage.ts Outdated Show resolved Hide resolved
packages/ui/src/pages/Creation/Summary.tsx Outdated Show resolved Hide resolved
packages/ui/src/pages/Creation/index.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

Thanks for this.

I'd like to do many more checks such as the ones in the issue, once we passed the creation. Verify the pending Tx (a batch or a remark depending on whether it's been creating with or without proxy).

that there's a remark created
verify the behavior if we already have watched accounts with multisigs, e.g there's no big page with "Multisig creation in progress" but rather a banner "your new multisig is being created..."
check that for a pure creation, there's a pure creation TX pending.

But also things like some error happening when for instance we type in twice the same signatory.
Also we should actually create the pure, and validate the waiting TX for the pure creation.

chopsticks-config.yml Outdated Show resolved Hide resolved
packages/ui/cypress/fixtures/testAccounts.ts Show resolved Hide resolved
packages/ui/cypress/support/page-objects/landingPage.ts Outdated Show resolved Hide resolved
packages/ui/cypress/tests/multisig-creation.cy.ts Outdated Show resolved Hide resolved
@Lykhoyda
Copy link
Collaborator Author

@Tbaut and @asnaith thank you for your feedback! Please check again the updated version

@Lykhoyda Lykhoyda requested review from Tbaut and asnaith December 15, 2023 14:36
Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

Please correct the account and remove the chopsticks config. There are an infinity of empty accounts, no need to fake one.

packages/ui/cypress/fixtures/testAccounts.ts Show resolved Hide resolved
Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

Please re-read my comments. I feel like half of what I suggested was ignored, without comment.

packages/ui/cypress/tests/multisig-creation.cy.ts Outdated Show resolved Hide resolved
@Lykhoyda Lykhoyda force-pushed the lykhoyda/add_test_create_multisig branch from f7358bb to a787fb1 Compare January 2, 2024 17:20
@Lykhoyda Lykhoyda requested a review from Tbaut January 2, 2024 17:20
@Lykhoyda Lykhoyda removed the Status: Do not merge Added to PRs that are not allowed to be merged. label Jan 4, 2024
@Tbaut
Copy link
Collaborator

Tbaut commented Jan 5, 2024

I added some checks code to:

  • check that the text mentions there will be 1 remark or 1 batch depending if we're creating with or without proxy
  • check that the waiting tx is the one expected (pure creation or remark)
  • fix a test that actually checks that it works to add a signatory without name, and that the account is displayed without name
  • check that the first landing page waiting screen is displayed when creating a multisig for the first time
  • check that there's a banner that disappears when it's not the first creation.
  • we can't add twice the same signatory

Copy link
Collaborator

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

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

lmk @asnaith if there's anything important that you think is missing. Anton fixed the main issue, and I've added all the test I mentioned in my comments or that where mentioned in the issue. I think this is a pretty deep coverage.

Ideally, we should now add not only the creation of the multisig, but also the pure, and verify that the UI updates showing the pure in the header once it's available. This is outside of the scope of this issue, but I think it could be added by just extending the test with the pure creation.

Copy link
Member

@asnaith asnaith left a comment

Choose a reason for hiding this comment

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

@Tbaut Took some time to look through it again, I think we're all good. This is very thorough now :)

Pushed a minor wording change on a couple of test names

@Tbaut
Copy link
Collaborator

Tbaut commented Jan 6, 2024

Amazing thanks

@Tbaut Tbaut merged commit 28545ae into main Jan 7, 2024
7 checks passed
@Tbaut Tbaut deleted the lykhoyda/add_test_create_multisig branch January 7, 2024 21:31
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.

More thorough multisig creation tests
3 participants