Change trigger('focus') -> click

This commit is contained in:
Stan Hu 2017-08-09 23:06:28 -07:00
parent 50701b58bf
commit 4b5483321a
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ describe 'Admin > Users > Impersonation Tokens', js: true do
fill_in "Name", with: name fill_in "Name", with: name
# Set date to 1st of next month # Set date to 1st of next month
find_field("Expires at").trigger('focus') find_field("Expires at").click
find(".pika-next").click find(".pika-next").click
click_on "1" click_on "1"

View file

@ -34,7 +34,7 @@ describe 'Profile > Personal Access Tokens', js: true do
fill_in "Name", with: name fill_in "Name", with: name
# Set date to 1st of next month # Set date to 1st of next month
find_field("Expires at").trigger('focus') find_field("Expires at").click
find(".pika-next").click find(".pika-next").click
click_on "1" click_on "1"