react-select-event
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -57,7 +57,7 @@ 'use strict'; | ||
for (const option of options) { | ||
openMenu(input); // only consider accessible elements | ||
openMenu(input); // only consider visible, interactive elements | ||
const optionElement = await dom.findByText(container, option, { | ||
// @ts-ignore invalid rtl types :'( | ||
ignore: ":not([tabindex])" | ||
ignore: "[aria-live] *,[style*='visibility: hidden']" | ||
}); | ||
@@ -64,0 +64,0 @@ dom.fireEvent.click(optionElement); |
@@ -53,7 +53,7 @@ import { fireEvent, findByText, wait } from '@testing-library/dom'; | ||
for (const option of options) { | ||
openMenu(input); // only consider accessible elements | ||
openMenu(input); // only consider visible, interactive elements | ||
const optionElement = await findByText(container, option, { | ||
// @ts-ignore invalid rtl types :'( | ||
ignore: ":not([tabindex])" | ||
ignore: "[aria-live] *,[style*='visibility: hidden']" | ||
}); | ||
@@ -60,0 +60,0 @@ fireEvent.click(optionElement); |
{ | ||
"name": "react-select-event", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "Simulate react-select events for react-testing-library", | ||
@@ -48,8 +48,8 @@ "main": "lib/react-select-event.cjs.js", | ||
"@babel/preset-typescript": "^7.3.3", | ||
"@testing-library/jest-dom": "^4.0.0", | ||
"@testing-library/jest-dom": "^5.0.1", | ||
"@testing-library/react": "^9.1.3", | ||
"@types/jest": "^24.0.13", | ||
"@types/jest": "^25.1.0", | ||
"@types/react": "^16.8.19", | ||
"@types/react-select": "^3.0.8", | ||
"jest": "^24.8.0", | ||
"jest": "^25.1.0", | ||
"prettier": "^1.17.1", | ||
@@ -56,0 +56,0 @@ "react": "^16.9.0", |
@@ -67,6 +67,6 @@ /** Simulate user events on react-select dropdowns */ | ||
// only consider accessible elements | ||
// only consider visible, interactive elements | ||
const optionElement = await findByText(container, option, { | ||
// @ts-ignore invalid rtl types :'( | ||
ignore: ":not([tabindex])" | ||
ignore: "[aria-live] *,[style*='visibility: hidden']" | ||
}); | ||
@@ -73,0 +73,0 @@ fireEvent.click(optionElement); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39258
718