Skip to content

Commit

Permalink
test: prevent date-picker aria-hidden warning in ITs (#8544)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Jan 21, 2025
1 parent 595b762 commit 4498a52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/component-tooltip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,14 @@ before(() => {
expect(tooltipOverlay.position).to.equal(position || 'bottom');
});

it('should or should not show tooltip', () => {
it('should or should not show tooltip', async () => {
mouseenter(tooltip.target);
expect(tooltipOverlay.opened).to.be.true;
mouseleave(tooltip.target);

if (applyShouldNotShowCondition) {
applyShouldNotShowCondition(element);
await nextRender();

mouseenter(tooltip.target);
expect(tooltipOverlay.opened).to.be.false;
Expand Down
3 changes: 3 additions & 0 deletions test/integration/confirm-dialog-fields.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ describe('confirm-dialog with fields', () => {
dialog = document.createElement('vaadin-confirm-dialog');
field = document.createElement(`vaadin-${component}`);
field.label = 'Label';
if (component === 'date-picker') {
field.autoOpenDisabled = true;
}
dialog.appendChild(field);
document.body.appendChild(dialog);
dialog.opened = true;
Expand Down

0 comments on commit 4498a52

Please sign in to comment.