Commit 476a8049 authored by Annabel Dunstone's avatar Annabel Dunstone

Update award_emoji test

parent 7bb378b3
class EmojisController < ApplicationController class EmojisController < ApplicationController
layout false
def index def index
render :index, layout: false
end end
end end
...@@ -96,7 +96,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps ...@@ -96,7 +96,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
end end
step 'The search field is focused' do step 'The search field is focused' do
sleep 0.8 expect(page).to have_selector('#emoji_search')
page.evaluate_script("document.activeElement.id").should eq "emoji_search" expect(page.evaluate_script('document.activeElement.id')).to eq('emoji_search')
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment