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

Fix flaky test #823

Open
cstenglein opened this issue Feb 14, 2025 · 0 comments
Open

Fix flaky test #823

cstenglein opened this issue Feb 14, 2025 · 0 comments
Labels
App:Other Issues not directly related to the App (e.g. folder organization) bug Something isn't working prio:low Low Priority

Comments

@cstenglein
Copy link
Collaborator

See https://github.com/raspiblitz/raspiblitz-web/actions/runs/13336974116/job/37254245696?pr=822

 FAIL  src/pages/Home/SendModal/__tests__/ConfirmSend.test.tsx > ConfirmSend > on chain tx with amount above zero > valid form passes
Error: expect(element).not.toBeDisabled()

Received element is disabled:
  <button
  class="z-0 group relative inline-flex items-center justify-center box-border appearance-none select-none whitespace-nowrap subpixel-antialiased overflow-hidden tap-highlight-transparent data-[pressed=true]:scale-[0.97] outline-none data-[focus-visible=true]:z-10 data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-focus data-[focus-visible=true]:outline-offset-2 min-w-20 h-10 text-small gap-2 rounded-full opacity-disabled pointer-events-none [&>svg]:max-w-[theme(spacing.8)] transition-transform-colors-opacity motion-reduce:transition-none bg-primary text-primary-foreground data-[hover=true]:opacity-hover px-8 py-6 font-semibold"
  data-disabled="true"
  disabled=""
  type="submit"
/>
 ❯ src/pages/Home/SendModal/__tests__/ConfirmSend.test.tsx:244:13
    242|           name: "settings.confirm",
    243|         }),
    244|       ).not.toBeDisabled();
       |             ^
    245|     });
    246|   });

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯


 Test Files  1 failed | 15 passed (16)
      Tests  1 failed | 63 passed (64)
@cstenglein cstenglein added App:Other Issues not directly related to the App (e.g. folder organization) bug Something isn't working prio:low Low Priority labels Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App:Other Issues not directly related to the App (e.g. folder organization) bug Something isn't working prio:low Low Priority
Projects
None yet
Development

No branches or pull requests

1 participant