-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not throw when opened is set before adding to DOM (#7335)
- Loading branch information
1 parent
8e5223b
commit a5ac705
Showing
4 changed files
with
35 additions
and
4 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
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,15 @@ | ||
import { expect } from '@esm-bundle/chai'; | ||
import { fixtureSync } from '@vaadin/testing-helpers'; | ||
import '../vaadin-select.js'; | ||
|
||
// NOTE: this test is Polymer only as it checks for Polymer specific bug. | ||
// Do not import `not-animated-styles.js` in this test intentionally, as | ||
// otherwise the immediately closed overlay would make it false positive. | ||
|
||
describe('pre-opened', () => { | ||
it('should not throw error when adding a pre-opened select', () => { | ||
expect(() => { | ||
fixtureSync('<vaadin-select opened></vaadin-select>'); | ||
}).to.not.throw(Error); | ||
}); | ||
}); |