Skip to content

Commit 4498a52

Browse files
authored
test: prevent date-picker aria-hidden warning in ITs (#8544)
1 parent 595b762 commit 4498a52

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎test/integration/component-tooltip.test.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,14 @@ before(() => {
119119
expect(tooltipOverlay.position).to.equal(position || 'bottom');
120120
});
121121

122-
it('should or should not show tooltip', () => {
122+
it('should or should not show tooltip', async () => {
123123
mouseenter(tooltip.target);
124124
expect(tooltipOverlay.opened).to.be.true;
125125
mouseleave(tooltip.target);
126126

127127
if (applyShouldNotShowCondition) {
128128
applyShouldNotShowCondition(element);
129+
await nextRender();
129130

130131
mouseenter(tooltip.target);
131132
expect(tooltipOverlay.opened).to.be.false;

‎test/integration/confirm-dialog-fields.test.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ describe('confirm-dialog with fields', () => {
3030
dialog = document.createElement('vaadin-confirm-dialog');
3131
field = document.createElement(`vaadin-${component}`);
3232
field.label = 'Label';
33+
if (component === 'date-picker') {
34+
field.autoOpenDisabled = true;
35+
}
3336
dialog.appendChild(field);
3437
document.body.appendChild(dialog);
3538
dialog.opened = true;

0 commit comments

Comments
 (0)