From b6b62da000b3010e757cb9ff382d4c8da1809abd Mon Sep 17 00:00:00 2001 From: LumenTeun Date: Sun, 31 May 2015 20:55:34 +0200 Subject: [PATCH] Improves 'Wrap an Anchor Element within a Paragraph' --- seed_data/challenges/basic-html5-and-css.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index 8f0ba56acdf..048671b8553 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -1044,7 +1044,7 @@ "tests": [ "assert($('a').attr('href').match(/catphotoapp.com/gi).length > 0, 'You need an a element that links to \"catphotoapp.com\".')", "assert($('a').text().match(/cat\\sphotos/gi).length > 0, 'Your a element should have the anchor text of \"cat photos\"')", - "assert($('a').parent().is('p'), 'Your anchor element should be wrapped within a paragraph element.')", + "assert($('a[href=\\'http://www.catphotoapp.com\\']').parent().is('p'), 'Your anchor element should be wrapped within a paragraph element.')", "assert($('p').text().match(/click\\shere\\sfor/gi), 'Your p element should have the text \"click here for\".')", "assert(editor.match(/<\\/p>/g).length > 2, 'Be sure that each of your p elements has a closing tag.')" ],