Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 5b362a9

Browse files
author
Arthur Lutkevichus
committed
fix(modal): Tests fixes
1 parent a5c6f74 commit 5b362a9

File tree

2 files changed

+1808
-1
lines changed

2 files changed

+1808
-1
lines changed

src/modal/test/modal.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,10 @@ describe('$uibModal', function() {
427427
var modal = open({template: '<div>Content</div>'});
428428
expect($document).toHaveModalsOpen(1);
429429

430-
$document.find('body > div.modal').click();
430+
var selector = 'body > div.modal';
431+
$document.find(selector).mousedown();
432+
$document.find(selector).mouseup();
433+
$document.find(selector).click();
431434
$animate.flush();
432435
$rootScope.$digest();
433436
$animate.flush();

0 commit comments

Comments
 (0)