Skip to content

Commit

Permalink
test: prevent date-picker aria-hidden warning in ITs
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Jan 21, 2025
1 parent 90cfbd7 commit 4fec9bb
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -117,13 +117,14 @@ import { mouseenter, mouseleave } from '@vaadin/tooltip/test/helpers.js';
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
4 changes: 4 additions & 0 deletions test/integration/confirm-dialog-fields.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ 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;
await nextRender();
Expand Down

0 comments on commit 4fec9bb

Please sign in to comment.