mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 14:46:05 +10:00
Update award_emoji test
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class EmojisController < ApplicationController
|
||||
layout false
|
||||
|
||||
def index
|
||||
render :index, layout: false
|
||||
end
|
||||
end
|
||||
|
||||
@@ -96,7 +96,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
|
||||
end
|
||||
|
||||
step 'The search field is focused' do
|
||||
sleep 0.8
|
||||
page.evaluate_script("document.activeElement.id").should eq "emoji_search"
|
||||
expect(page).to have_selector('#emoji_search')
|
||||
expect(page.evaluate_script('document.activeElement.id')).to eq('emoji_search')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user