Permalink
Browse files

convert all @selenium to @javascript

  • Loading branch information...
1 parent b173298 commit 53916e948503563e035d7ac1097df4d58519eede @lukebaker lukebaker committed Apr 2, 2013
@@ -8,7 +8,7 @@ Feature: Editing a question's text
And I sign in as the admin for 'test'
And I am on the Admin page for 'test'
- @selenium
+ @javascript
Scenario: Admin can edit the question
When I click on the edit link for the question
Then I should see "Edit Question" within "#edit-question h2"
@@ -62,7 +62,7 @@ Feature: Creating Idea marketplaces
|question_email|Email can't be blank|
|question_password|Password can't be blank|
- @selenium
+ @javascript
Scenario: User clicks Cant decide immediately after creating a question
Given I am on the question create page
When I fill in all fields with valid data except "question_url"
@@ -3,14 +3,14 @@ Feature: Objects over time graphs
A user
Should be able to view a graph displaying the number of votes over time
- @selenium
+ @javascript
Scenario: No votes, so no chart possible
Given an idea marketplace quickly exists with url 'test'
And I am on the View Results page for 'test'
When I follow "votes-datechart-view-link"
Then I should see "Number of Votes per day Overall total - 0" within ".highcharts-container"
- @selenium
+ @javascript
Scenario: Some votes on one day
Given an idea marketplace quickly exists with url 'test'
And I am on the Cast Votes page for 'test'
@@ -9,7 +9,7 @@ Feature: About
And I am on the WIDGET Cast Votes page for 'test'
@widget
- @selenium
+ @javascript
Scenario: User clicks About
When I click the WIDGET About tab
Then I should see "1)" within ".aboutpage"
@@ -4,7 +4,7 @@ Feature: 'Bottom Status' Footer on About tab
Should see a 'Bottom Status' Footer to link to the Cast Votes tab
@widget
- @selenium
+ @javascript
Scenario: Check that the "link" back to the Cast Votes page works
Given an idea marketplace quickly exists with url 'test'
And I am on the WIDGET Cast Votes page for 'test'
@@ -9,7 +9,7 @@ Feature: 'Bottom Status' Footer on Results tab
#
# 7/21 note: I've decided to comment this out for now. The "View Results" page popup just tends to linger, which is annoying.
#@widget
- #@selenium
+ #@javascript
#Scenario: Check that the link to the full results page works
#Given an idea marketplace quickly exists with url 'test'
#And I am on the WIDGET Cast Votes page for 'test'
@@ -19,7 +19,7 @@ Feature: 'Bottom Status' Footer on Results tab
# Note above: You remain on the widget view results tab because view more results opens in a new window.
@widget
- @selenium
+ @javascript
Scenario: Check that the "link" back to the Cast Votes page works
Given an idea marketplace quickly exists with url 'test'
And I am on the WIDGET Cast Votes page for 'test'
@@ -9,7 +9,7 @@ Feature: View Results
And I am on the WIDGET Cast Votes page for 'test'
@widget
- @selenium
+ @javascript
Scenario: User clicks all results
When I click the WIDGET View Results tab
Then I should see "View More Results" within ".bottom_status"
@@ -8,7 +8,7 @@ Feature: Add idea to marketplace
And I am on the WIDGET Cast Votes page for 'test'
@widget
- @selenium
+ @javascript
Scenario: Adding choice to unmoderated marketplace
Given idea marketplace 'test' has enabled idea autoactivation
When I upload an idea titled 'blah blah blah'
@@ -18,7 +18,7 @@ Feature: Add idea to marketplace
Then I should see "blah blah blah"
@widget
- @selenium
+ @javascript
Scenario: Adding choice to moderated marketplace
When I upload an idea titled 'blah blah blah'
Then I should see "Your idea has been submitted for review. It will appear soon." within ".tellmearea"
@@ -16,21 +16,21 @@ Feature: I Can't Decide
And I should see "I don't know enough about either"
@widget
- @selenium
+ @javascript
Scenario: User chooses i can't decide
When I click the I can't decide button
And I pick "I like both ideas"
Then I should see "You couldn't decide." within ".tellmearea"
#@widget
- #@selenium
+ #@javascript
#Scenario: User does not enter a choice
# When I click the I can't decide button
# And I click the I can't decide submit button
# Then I should not see "You couldn't decide."
#@widget
- #@selenium
+ #@javascript
#Scenario: User selects 'Other' but does not type in an answer
# When I click the I can't decide button
# And I pick "Other"
@@ -12,13 +12,13 @@ Feature: Flag as inappropriate
And no emails have been sent
@widget
- @selenium
+ @javascript
Scenario: User flags choice as inappropriate
When I click the flag link for the left choice
Then I should see "Please explain why this choice is inappropriate: "
@widget
- @selenium
+ @javascript
Scenario: User submits a flag request
When I click the flag link for the left choice
And I fill in "new_flag_field" with "Because it's offensive"
@@ -31,14 +31,14 @@ Feature: Flag as inappropriate
And they should see "Because it's offensive" in the email body
@widget
- @selenium
+ @javascript
Scenario: User clicks flag link but does not type in an answer
When I click the flag link for the left choice
And I click the WIDGET flag submit button
Then I should not see "You flagged a choice as inappropriate."
@widget
- @selenium
+ @javascript
Scenario: User flags all but one choices in marketplace
Given an idea marketplace exists with admin 'flag_test2@test.com' and url 'test_2' and 2 ideas
And idea marketplace 'test_2' has enabled "flag as inappropriate"
@@ -8,20 +8,20 @@ Feature: Leveling Adjectives
And I am on the WIDGET Cast Votes page for 'test'
@widget
- @selenium
+ @javascript
Scenario: User submits a single vote
When I click on the left choice
Then I should see "Now you have cast 1 vote and added 0 ideas: good" within ".bottom_status"
And I should see "You chose" within ".tellmearea"
@widget
- @selenium
+ @javascript
Scenario: User submits a single idea
When I upload an idea titled 'blah blah blah'
Then I should see "Now you have cast 0 votes and added 1 idea: good" within ".bottom_status"
@widget
- @selenium
+ @javascript
Scenario: User views results in the middle of voting
When I click on the left choice
Then I should see "Now you have cast 1 vote and added 0 ideas: good" within ".bottom_status"
@@ -31,7 +31,7 @@ Feature: Leveling Adjectives
Then I should see "Now you have cast 2 votes and added 0 ideas: good" within ".bottom_status"
@widget
- @selenium
+ @javascript
Scenario Outline: User submits a combination of votes and ideas
When I vote on the WIDGET <num_votes> times
And I upload <num_ideas> ideas
@@ -9,14 +9,14 @@ Feature: Tracking appearances
And I save the current appearance lookup
@widget
- @selenium
+ @javascript
Scenario: User gets a new appearance after submitting a cant decide
When I click the I can't decide button
And I pick "I like both ideas"
Then the current appearance lookup should not match the saved appearance lookup
@widget
- @selenium
+ @javascript
Scenario: User gets a new appearance after submitting a vote
When I click on the left choice
Then I should see "You chose" within ".tellmearea"
@@ -8,14 +8,14 @@ Feature: Voting
And I am on the WIDGET Cast Votes page for 'test'
@widget
- @selenium
+ @javascript
Scenario: User has two choices and votes for the left one
When I click on the left choice
Then I should see "You chose" within ".tellmearea"
And I should see "over" within ".tellmearea"
@widget
- @selenium
+ @javascript
Scenario: User has two choices and votes for the right one
When I click on the right choice
Then I should see "You chose" within ".tellmearea"

0 comments on commit 53916e9

Please sign in to comment.