We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c22eeb commit 14879e5Copy full SHA for 14879e5
core/src/components/alert/test/alert-id.spec.tsx
@@ -1,7 +1,7 @@
1
+import { h } from '@stencil/core';
2
import { newSpecPage } from '@stencil/core/testing';
3
4
import { Alert } from '../alert';
-import { h } from '@stencil/core';
5
6
describe('alert: id', () => {
7
it('alert should be assigned an incrementing id', async () => {
@@ -49,7 +49,7 @@ describe('alert: id', () => {
49
template: () => <ion-alert htmlAttributes={{ id }} overlayIndex={-1}></ion-alert>,
50
});
51
52
- const alert = page.body.querySelector('ion-alert')!;
53
- expect(alert.id).toBe(id);
+ const alertwrapper = page.body.querySelector('.alert-wrapper')!;
+ expect(alertwrapper.id).toBe(id);
54
55
0 commit comments