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(webdriverio): include/exclude chaining and iframe selectors #409

Merged
merged 14 commits into from
Dec 17, 2021

Conversation

Zidious
Copy link
Contributor

@Zidious Zidious commented Nov 30, 2021

Added support for method chaining on include and include as well as iframe CSS selectors.

Refactored current include/exclude tests to be more extensive. Used a function from Playwright that returns the node targets within a string array.

Examples:

// include and exclude
 const builder = new AxeBuilder({client})
        .include('.include')
        .exclude('.exclude');
// chaining include
const builder = new AxeBuilder({client})
        .include('.include')
        .include('.include2');
// chaining exclude
const builder = new AxeBuilder({client})
        .exclude('.exclude')
        .exclude('.exclude2');
// chaining include and exclude
const builder = new AxeBuilder({client})
 		.include('.include')
        .include('.include2')
        .exclude('.exclude')
        .exclude('.exclude2');
// iframe selectors
const builder = new AxeBuilder({client})
        .include(['#ifr-one', 'html'])
        .exclude(['#ifr-one', 'main']);

Closes Issue: #332 (WDIO part)

@Zidious Zidious marked this pull request as ready for review December 10, 2021 15:45
@Zidious Zidious requested a review from a team December 10, 2021 15:45
@Zidious Zidious merged commit ca8aa31 into develop Dec 17, 2021
@Zidious Zidious deleted the fix/wdio-complex-include-exclude branch December 17, 2021 18:35
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.

None yet

2 participants