TE-468 JS test improvement: test for attributes specifically
This test is failing in a different test environment (Solano) because the built html has reversed the order of the width and height attributes from what we are expecting. This change focuses the assertion to the pieces that are important (as noted in the unchanged comment above the assertion).
This commit is contained in:
@@ -38,9 +38,8 @@ function ($, _, IframeBinding) {
|
||||
|
||||
//after calling iframeBinding function: src url of iframes should have "wmode=transparent" in its querystring
|
||||
//and embed objects should have "wmode='transparent'" as an attribute
|
||||
expect(iframe_html).toEqual('<iframe src="http://www.youtube.com/embed/NHd27UvY-lw?wmode=transparent" frameborder="0" height="350" width="618"></iframe>' +
|
||||
'<iframe src="http://www.youtube.com/embed/NHd27UvY-lw?wmode=transparent&allowFullScreen=false" frameborder="0" height="350" width="618"></iframe>' +
|
||||
'<embed wmode="transparent" type="application/x-shockwave-flash" src="http://www.youtube.com/embed/NHd27UvY-lw" height="315" width="560">');
|
||||
expect(iframe_html).toContain('<iframe src="http://www.youtube.com/embed/NHd27UvY-lw?wmode=transparent"');
|
||||
expect(iframe_html).toContain('<embed wmode="transparent" type="application/x-shockwave-flash" src="http://www.youtube.com/embed/NHd27UvY-lw"');
|
||||
});
|
||||
|
||||
it("does not modify src url of DOM iframe if it is empty", function () {
|
||||
|
||||
Reference in New Issue
Block a user