Skip to content

Commit

Permalink
Revert "Fix the tests"
Browse files Browse the repository at this point in the history
This reverts commit 12c8cbd.
  • Loading branch information
thesan committed Feb 21, 2024
1 parent 953275c commit 8914ed0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/ui/src/app/App.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export const NoAccount: Story = {
const modal = withinModal(canvasElement)
expectActiveStepToBe(modal, 'Connect account')
expect(modal.getByText('Connect account', { selector: '[class^=ModalBody] *' }))
expect(getButtonByText(modal, 'Change wallet')).toBeEnabled()
expect(getButtonByText(modal, 'Return to wallet selection')).toBeEnabled()
expect(getButtonByText(modal, 'Connect Account')).toBeDisabled()
expect(modal.queryByText('alice')).toBeNull()
},
Expand All @@ -303,7 +303,7 @@ export const FaucetMembership: Story = {
expectActiveStepToBe(modal, 'Connect account')
expect(modal.getByText('Connect account', { selector: '[class^=ModalBody] *' }))

expect(getButtonByText(modal, 'Change wallet')).toBeEnabled()
expect(getButtonByText(modal, 'Return to wallet selection')).toBeEnabled()

const connectAccountButton = getButtonByText(modal, 'Connect Account')
expect(connectAccountButton).toBeDisabled()
Expand Down Expand Up @@ -353,7 +353,6 @@ export const BuyMembershipHappy: Story = {
expect(screen.queryByText('Become a member')).toBeNull()

await userEvent.click(getButtonByText(screen, 'Join Now'))
await userEvent.click(await modal.findByText('New Member'))

await step('Form', async () => {
const createButton = getButtonByText(modal, 'Create a Membership')
Expand Down Expand Up @@ -467,7 +466,6 @@ export const BuyMembershipNotEnoughFund: Story = {
const modal = withinModal(canvasElement)

await userEvent.click(getButtonByText(screen, 'Join Now'))
await userEvent.click(await modal.findByText('New Member'))

await fillMembershipForm(modal)
const createButton = getButtonByText(modal, 'Create a Membership')
Expand All @@ -488,7 +486,6 @@ export const BuyMembershipTxFailure: Story = {
const modal = withinModal(canvasElement)

await userEvent.click(getButtonByText(screen, 'Join Now'))
await userEvent.click(await modal.findByText('New Member'))

await fillMembershipForm(modal)
const createButton = getButtonByText(modal, 'Create a Membership')
Expand Down

0 comments on commit 8914ed0

Please sign in to comment.