diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-10 09:10:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-10 09:10:31 +0300 |
commit | bef328bb8c0e287ecd68e21bae40bdb335971212 (patch) | |
tree | 3d867e67eb59e127e5bf7c80e34a6be6b5226428 /spec/frontend/alert_handler_spec.js | |
parent | aaa0fba8208ac74b34c2f87dde13611656fe7df6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/alert_handler_spec.js')
-rw-r--r-- | spec/frontend/alert_handler_spec.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/frontend/alert_handler_spec.js b/spec/frontend/alert_handler_spec.js index e4cd38a7799..228053b1b2b 100644 --- a/spec/frontend/alert_handler_spec.js +++ b/spec/frontend/alert_handler_spec.js @@ -26,12 +26,12 @@ describe('Alert Handler', () => { }); it('should render the alert', () => { - expect(findFirstAlert()).toExist(); + expect(findFirstAlert()).not.toBe(null); }); it('should dismiss the alert on click', () => { findFirstDismissButton().click(); - expect(findFirstAlert()).not.toExist(); + expect(findFirstAlert()).toBe(null); }); }); @@ -58,12 +58,12 @@ describe('Alert Handler', () => { }); it('should render the banner', () => { - expect(findFirstBanner()).toExist(); + expect(findFirstBanner()).not.toBe(null); }); it('should dismiss the banner on click', () => { findFirstDismissButton().click(); - expect(findFirstBanner()).not.toExist(); + expect(findFirstBanner()).toBe(null); }); }); @@ -79,12 +79,12 @@ describe('Alert Handler', () => { }); it('should render the banner', () => { - expect(findFirstAlert()).toExist(); + expect(findFirstAlert()).not.toBe(null); }); it('should dismiss the banner on click', () => { findFirstDismissButtonByClass().click(); - expect(findFirstAlert()).not.toExist(); + expect(findFirstAlert()).toBe(null); }); }); }); |