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

Add support for button form property in snaps-simulation #2830

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Oct 11, 2024

In #2712 we added a form property to the button component, but we didn't add support to snaps-simulation/snaps-jest. In this PR I've added some logic to snaps-simulation to support this prop, so that forms are submitted when a button is placed outside a form with this prop.

@Mrtenz Mrtenz requested a review from a team as a code owner October 11, 2024 12:39
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.45%. Comparing base (f4890dd) to head (b22869f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2830   +/-   ##
=======================================
  Coverage   94.45%   94.45%           
=======================================
  Files         484      484           
  Lines       10337    10341    +4     
  Branches     1575     1576    +1     
=======================================
+ Hits         9764     9768    +4     
  Misses        573      573           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Mrtenz Mrtenz force-pushed the mrtenz/simulation-button-form branch from f47a98a to b22869f Compare October 11, 2024 12:57
@Mrtenz Mrtenz merged commit 8c8dafe into main Oct 11, 2024
166 checks passed
@Mrtenz Mrtenz deleted the mrtenz/simulation-button-form branch October 11, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants