diff --git a/tests/functionnal/casperjs/exe/30_coupons.js b/tests/functionnal/casperjs/exe/30_coupons.js index 3f3d0ee50..6031d71f8 100644 --- a/tests/functionnal/casperjs/exe/30_coupons.js +++ b/tests/functionnal/casperjs/exe/30_coupons.js @@ -22,10 +22,17 @@ casper.start(thelia2_login_coupon_update_url, function() { $('#category-rule').val('thelia.constraint.rule.available_for_x_articles').change(); return true; }); - this.capture('screenshot-category-rule.png'); + this.capture('tests/functionnal/casperjs/pictures/screenshot-category-rule.png'); // this.click('constraint-list > tr:last-child > td > a.constraint-update-btn'); }); +casper.wait(1000, function() { + this.echo("\nWaiting...."); +}); + +casper.then(function(){ + +}); ////EDIT CHECK // @todo implement diff --git a/web/index_dev.php b/web/index_dev.php index 4d0063268..587631466 100755 --- a/web/index_dev.php +++ b/web/index_dev.php @@ -32,19 +32,19 @@ $env = 'dev'; require __DIR__ . '/../core/bootstrap.php'; // List of allowed IP -$trustedIp = array( - '::1', - '127.0.0.1' -); +//$trustedIp = array( +// '::1', +// '127.0.0.1' +//); $request = Request::createFromGlobals(); $thelia = new Thelia("dev", true); -if ( false === in_array($request->getClientIp(), $trustedIp)) { - // Redirect 401 Unauthorized - $response = new Response('Unauthorized', 401); - $thelia->terminate($request, $response); -} +//if ( false === in_array($request->getClientIp(), $trustedIp)) { +// // Redirect 401 Unauthorized +// $response = new Response('Unauthorized', 401); +// $thelia->terminate($request, $response); +//} $response = $thelia->handle($request)->prepare($request)->send();