|
|
@@ -125,34 +125,46 @@ Feature: Admin Actions to Post News |
|
|
Then I should not see a translated admin post
|
|
|
|
|
|
Scenario: Log in as an admin and create an admin post with tags
|
|
|
- Given I have no users
|
|
|
- And the following admin exists
|
|
|
- | login | password |
|
|
|
- | Elz | secret |
|
|
|
- When I go to the admin login page
|
|
|
- And I fill in "admin_login" with "Elz"
|
|
|
- And I fill in "admin_password" with "secret"
|
|
|
- And I press "Log in as admin"
|
|
|
- Then I should see "Successfully logged in"
|
|
|
+ Given I am logged in as an admin
|
|
|
When I follow "Admin Posts"
|
|
|
And I follow "Post AO3 News"
|
|
|
Then I should see "New AO3 News Post"
|
|
|
When I fill in "admin_post_title" with "Good news, everyone!"
|
|
|
And I fill in "content" with "I've taught the toaster to feel love."
|
|
|
- And I fill in "admin_post_tag_list" with "quotes, futurama"
|
|
|
+ And I fill in "Tags" with "quotes, futurama"
|
|
|
And I press "Post"
|
|
|
Then I should see "Admin Post was successfully created."
|
|
|
And I should see "toaster" within "div.admin.home"
|
|
|
And I should see "futurama" within "dd.tags"
|
|
|
|
|
|
- Scenario: Admin posts should show both translations and tags
|
|
|
+ Scenario: Admin posts can be filtered by tags and languages
|
|
|
Given I have posted an admin post with tags
|
|
|
And basic languages
|
|
|
And I am logged in as an admin
|
|
|
- When I make a translation of an admin post
|
|
|
+ When I make a translation of an admin post with tags
|
|
|
And I am logged in as "ordinaryuser"
|
|
|
Then I should see a translated admin post with tags
|
|
|
|
|
|
+ When I follow "News"
|
|
|
+ Then "futurama" should be an option within "Tag"
|
|
|
+ And "quotes" should be an option within "Tag"
|
|
|
+ And "Deutsch" should be an option within "Language"
|
|
|
+ And "English" should be selected within "Language"
|
|
|
+
|
|
|
+ # No tag selected
|
|
|
+ When I press "Go"
|
|
|
+ Then I should see "Content of the admin post"
|
|
|
+ And I should not see "Deutsch Woerter"
|
|
|
+ And "English" should be selected within "Language"
|
|
|
+
|
|
|
+ When I select "quotes" from "Tag"
|
|
|
+ And I select "Deutsch" from "Language"
|
|
|
+ And I press "Go"
|
|
|
+ Then I should not see "Content of the admin post"
|
|
|
+ And I should see "Deutsch Woerter"
|
|
|
+ And "quotes" should be selected within "Tag"
|
|
|
+ And "Deutsch" should be selected within "Language"
|
|
|
+
|
|
|
Scenario: If an admin post has characters like & and < and > in the title, the escaped version will not show on the various admin post pages
|
|
|
Given I am logged in as an admin
|
|
|
When I follow "Admin Posts"
|
|
|
|
(...) interpreted as grouped expression.