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

🤯 Refactor add new proposal tests #4473

Merged
merged 33 commits into from
Jul 18, 2023
Merged

Conversation

@vercel
Copy link

vercel bot commented Jul 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Jul 18, 2023 9:26am
pioneer-2 ✅ Ready (Inspect) Visit Preview Jul 18, 2023 9:26am
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Jul 18, 2023 9:26am

await userEvent.click(await modal.findByText('Sign transaction and change mode'))

expect(await modal.findByText('It failed 🙀'))
// within(document.body).getByText('Transaction failed')
Copy link
Member Author

Choose a reason for hiding this comment

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

The TransactionStatus popup doesn't appear during the tx.proposalsDiscussion.changeThreadMode

await completeForms(canvasElement, step)
await userEvent.click(modal.getByText('Sign transaction and Bind Staking Account'))

expect(await modal.findByText('It failed 🙀'))
Copy link
Member Author

@thesan thesan Jul 13, 2023

Choose a reason for hiding this comment

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

The transaction failure modal appears behind the add proposal modal in all flows.

As a result even though this element is in the document it's not actually visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants