fix spinach
This commit is contained in:
parent
195dc3a746
commit
5605e15914
1 changed files with 5 additions and 3 deletions
|
@ -15,15 +15,17 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
step 'I click to emoji in the picker' do
|
||||
page.within '.emoji-menu' do
|
||||
page.within '.emoji-menu-content' do
|
||||
page.first('.emoji-icon').click
|
||||
end
|
||||
end
|
||||
|
||||
step 'I can remove it by clicking to icon' do
|
||||
page.within '.awards' do
|
||||
page.first('.award').click
|
||||
expect(page).to_not have_selector '.award'
|
||||
expect do
|
||||
page.find('.award.active').click
|
||||
sleep 0.1
|
||||
end.to change{ page.all(".award").size }.from(3).to(2)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue