diff --git a/controllers/resources.js b/controllers/resources.js
index 6f2000457a..efa1cba29f 100644
--- a/controllers/resources.js
+++ b/controllers/resources.js
@@ -158,7 +158,7 @@ module.exports = {
},
catPhotoSubmit: function catPhotoSubmit(req, res) {
- res.send('Success! You have submitted your cat photo.')
+ res.send('Success! You have submitted your cat photo. Return to your website by typing any letter into your code editor.')
},
nonprofits: function nonprofits(req, res) {
diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json
index bd9604b9f1..23d8f7ba2e 100644
--- a/seed_data/coursewares.json
+++ b/seed_data/coursewares.json
@@ -1262,7 +1262,7 @@
""
],
"tests": [
- "assert($('[placeholder]').length > 0, 'Your text field should have the placeholder text of \"type a cat photo URL here\".')"
+ "assert($('[placeholder]').length > 0, 'Your text field should have the placeholder text of \"enter cat photo URL\".')"
],
"challengeSeed": [
"",
@@ -1510,58 +1510,136 @@
"completionMessage": ""
},
- {
- "_id" : "bad87fee1348bd9aedf08831",
- "name": "Use HTML5 to Specify an Input Type",
- "difficulty" : 0.043,
- "description": [
- "",
- ""
- ],
- "tests": [
- "expect($('h1')).to.have.class('text-center');",
- "expect($('h1')).to.have.text('hello world');"
- ],
- "challengeSeed": [
- "
"
- ],
- "challengeType": 0,
- "completionMessage": ""
- },
-
{
"_id" : "bad87fee1348bd9aedf08834",
"name": "Create a Set of Radio Buttons",
- "difficulty" : 0.045,
+ "difficulty" : 0.043,
"description": [
- "",
+ "Add to your form a pair of radio buttons with the options of \"indoor\" and \"outdoor\".",
+ "You can use radio buttons for questions that can only have only one answer.",
""
],
"tests": [
- "expect($('h1')).to.have.class('text-center');",
- "expect($('h1')).to.have.text('hello world');"
+ "assert($('input[type=\"radio\"').length > 1, 'Your webpage should have two radio button elements.')"
],
"challengeSeed": [
- "
",
+ "",
+ ""
+ ],
+ "challengeType": 0,
+ "completionMessage": ""
+ },
+
+ {
+ "_id" : "bad87fee1348bd9aede08835",
+ "name": "Check a Radio Button by Default",
+ "difficulty" : 0.044,
+ "description": [
+ "Clean up your form by adding linebreaks between form elements, then set one of your radio buttons to checked by default.",
+ ""
+ ],
+ "tests": [
+ "assert($('input[type=\"radio\"').prop('checked'), 'One of the radio buttons on your form should be checked by default.')"
+ ],
+ "challengeSeed": [
+ "",
+ "",
+ "",
+ "