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:
committed by
Kristofer Koishigawa
parent
69ee2e4e73
commit
6d7092928e
@ -494,7 +494,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "Make sure your <code>audio</code> element has a closing tag.",
|
"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.",
|
"text": "The <code>audio</code> tag should have the <code>controls</code> attribute.",
|
||||||
|
Reference in New Issue
Block a user