Skip to content

Commit f42c633

Browse files
committed
Fix jest test failures
1 parent 9e6b4ec commit f42c633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugins/triggers_actions_ui/public/application/sections/alert_form/alert_form.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ describe('alert_form', () => {
190190
wrapper.find('[data-test-subj="my-alert-type-SelectOption"]').first().simulate('click');
191191
const alertDescription = wrapper.find('[data-test-subj="alertDescription"]');
192192
expect(alertDescription.exists()).toBeTruthy();
193-
expect(alertDescription.first().text()).toBe('Alert when testing');
193+
expect(alertDescription.first().text()).toContain('Alert when testing');
194194
});
195195

196196
it('renders alert type documentation link', async () => {
@@ -448,7 +448,7 @@ describe('alert_form', () => {
448448
await setup();
449449
const alertDescription = wrapper.find('[data-test-subj="alertDescription"]');
450450
expect(alertDescription.exists()).toBeTruthy();
451-
expect(alertDescription.first().text()).toBe('Alert when testing');
451+
expect(alertDescription.first().text()).toContain('Alert when testing');
452452
});
453453

454454
it('renders alert type documentation link', async () => {

0 commit comments

Comments
 (0)