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

Update award_emoji test

parent 7bb378b3
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
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