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

doc(queryconfig): Allows configuring a different element query mechanism #964

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Nov 16, 2021

  1. doc(queryconfig): Allows configuring a different element query mechanism

    Provides the ability to specify a different element query mechanism other than querySelector and querySelectorAll.
    
    An example of the usage with Georgegriff/query-selector-shadow-dom looks like this:
    
    import { querySelectorAllDeep, querySelectorDeep } from 'query-selector-shadow-dom';
    configure({
        queryElement: querySelectorDeep,
        queryAllElements: querySelectorAllDeep,
    })
    After this line, a query will also drill into the shadow dom of elements on the page
    
    Why:
    
    In our project, we are using a design system build with web components
    (via stenciljs), and different projects in different frameworks (lit,
    react, vue) want to use this library. The corresponding pr can be found
    here:
    testing-library/dom-testing-library#1054
    MatthiasKainer committed Nov 16, 2021
    Configuration menu
    Copy the full SHA
    34d4a80 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2021

  1. doc(queryconfig): Apply suggestions from review

    Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com>
    MatthiasKainer and timdeschryver committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    0707a53 View commit details
    Browse the repository at this point in the history
  2. doc(queryconfig): Moved default values up to first snipped as proposed

    Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com>
    MatthiasKainer and timdeschryver committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    011d3f2 View commit details
    Browse the repository at this point in the history