forked from activeadmin/activeadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18n.feature
55 lines (45 loc) · 1.61 KB
/
i18n.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@locale_manipulation
Feature: Internationalization
ActiveAdmin should use the translations provided by the host app.
Scenario: Store's model name was translated to "Bookstore"
Given I am logged in
And a store named "Hello words" exists
When I go to the dashboard
Then I should see "Bookstores"
When I follow "Bookstores"
Then I should see the page title "Bookstores"
And I should see "Hello words"
When I follow "View"
Then I should see "Bookstore Details"
And I should see "Hello words"
And I should see a link to "Delete Bookstore"
When I follow "Edit Bookstore"
Then I should see "Edit Bookstore"
When I press "Update Bookstore"
Then I should see a flash with "Bookstore was successfully updated."
Scenario: Switching language at runtime
Given I am logged in
When I set my locale to "fr"
And I go to the dashboard
Then I should see "Store"
And I should see "Déconnexion"
When I set my locale to "en"
And I go to the dashboard
Then I should see "Bookstore"
And I should see "Logout"
Scenario: Overriding translations
Given I am logged in
And a store named "Hello words" exists
When I go to the dashboard
And I follow "Bookstores"
Then I should see "Download this:"
Scenario: Overriding resource details table title
Given a configuration of:
"""
ActiveAdmin.register Post
"""
And String "Post detailed information" corresponds to "resources.post.details"
And I am logged in
And a post exists
When I go to the last post's show page
Then I should see "Post detailed information"