fix(seed): Simplify audio element closing tag test (#17401)

Excessively strict assertions were causing the test to fail when user
added extra attributes such as 'id' to the opening audio tag. Test has
been simplified to remove the unnecessary criteria.

Closes #17343
This commit is contained in:
Rachel Sinclair
2018-06-04 12:06:28 +01:00
committed by Kristofer Koishigawa
parent 69ee2e4e73
commit 6d7092928e

View File

@ -494,7 +494,7 @@
},
{
"text": "Make sure your <code>audio</code> element has a closing tag.",
"testString": "assert(code.match(/<\\/audio>/g) && code.match(/<audio controls>/g) && code.match(/<\\/audio>/g).length === code.match(/<audio controls>/g).length, 'Make sure your <code>audio</code> element has a closing tag.');"
"testString": "assert(code.match(/<\\/audio>/g), 'Make sure your <code>audio</code> element has a closing tag.');"
},
{
"text": "The <code>audio</code> tag should have the <code>controls</code> attribute.",