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

[#632] Add test for radios in a form #638

Merged
merged 1 commit into from
Apr 16, 2022
Merged

[#632] Add test for radios in a form #638

merged 1 commit into from
Apr 16, 2022

Conversation

stefcameron
Copy link
Member

Can't repro the issue, but might as well keep the test since we
seem to like fieldsets but not forms for some reason.

PR Checklist

Please leave this checklist in your PR.

  • Source changes maintain stated browser compatibility.
  • Issue being fixed is referenced.
  • Unit test coverage added/updated.
  • E2E test coverage added/updated.
  • Typings added/updated.
  • Changes do not break SSR:
    • Careful to test typeof document/window !== 'undefined' before using it in code that gets executed on load.
  • README updated (API changes, instructions, etc.).
  • Changes to dependencies explained.
  • Changeset added (run yarn changeset locally to add one, and follow the prompts).
    • EXCEPTION: A Changeset is not required if the change does not affect any of the source files that produce the package bundle. For example, demo changes, tooling changes, test updates, or a new dev-only dependency to run tests more efficiently should not have a Changeset since it will not affect package consumers.

Can't repro the issue, but might as well keep the test since we
seem to like fieldsets but not forms for some reason.
@changeset-bot
Copy link

changeset-bot bot commented Apr 16, 2022

⚠️ No Changeset found

Latest commit: 049467f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link

codecov bot commented Apr 16, 2022

Codecov Report

Merging #638 (049467f) into beta-530 (ed8515f) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           beta-530     #638   +/-   ##
=========================================
  Coverage     97.61%   97.61%           
=========================================
  Files             1        1           
  Lines           210      210           
  Branches        101      101           
=========================================
  Hits            205      205           
  Misses            5        5           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed8515f...049467f. Read the comment docs.

@stefcameron stefcameron merged commit 1c6519a into beta-530 Apr 16, 2022
@stefcameron stefcameron deleted the radios branch April 16, 2022 18:37
stefcameron added a commit that referenced this pull request Apr 20, 2022
Can't repro the issue, but might as well keep the test since we
seem to like fieldsets but not forms for some reason.
stefcameron added a commit that referenced this pull request Apr 20, 2022
* chore(dev): declarative shadow root test fixtures

- new development shadow-root-utils
- refactor setupFixture to render using new utils
- refactor current shadow dom tests to use declarative root
- debug page renders shadow root fixtures correctly

* feat: separate radio light/shadow dom groups

* feat: detect display across shadow boundaries

* feat: scan through shadow boundary

- iterate down dom instead of query when getShadowRoot is provided
- new candidate list/tree format with scoped lists

* chore(types): added getShadowDom to types

* fix: type of getShadowRoot option

* test: add test to locate tabbable host

* feat: slot elements are not focusable/tabbable

* chore: added some jsdocs

* refactor: modernize syntax

- as requested in PR

* Prepare for 5.3.0-beta.0

* 5.3.0-beta.0

* Adjusting code after #604 and comments

* Disable shadow DOM for isFocusable/isTabbable if getShadowRoot not given

This goes along with disabling it for `tabbable()` and `focusable()`
when the option isn't given.

* Clarify getShadowRoot must be set to enable shadow DOM support

* Add support for `getShadowRoot: true`

Note this is the equivalent of `getShadowRoot: () => false` which
simply enables shadow DOM support for all open shadows.

* Prepare for v5.3.0-beta.1

* 5.3.0-beta.1

* Add prepublishOnly script for manual publishing

* fix(index.js) The tabIndex of audio, video and details was left to the default if set to some NaN (#610)

* fix(index.js) The tabIndex of contentEditable elements was assumed to be zero in any case, not only in the case it was not specifically set.

* Simplified and optimized 'getTabIndex'.

* Made better use of short-circuit evaluation in 'isNodeMatchingSelectorTabbable', reducing the chances to call the computationally expensive 'isNodeMatchingSelectorFocusable'.

* (Re)Added 'isScope' parameter to 'getTabIndex'. This parameter wasn't present in the master branch, so I lost it in the rebase process.

* Added tests for a `contenteditable` with negative tab index.

* Fixed bug, now the getTabIndex can return 0 not only when the tabindex is not explicitly set, but also when is set to a value that gives NaN when parsed as integer (which would have been resulted in the default browser tabIndex, as if the tabindex wasn't set at all). Also added test for the case an element has a tab index that can't be turned into an integer.

* Added changeset, added entry in CHANGELOG.md and wrote more tests.

* Be consistent with asterisks

* Sync package.json/yarn.lock with beta-530 base branch

Co-authored-by: Stefan Cameron <[email protected]>

* [#632] Add test for radios in a form (#638)

Can't repro the issue, but might as well keep the test since we
seem to like fieldsets but not forms for some reason.

* Add changeset for shadow root support

Co-authored-by: Ido Rosenthal <[email protected]>
Co-authored-by: DaviDevMod <[email protected]>
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.

1 participant