webdriverio / webdriverio/visual-testing

support for shadowRoot elements in @wdio/visual-service for tab testing

Open
#515 1 comment 0 reactions 1 assignee View on GitHub

@wswebcreation is already working on this.

Since Sep 24, 2024.

enhancement
Dominant language
TypeScript
Stars
153
Forks
59
PR merge metrics
No merged PRs in 30d

Description

ShadowRoot elements are not getting recognized during tab testing
While trying tab testing on my website, which is having many shadow root elements, it was not capturing tabs for elements inside shadowRoot

await expect(await browser.checkTabbablePage(screenshotName, { // ignoreColors: true, })).toEqual(differencesCount);

User should have parameterized option to enable tab testing for shadowRoot elements as well
Referred https://www.npmjs.com/package/tabbable, here we have getShadowRoot option to enable shadowRoot elements, similarly we should have an option in the library to enable tab testing to include shadowRoot elements along with other elements.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.