X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Foutside_in%2Ftests%2Fsrc%2FFunctionalJavascript%2FOffCanvasTest.php;fp=web%2Fcore%2Fmodules%2Foutside_in%2Ftests%2Fsrc%2FFunctionalJavascript%2FOffCanvasTest.php;h=94c18f039a90909af44baf052c2047226a45c7e2;hp=3254ca981ec40708de384ecf503075bcb25b8d2f;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/modules/outside_in/tests/src/FunctionalJavascript/OffCanvasTest.php b/web/core/modules/outside_in/tests/src/FunctionalJavascript/OffCanvasTest.php index 3254ca981..94c18f039 100644 --- a/web/core/modules/outside_in/tests/src/FunctionalJavascript/OffCanvasTest.php +++ b/web/core/modules/outside_in/tests/src/FunctionalJavascript/OffCanvasTest.php @@ -63,7 +63,11 @@ class OffCanvasTest extends OutsideInJavascriptTestBase { $this->assertEquals('', $header_text); $style = $page->find('css', '.ui-dialog-off-canvas')->getAttribute('style'); - self::assertTrue(strstr($style, 'width: 555px;') !== FALSE, 'Dialog width respected.'); + $this->assertTrue(strstr($style, 'width: 555px;') !== FALSE, 'Dialog width respected.'); + $page->clickLink("Click Me 1!"); + $this->waitForOffCanvasToOpen(); + $style = $page->find('css', '.ui-dialog-off-canvas')->getAttribute('style'); + $this->assertTrue(strstr($style, 'width: 555px;') === FALSE, 'Dialog width reset to default.'); } else { // Check that header is correct.