Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 4309 Bytes
1 | Feature: User authentication and permissions |
2 | In order to protect design assets from unskilled modification |
3 | and user accounts from hijacking |
4 | users should be given different access permissions |
5 | |
6 | Scenario Outline: Authentication-login |
7 | When I go to the login page |
8 | And I fill in "Username" with "<username>" |
9 | And I fill in "Password" with "password" |
10 | And I press "Login" |
11 | Then I should see "Pages" |
12 | |
13 | Examples: |
14 | | username | |
15 | | admin | |
16 | | existing | |
17 | | designer | |
18 | |
19 | Scenario Outline: Authentication-logout |
20 | Given I am logged in as "<username>" |
21 | When I follow "Logout" |
22 | Then I should be on the login screen |
23 | |
24 | Examples: |
25 | | username | |
26 | | admin | |
27 | | existing | |
28 | | designer | |
29 | |
30 | |
31 | Scenario Outline: All users can edit pages |
32 | Given I am logged in as "<username>" |
33 | And I should see "Pages" |
34 | When I go to the "pages" admin page |
35 | And I follow "Home" |
36 | Then I should see "Edit Page" |
37 | And I should see "Pages" |
38 | |
39 | Examples: |
40 | | username | |
41 | | admin | |
42 | | existing | |
43 | | designer | |
44 | |
45 | Scenario Outline: Admins and designers can see and edit snippets |
46 | Given I am logged in as "<username>" |
47 | And I should see "Design" |
48 | When I follow "Design" within "#navigation" |
49 | And I follow "Snippets" |
50 | And I should not see "You must have designer privileges" |
51 | And I follow "first" |
52 | Then I should see "Edit Snippet" |
53 | |
54 | Examples: |
55 | | username | |
56 | | admin | |
57 | | designer | |
58 | |
59 | Scenario Outline: Admins and designers can see and edit layouts |
60 | Given I am logged in as "<username>" |
61 | And I should see "Design" |
62 | When I follow "Design" within "#navigation" |
63 | And I follow "Layouts" |
64 | And I should not see "You must have designer privileges" |
65 | And I follow "Main" |
66 | Then I should see "Edit Layout" |
67 | |
68 | Examples: |
69 | | username | |
70 | | admin | |
71 | | designer | |
72 | |
73 | Scenario Outline: Ordinary users cannot edit layouts |
74 | Given I am logged in as "<username>" |
75 | And I should not see "Design" |
76 | When I go to the "layouts" admin page |
77 | Then I should see "You must have designer privileges" |
78 | |
79 | Examples: |
80 | | username | |
81 | | existing | |
82 | | another | |
83 | |
84 | Scenario Outline: Ordinary users cannot edit snippets |
85 | Given I am logged in as "<username>" |
86 | And I should not see "Design" |
87 | When I go to the "snippets" admin page |
88 | Then I should see "You must have designer privileges" |
89 | |
90 | Examples: |
91 | | username | |
92 | | existing | |
93 | | another | |
94 | |
95 | Scenario: Admins can see and edit users |
96 | Given I am logged in as "admin" |
97 | When I follow "Settings" |
98 | And I follow "Users" |
99 | And I should not see "You must have administrative privileges" |
100 | And I follow "Another" |
101 | Then I should see "Edit User" |
102 | |
103 | Scenario Outline: Non-admins cannot see or edit users |
104 | Given I am logged in as "<username>" |
105 | And I should not see "Users" |
106 | When I go to the "users" admin page |
107 | Then I should see "You must have administrative privileges" |
108 | |
109 | Examples: |
110 | | username | |
111 | | existing | |
112 | | another | |
113 | | designer | |
114 | |
115 | Scenario Outline: Non-admins see preferences link |
116 | Given I am logged in as "<username>" |
117 | And I should see "Settings" |
118 | When I follow "Settings" |
119 | And I follow "Personal" |
120 | Then I should see "Personal Preferences" |
121 | |
122 | Examples: |
123 | | username | |
124 | | existing | |
125 | | another | |
126 | | designer | |
127 | |
128 | Scenario: Admin users can see extensions |
129 | Given I am logged in as "admin" |
130 | When I follow "Settings" |
131 | And I follow "Extensions" |
132 | Then I should see "Archive" |
133 | |
134 | Scenario Outline: Non-admin users cannot see extensions |
135 | Given I am logged in as "<username>" |
136 | When I follow "Settings" |
137 | And I should not see "Extensions" |
138 | When I go to the "extensions" admin page |
139 | Then I should see "You must have administrative privileges" |
140 | |
141 | Examples: |
142 | | username | |
143 | | existing | |
144 | | another | |
145 | | designer | |
146 | |
147 | Scenario Outline: Anyone can export YAML |
148 | Given I am logged in as "<username>" |
149 | When I go to the export page |
150 | Then I should see "id:" |
151 | |
152 | Examples: |
153 | | username | |
154 | | admin | |
155 | | existing | |
156 | | another | |
157 | | designer | |