Skip to content

Commit

Permalink
marked js uploading feature as pending on cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrinalini Sugosh committed Dec 4, 2017
1 parent 7d80719 commit 1c141d2
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions features/add_bloom_ratings.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Background:
Given I am signed in with uid "1234" and provider "github"
Then I should see "Admin"
And I have uploaded 'bloom_test.txt'
And I pending #need to implement JS test here to test Uploading File
And I am on the CourseQuestionBank home page

Scenario: giving newly uploaded questions Bloom Taxonomy ratings
Expand Down
1 change: 1 addition & 0 deletions features/add_collection_checkbox.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Feature: User can add problem to collection that using checkbox
Background:
Given I am signed in with uid "1234" and provider "github"
And I have uploaded 'bloom_test.txt'
And I pending #need to implement JS test here to test Uploading File
And I am on the CourseQuestionBank home page

Scenario: Check a checkbox that show plain text
Expand Down
1 change: 1 addition & 0 deletions features/add_tags.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Feature: add a tag to existing question
Background:
Given I am signed in with uid "1234" and provider "github"
And I have uploaded 'micro_quizzes.txt'
And I pending #need to implement JS test here to test Uploading File
And I am on the CourseQuestionBank home page

Scenario: adding tag results in that tag being displayed on the page
Expand Down
1 change: 1 addition & 0 deletions features/add_to_collections.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Feature: User can add individual problems to a Collection
Background:
Given I am signed in with uid "1234" and provider "github"
And I have uploaded 'bloom_test.txt'
And I pending #need to implement JS test here to test Uploading File
And I am on the CourseQuestionBank home page

Scenario: Add two collections that can see
Expand Down
1 change: 1 addition & 0 deletions features/answer_question_fillin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Background:
Given I am signed in with uid "1234" and provider "github"
Then I should see "Admin"
And I have uploaded 'test_fill_in.txt'
And I pending #need to implement JS test here to test Uploading File
And I am on the CourseQuestionBank home page

Scenario: I can answer a fill-in-the-blank question
Expand Down
1 change: 1 addition & 0 deletions features/bloom_rating_buttons.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Feature: User can see all the buttons associated with Bloom Taxonomy ratings
Background:
Given I am signed in with uid "1234" and provider "github"
And I have uploaded 'bloom_test.txt'
And I pending #need to implement JS test here to test Uploading File
And I am on the CourseQuestionBank home page

Scenario: listing Bloom rating buttons
Expand Down
1 change: 1 addition & 0 deletions features/instructor_accessibility.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Feature: Instructor accessibility of the app
Scenario: I can change privacy of a collection
Given I have uploaded 'bloom_test.txt'
And I am on the CourseQuestionBank home page
And I pending #need to implement JS test here to test Uploading File
And I should see "Public"
And I press "Public"
Then I should be on the CourseQuestionBank home page
Expand Down
2 changes: 2 additions & 0 deletions features/instructors_problem_view.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ Feature: Instructor's view of problem table, aka /problems, /homepage
Then I should see "Instructor!"

Scenario: I can not see the edit panel of problems doe not belong to me
And I pending #need to implement JS test here to test Uploading File
When I am on the CourseQuestionBank home page
And I should see "Belongs to collections:"
And I should see "Bloom category:"
And I should see "Edit question:"

