Skip to content

Commit

Permalink
🔬 Fix multi funding proposal test false negatives (#4737)
Browse files Browse the repository at this point in the history
Fix multi funding proposal test false negatives
  • Loading branch information
thesan authored Jan 16, 2024
1 parent df1926c commit 41614ad
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,13 @@ export const SpecificParametersMultipleFundingRequest: Story = {
expect(await modal.findByText(/Please preview and validate the inputs to proceed/))
expect(nextButton).toBeDisabled()
await waitFor(() => expect(previewButton).toBeEnabled())
await userEvent.click(previewButton)
expect(await modal.findByText(/Max payment amount is exceeded/))
await waitFor(
async () => {
await userEvent.click(previewButton)
expect(await modal.findByText(/Max payment amount is exceeded/))
},
{ timeout: 8000 }
)
await userEvent.click(modal.getByTestId('sidePanel-overlay')) //ensure create proposal is still disabled
expect(nextButton).toBeDisabled()

Expand Down

2 comments on commit 41614ad

@vercel
Copy link

@vercel vercel bot commented on 41614ad Jan 16, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

pioneer-2-storybook – ./

pioneer-2-storybook.vercel.app
pioneer-2-storybook-joystream.vercel.app
pioneer-2-storybook-git-dev-joystream.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 41614ad Jan 16, 2024

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

pioneer-2 – ./

pioneer-2-joystream.vercel.app
pioneer-2.vercel.app
pioneer-2-git-dev-joystream.vercel.app

Please sign in to comment.