fix drag attachment e2e

stable
Juanfran 2015-08-12 09:54:19 +02:00
parent 3f5e259503
commit 18b5041dd1
3 changed files with 4 additions and 16 deletions

View File

@ -83,15 +83,8 @@ class IssueDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
initializeEventHandlers: -> initializeEventHandlers: ->
@scope.$on "attachment:create", => @scope.$on "attachment:create", =>
@rootscope.$broadcast("object:updated")
@analytics.trackEvent("attachment", "create", "create attachment on issue", 1) @analytics.trackEvent("attachment", "create", "create attachment on issue", 1)
@scope.$on "attachment:edit", =>
@rootscope.$broadcast("object:updated")
@scope.$on "attachment:delete", =>
@rootscope.$broadcast("object:updated")
@scope.$on "promote-issue-to-us:success", => @scope.$on "promote-issue-to-us:success", =>
@analytics.trackEvent("issue", "promoteToUserstory", "promote issue to userstory", 1) @analytics.trackEvent("issue", "promoteToUserstory", "promote issue to userstory", 1)
@rootscope.$broadcast("object:updated") @rootscope.$broadcast("object:updated")

View File

@ -77,11 +77,6 @@ class TaskDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
initializeEventHandlers: -> initializeEventHandlers: ->
@scope.$on "attachment:create", => @scope.$on "attachment:create", =>
@analytics.trackEvent("attachment", "create", "create attachment on task", 1) @analytics.trackEvent("attachment", "create", "create attachment on task", 1)
@rootscope.$broadcast("object:updated")
@scope.$on "attachment:edit", =>
@rootscope.$broadcast("object:updated")
@scope.$on "attachment:delete", =>
@rootscope.$broadcast("object:updated")
@scope.$on "custom-attributes-values:edit", => @scope.$on "custom-attributes-values:edit", =>
@rootscope.$broadcast("object:updated") @rootscope.$broadcast("object:updated")
@scope.$on "comment:new", => @scope.$on "comment:new", =>

View File

@ -112,19 +112,19 @@ common.drag = async function(elm, elm2) {
.mouseMove(elm2) .mouseMove(elm2)
.perform(); .perform();
await browser.sleep(20); await browser.sleep(60);
await browser.actions() await browser.actions()
.mouseMove({x: 10, y: -10}) // fire jqueryui mousemove event always .mouseMove({x: 10, y: -10}) // fire jqueryui mousemove event always
.perform(); .perform();
await browser.sleep(20); await browser.sleep(60);
await browser.actions() await browser.actions()
.mouseMove(elm2) .mouseMove({x: -10, y: 10})
.perform(); .perform();
await browser.sleep(20); await browser.sleep(60);
return browser.actions() return browser.actions()
.mouseUp() .mouseUp()