-
Notifications
You must be signed in to change notification settings - Fork 929
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: updates to useCombobox and useSelect to adhere to the 1.2 version of the ARIA Combobox pattern. Migration guide is available in [this file](https://github.com/downshift-js/downshift/tree/master/src/hooks/MIGRATION_V7.md). Closes #1365. Closes #1239. Contains changes from #1149.
- Loading branch information
1 parent
6bd18eb
commit 7540e3d
Showing
49 changed files
with
3,645 additions
and
3,461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
describe('useMultipleCombobox', () => { | ||
before(() => { | ||
cy.visit('/useMultipleCombobox') | ||
}) | ||
|
||
it('can select multiple items', () => { | ||
cy.findByRole('button', {name: 'toggle menu'}).click() | ||
cy.findByRole('option', {name: 'Green'}).click() | ||
cy.findByRole('option', {name: 'Gray'}).click() | ||
cy.findByRole('button', {name: 'toggle menu'}).click() | ||
cy.findByText('Black').should('be.visible') | ||
cy.findByText('Red').should('be.visible') | ||
cy.findByText('Green').should('be.visible') | ||
cy.findByText('Gray').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
describe('useMultipleSelect', () => { | ||
before(() => { | ||
cy.visit('/useMultipleSelect') | ||
}) | ||
|
||
it('can select multiple options', () => { | ||
cy.findByRole('combobox').click() | ||
cy.findByRole('option', {name: 'Green'}).click() | ||
cy.findByRole('option', {name: 'Gray'}).click() | ||
cy.findByRole('combobox').click() | ||
cy.findByText('Black').should('be.visible') | ||
cy.findByText('Red').should('be.visible') | ||
cy.findByText('Green').should('be.visible') | ||
cy.findByText('Gray').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.