From c2e299d9dbdb4c482fa4c54df35039f2b102b5e3 Mon Sep 17 00:00:00 2001 From: LumenTeun Date: Sun, 31 May 2015 19:24:57 +0200 Subject: [PATCH] Improves 'Style Text Inputs as Form Controls' --- seed_data/challenges/bootstrap.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seed_data/challenges/bootstrap.json b/seed_data/challenges/bootstrap.json index e6f80586a6..8932032fa6 100644 --- a/seed_data/challenges/bootstrap.json +++ b/seed_data/challenges/bootstrap.json @@ -1232,9 +1232,9 @@ "Give your form's text input field a class of form-control. Give your form's submit button the classes btn btn-primary and give it the Font Awesome icon of fa-paper-plane." ], "tests": [ - "assert($('.btn-primary').length > 1, 'Give the submit button in your form the classes \"btn btn-primary\".')", - "assert($('.fa-paper-plane').length > 0, 'Add a <i class=\"fa fa-paper-plane\"></i> within your submit button element.')", - "assert($('.form-control').length > 0, 'Give the text input field in your form the class \"form-control\".')" + "assert($('button[type=\\'submit\\']').hasClass('btn btn-primary'), 'Give the submit button in your form the classes \"btn btn-primary\".')", + "assert($('button[type=\\'submit\\']:has(i.fa.fa-paper-plane)').length > 0, 'Add a <i class=\"fa fa-paper-plane\"></i> within your submit button element.')", + "assert($('input[type=\\'text\\']').hasClass('form-control'), 'Give the text input field in your form the class \"form-control\".')" ], "challengeSeed": [ "",