Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 034b224

Browse files
committed
Fixed failing tests
1 parent 50f9562 commit 034b224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/support/capybara_activeadmin_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def flag_icon(locale = I18n.locale)
8080
# Return an a element used to trigger language switch using javascript
8181
def flag_link(locale = I18n.locale)
8282
# find the flag icon by class and go back to parent to get the link
83-
find(:xpath, %Q{.//img[contains(@class, "flag-#{locale}")]/..})
83+
find(:xpath, %Q{.//i[contains(@class, "flag-#{locale}")]/..})
8484
end
8585

8686
# Link used to switch tabs for translations

0 commit comments

Comments
 (0)