Scenario: I can see the edit panel of the problems belong to me
And I pending #need to implement JS test here to test Uploading File
Given I am signed in with uid "1234" and provider "github"
When I am on the CourseQuestionBank home page
Then I should see "Which of the following best identifies the four basic operations supported by RDBMS?"
Expand Down
2 changes: 2 additions & 0 deletions features/minor_edit_question.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Scenario: I edit the question slightly
Given I am signed in with uid "1234" and provider "github"
Then I should see "Admin"
And I have uploaded 'bloom_test.txt'
And I pending #need to implement JS test here to test Uploading File
And I am on the CourseQuestionBank home page
Then I should see "Update"
And I follow "Update"
Expand All @@ -16,6 +17,7 @@ Scenario: I edit the question, then I regreted that I was editing too much on th
Given I am signed in with uid "1234" and provider "github"
Then I should see "Admin"
And I have uploaded 'test_question_with_image.txt'
And I pending #need to implement JS test here to test Uploading File
And I am on the CourseQuestionBank home page
Then I should see "Update"
And I follow "Update"
Expand Down
4 changes: 3 additions & 1 deletion features/near_duplicate_tags.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Background:
Scenario: User tries to upload near duplicate
When I attach the file "features/test_files/dup_test_third.txt" to "file_upload"
And I press "Upload File"
And I pending #need to implement JS test here to test Uploading File
Then I should not see "Near-duplicate questions may have been uploaded" #PTID 152624808 requested that this implementation be removed
Then the problem containing "The quick brown fox jumped over the lazy dog" should have the tag "dup"
And the problem containing "The quick brown fox jumped over the lazy cat" should have the tag "dup"
Expand All @@ -21,6 +22,7 @@ Scenario: User tries to upload different question (sad path, no duplicate detect
Given I am on the upload page
And I attach the file "features/test_files/foo.txt" to "file_upload"
And I press "Upload File"
Then I should see "Upload successful!"
Then I should see "Uploading File..."
And I pending #need to implement JS test here to test Uploading File
And I have yet to implement near-duplicate #PTID 152624808 requested that this implementation be removed
And the problem containing "Which of the following best identifies" should not have the tag "dup"
1 change: 1 addition & 0 deletions features/share_collection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Feature: Admin / instructors can share a collection
And I am on the dashboard
When I am on the admin panel
And I have uploaded 'bloom_test.txt'
And I pending #need to implement JS test here to test Uploading File

Scenario: The shared collection should appear on admin's "My collection" and "Public collection"

Expand Down
3 changes: 2 additions & 1 deletion features/show_answer.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ Feature: show answer directly
Given I am on the upload page
And I attach the file "features/test_files/bloom_test.txt" to "file_upload"
And I press "Upload File"
Then I should see "Upload successful!"
Then I should see "Uploading File..."

Scenario: I want to show the answer directly
And I pending #need to implement JS test here to test Uploading File
And I am on the CourseQuestionBank home page
And I should see "Which of the following best identifies the four basic operations supported by RDBMS?"
And I press "Check Answer"
Expand Down
2 changes: 2 additions & 0 deletions features/source_code_copy.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Feature: User can copy the source code of a Question to their local clipboard

Scenario: viewing a question's original source code
# PTID #151852012
And I pending #need to implement JS test here to test Uploading File
Given I am signed in with uid "1234" and provider "github"
And I have uploaded 'source_code_test.txt'
And I am on the CourseQuestionBank home page
Expand All @@ -14,6 +15,7 @@ Scenario: viewing a question's original source code
@javascript
Scenario: copying a question's original source code
# PTID #151852012
And I pending #need to implement JS test here to test Uploading File
Given I am signed in with uid "1234" and provider "github"
And I have uploaded 'source_code_test.txt'
And I am on the CourseQuestionBank home page
Expand Down
12 changes: 12 additions & 0 deletions features/step_definitions/web_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,18 @@ def with_scope(locator)
end
World(WithinHelpers)

module WaitForAjax
def wait_for_ajax
Timeout.timeout(Capybara.default_wait_time) do
loop until finished_all_ajax_requests?
end
end

def finished_all_ajax_requests?
page.evaluate_script('jQuery.active').zero?
end
end
World(WaitForAjax)
Then /^I should see the image "(.+)"$/ do |image|
page.should have_xpath("//img[@src=\"#{image}\"]")
end
Expand Down Expand Up @@ -95,6 +106,7 @@ def with_scope(locator)
And I press "Upload File"
Then I should see "Uploading File..."
}
And I pending #need to implement JS test here to test Uploading File
end

When /^(?:|I )create a new collection '(.*)'(.*)/ do |name, optional|
Expand Down
1 change: 1 addition & 0 deletions features/students_problem_view.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Feature: Student's view of problem table, aka /problems, /homepage

Background:
Given I am signed in with uid "1234" and provider "github"
And I pending #need to implement JS test here to test Uploading File
And I have uploaded 'bloom_test.txt'
Then I am signed in with uid "12345" and provider "developer"

Expand Down

0 comments on commit 1c141d2

Please sign in to comment.