Skip to content

Commit

Permalink
Change the spec to work with the new features
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielePalombo committed Jul 14, 2017
1 parent 54d4b77 commit 351ad27
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/features/admin/translations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
end

scenario 'adds german to available locales' do
within(".store-id-#{store.id}") do
within("#store-id-#{store.id}") do
expect(page).to_not have_content(language)
find('a.edit-available-locales').click
find('a[data-action="edit"]').click

targetted_select2_search(language, from: '#s2id_store_preferred_available_locales_')
targetted_select2_search(language, from: '.available-locales')

find('a.save-available-locales').click
find('a[data-action="save"]').click

wait_for_ajax

Expand All @@ -38,13 +38,13 @@
end

scenario 'adds french to available locales' do
within(".store-id-#{store.id}") do
within("#store-id-#{store.id}") do
expect(page).to_not have_content(french)
find('a.edit-available-locales').click
find('a[data-action="edit"]').click

targetted_select2_search(french, from: '#s2id_store_preferred_available_locales_')
targetted_select2_search(french, from: '.available-locales')

find('a.save-available-locales').click
find('a[data-action="save"]').click

wait_for_ajax

Expand Down

0 comments on commit 351ad27

Please sign in to comment.