Skip to content
Newer
Older
100644 94 lines (87 sloc) 3.7 KB
76b58fe @CristinaRO Issue 2276: Search results in error if results contain nil values
CristinaRO authored Apr 9, 2011
1 @works @search
235e9a5 @cesy Expanding locked works test to cover searching - issue 1450
cesy authored Dec 31, 2010
2 @no-txn
3
472542e @CristinaRO Adding tests for locking (restricting) a work and a series, with some…
CristinaRO authored Jul 26, 2010
4 Feature: Locking works to archive users only
5 In order to keep my works under the radar
6 As a registered archive user
7 I should be able to make my works visible only to other registered users
9824246 @ambtus issue 1799. change pairings to relationships everywhere
ambtus authored Jul 29, 2010
8
472542e @CristinaRO Adding tests for locking (restricting) a work and a series, with some…
CristinaRO authored Jul 26, 2010
9 Scenario: Posting locked work
10 Given I am logged in as "fandomer" with password "password"
11 And basic tags
12 And I go to the new work page
13 And I select "Not Rated" from "Rating"
14 And I check "No Archive Warnings Apply"
15 And I fill in "Fandoms" with "Supernatural"
16 And I fill in "Characters" with "Sammy"
17 And I fill in "Work Title" with "Awesomeness"
18 And I fill in "content" with "The story of how they met and how they got into trouble"
19 And I check "work_restricted"
20 When I press "Preview"
235e9a5 @cesy Expanding locked works test to cover searching - issue 1450
cesy authored Dec 31, 2010
21
22 # shows as restricted
472542e @CristinaRO Adding tests for locking (restricting) a work and a series, with some…
CristinaRO authored Jul 26, 2010
23 Then I should see the "title" text "Restricted" within "h2.title"
24 When I press "Post"
25 Then I should see the "alt" text "(Restricted)" within "h2.title"
26 When I go to the works page
27 Then I should see "Awesomeness" within "h4"
28 And I should see the "alt" text "(Restricted)" within "h4"
235e9a5 @cesy Expanding locked works test to cover searching - issue 1450
cesy authored Dec 31, 2010
29 Given the work indexes are updated
30 When I fill in "site_search" with "Awesomeness"
691266e Most test failures cleaned up now, many bugfixes, skins improvements …
Lim Lim authored Oct 24, 2011
31 And I press "search"
235e9a5 @cesy Expanding locked works test to cover searching - issue 1450
cesy authored Dec 31, 2010
32 Then I should see "1 Found"
33 And I should see "fandomer" within "#main"
34
35 # doesn't show when logged out
472542e @CristinaRO Adding tests for locking (restricting) a work and a series, with some…
CristinaRO authored Jul 26, 2010
36 When I am logged out
37 And I go to the works page
38 Then I should not see "Awesomeness"
39 And I should not see the "alt" text "(Restricted)"
40 When I am on fandomer's works page
41 Then I should not see "Awesomeness"
235e9a5 @cesy Expanding locked works test to cover searching - issue 1450
cesy authored Dec 31, 2010
42 When I fill in "site_search" with "Awesomeness"
691266e Most test failures cleaned up now, many bugfixes, skins improvements …
Lim Lim authored Oct 24, 2011
43 And I press "search"
235e9a5 @cesy Expanding locked works test to cover searching - issue 1450
cesy authored Dec 31, 2010
44 Then I should see "0 Found"
45 And I should not see "fandomer"
46
47 # shows again if you log in as another user
472542e @CristinaRO Adding tests for locking (restricting) a work and a series, with some…
CristinaRO authored Jul 26, 2010
48 When I am logged in as "testuser" with password "password"
49 And I am on fandomer's works page
50 Then I should see "Awesomeness"
51
52 Scenario: Editing posted work
53 Given I am logged in as "fandomer" with password "password"
54 And I post the work "Sad generic work"
55 When I am logged out
56 And I go to fandomer's works page
57 Then I should see "Sad generic work"
58 When I am logged in as "fandomer" with password "password"
59 And I edit the work "Sad generic work"
60 And I check "work_restricted"
61 When I press "Preview"
62 Then I should see the "title" text "Restricted" within "h2.title"
63 When I press "Update"
64 Then I should see the "alt" text "(Restricted)" within "h2.title"
65 When I go to the works page
66 Then I should see "Sad generic work" within "h4"
67 And I should see the "alt" text "(Restricted)" within "h4"
68 When I am logged out
69 And I go to the works page
70 Then I should not see "Sad generic work"
71 And I should not see the "alt" text "(Restricted)"
72 When I am logged in as "testuser" with password "password"
73 And I go to the works page
74 Then I should see "Sad generic work"
75 When I am logged out
76 And I am logged in as "fandomer" with password "password"
77 And I edit the work "Sad generic work"
78 And I fill in "Notes" with "Random blather"
79 And I press "Preview"
80 Then I should see the "alt" text "(Restricted)" within "h2.title"
81 When I press "Update"
82 Then I should see "Work was successfully updated."
83 And I should see the "alt" text "(Restricted)" within "h2.title"
84 When I edit the work "Sad generic work"
85 And I uncheck "work_restricted"
86 And I press "Preview"
87 Then I should not see the "alt" text "(Restricted)"
88 When I press "Update"
89 Then I should see "Work was successfully updated."
90 And I should not see the "alt" text "(Restricted)"
91 When I am logged out
92 And I go to the works page
9824246 @ambtus issue 1799. change pairings to relationships everywhere
ambtus authored Jul 29, 2010
93 Then I should see "Sad generic work"
Something went wrong with that request. Please try again.