Skip to content

Commit 14879e5

Browse files
committed
fix(ion-alert): fix test validation
1 parent 1c22eeb commit 14879e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/components/alert/test/alert-id.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { h } from '@stencil/core';
12
import { newSpecPage } from '@stencil/core/testing';
23

34
import { Alert } from '../alert';
4-
import { h } from '@stencil/core';
55

66
describe('alert: id', () => {
77
it('alert should be assigned an incrementing id', async () => {
@@ -49,7 +49,7 @@ describe('alert: id', () => {
4949
template: () => <ion-alert htmlAttributes={{ id }} overlayIndex={-1}></ion-alert>,
5050
});
5151

52-
const alert = page.body.querySelector('ion-alert')!;
53-
expect(alert.id).toBe(id);
52+
const alertwrapper = page.body.querySelector('.alert-wrapper')!;
53+
expect(alertwrapper.id).toBe(id);
5454
});
5555
});

0 commit comments

Comments
 (0)