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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
df07934
Reduce fee re-calculation in `AddNewProposalModal`
thesan Jul 4, 2023
1266d9e
Fix the "warningAccepted" logic
thesan Jul 5, 2023
d198059
Fix the proposal `WarningModal`
thesan Jul 4, 2023
ef03660
Test the signal proposal flow
thesan Jul 4, 2023
f857f2b
Add "General parameters" tests
thesan Jul 5, 2023
19a3fc3
Add "Funding Request" and "Set Referral Cut" tests
thesan Jul 7, 2023
c51942f
Fix race condition during form validation
thesan Jul 7, 2023
df40a87
Fix incomplete tests
thesan Jul 7, 2023
ca203f2
Use one story per proposal type
thesan Jul 7, 2023
f6b3c99
Add the "Decrease Working Group Lead Stake" test
thesan Jul 8, 2023
fa91713
Add "Terminate Working Group Lead" test
thesan Jul 10, 2023
b9caea8
Don't initialize number inputs with a 0
thesan Jul 12, 2023
b1bd456
Add Create Working Group Lead Opening test
thesan Jul 12, 2023
8d4efc4
Add the Set Working Group Lead Reward test
thesan Jul 12, 2023
a1d54d8
Add the Set Max Validator Count test
thesan Jul 12, 2023
def9921
Add the Cancel Working Group Lead Opening test
thesan Jul 12, 2023
3f7e9a3
Add the Set Council Budget Increment test
thesan Jul 12, 2023
dea440e
Add the Set Councilor Reward test
thesan Jul 12, 2023
fffef09
Add the Set Membership Lead Invitation Quota test
thesan Jul 12, 2023
030da88
Add the Fill Working Group Lead Opening test
thesan Jul 12, 2023
93f33b6
Add the Set Initial Invitation Count test
thesan Jul 12, 2023
da8413b
Add the Set Initial Invitation Balance test
thesan Jul 12, 2023
31a38be
Add the Set Membership Price test
thesan Jul 12, 2023
86a7896
Add the Update Working Group Budget test
thesan Jul 12, 2023
435d0cf
Add the Runtime Upgrade test
thesan Jul 12, 2023
6799ca9
Complete the AddNewProposalHappy test
thesan Jul 12, 2023
811d884
Test not enough funds case
thesan Jul 12, 2023
5a349b9
Add transaction failure tests
thesan Jul 13, 2023
3532fc2
Remove the "UI: AddNewProposalModal" test suite
thesan Jul 13, 2023
e7d8637
Fix tests failing in Playwright
thesan Jul 13, 2023
78f5118
Simplify expected tx parameters amounts
thesan Jul 13, 2023
559d470
Fix failing "unit" tests
thesan Jul 13, 2023
687ffcc
Merge branch 'dev' into feature/create-proposal-tests
thesan Jul 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/ui/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Decorator } from '@storybook/react'
import { configure } from '@storybook/testing-library'
import React from 'react'
import { I18nextProvider } from 'react-i18next'
import { useForm, FormProvider } from 'react-hook-form'
Expand All @@ -15,6 +16,8 @@ import { TransactionStatusProvider } from '../src/common/providers/transactionSt
import { MockProvidersDecorator, MockRouterDecorator } from '../src/mocks/providers'
import { i18next } from '../src/services/i18n'

configure({ testIdAttribute: 'id' })

const stylesWrapperDecorator: Decorator = (Story) => (
<>
<GlobalStyle />
Expand Down
Loading