This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failing Scenarios: | |
cucumber features/award/applying.feature:12 # Scenario: Applying for an award with no questions | |
cucumber features/award/applying.feature:23 # Scenario: Applying for an award with questions | |
cucumber features/award/applying.feature:47 # Scenario: Applying for my second award | |
cucumber features/award/applying.feature:82 # Scenario: A volunteer is nominates which organisation should validate the award before, during and after submission. | |
cucumber features/organiser/upload_photo.feature:3 # Scenario: Uploading a photo as organiser | |
cucumber features/schools/school_adviser/managing_schools.feature:23 # Scenario: Creating a school | |
cucumber features/volunteer/edit_my_profile.feature:29 # Scenario: Editing my interests | |
cucumber features/volunteer/photo_uploads.feature:65 # Scenario: Uploading an image and seeing it in the activity stream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Then /^"([^\"]*)" should be in the autocomplete menu$/ do |name| | |
# xpath_to_auto_complete_selection = "//ul[contains(@class, 'ui-autocomplete')]" | |
# | |
# # wait until auto complete menu appears | |
# page.should have_xpath(xpath_to_auto_complete_selection) | |
# page.evaluate_script('$("#show_title").attr("value", "my p")') | |
# page.evaluate_script('e = jQuery.Event("keydown")') | |
# page.evaluate_script('e.which = 67') | |
# page.evaluate_script('$("#show_title").trigger("focus").trigger(e)') | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def set_content | |
case self.content_type | |
when "video/mpeg", "video/quicktime", "video/x-msvideo", 'video/x-ms-wmv', 'video/mp4', 'video/avi' | |
self.content = VIDEO | |
when 'image/gif', 'image/jpeg', 'image/png', "image/pjpeg", "image/x-png" | |
self.content = IMAGE | |
when 'audio/wav', 'audio/x-wav', 'audio/x-ms-wma', 'audio/mpeg', 'audio/x-m4a', 'audio/m4a' | |
self.content = AUDIO | |
when "application/msword", 'application/pdf', 'application/rtf', 'text/plain', 'text/rtf' | |
self.content = DOCUMENT |
NewerOlder