FIX: System tests failing due to assignee chooser (#430)

Since now the assignee chooser opens automatically, clicking on it was causing it to close
This commit is contained in:
Jan Cernik 2023-01-17 09:55:21 -03:00 committed by GitHub
parent 896d0e3445
commit a7df68b9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -5,7 +5,6 @@ module PageObjects
class Assign < PageObjects::Modals::Base class Assign < PageObjects::Modals::Base
def assignee=(assignee) def assignee=(assignee)
assignee = assignee.is_a?(Group) ? assignee.name : assignee.username assignee = assignee.is_a?(Group) ? assignee.name : assignee.username
find(".control-group .multi-select").click
find(".control-group input").fill_in(with: assignee) find(".control-group input").fill_in(with: assignee)
find("li[data-value='#{assignee}']").click find("li[data-value='#{assignee}']").click
end end