changed wait timeout

This commit is contained in:
Julien Chanseaume
2014-08-11 13:43:12 +02:00
parent d7c590961e
commit 8cbfe5e22a
3 changed files with 8 additions and 11 deletions

View File

@@ -72,7 +72,7 @@ casper.test.begin('Register', 15, function suite(test) {
});
casper.wait(1000, function(){
casper.wait(4000, function(){
test.assertSelectorHasText('.group-email .help-block', 'This email already exists.');
@@ -86,7 +86,7 @@ casper.test.begin('Register', 15, function suite(test) {
});
casper.wait(2000, function() {
casper.wait(4000, function() {
this.capture(screenshot_dir + 'front/20_register-ok.png');
test.assertSelectorHasText('h1#main-label', 'My Account');
@@ -97,7 +97,7 @@ casper.test.begin('Register', 15, function suite(test) {
this.click('a.logout');
});
casper.wait(2000, function() {
casper.wait(4000, function() {
test.assertExists('a.login', 'Login button exists');

View File

@@ -29,7 +29,7 @@ casper.test.begin('Login', 5, function suite(test) {
});
casper.wait(2000, function(){
casper.wait(4000, function(){
this.capture(screenshot_dir + 'front/30_login-ko.png');
@@ -47,7 +47,7 @@ casper.test.begin('Login', 5, function suite(test) {
});
casper.wait(2000, function(){
casper.wait(4000, function(){
this.capture(screenshot_dir + 'front/30_login-ok.png');
test.assertExists('a.logout', 'Logout button exists');
@@ -57,7 +57,7 @@ casper.test.begin('Login', 5, function suite(test) {
this.click('a.logout');
});
casper.wait(2000, function(){
casper.wait(4000, function(){
test.assertExists('a.login', 'Login button exists');

View File

@@ -6,8 +6,6 @@ casper.test.begin('Cart', 4, function suite(test) {
casper.start(thelia2_base_url, function() {
casper.viewport(1280, 1024)
productUrl = this.getElementAttribute('a.product-info', 'href');
this.echo("product : " + productUrl);
@@ -18,12 +16,12 @@ casper.test.begin('Cart', 4, function suite(test) {
});
casper.wait(2000, function(){
casper.wait(4000, function(){
this.capture(screenshot_dir + 'front/40_product.png');
this.click("#pse-submit");
});
casper.wait(2000, function() {
casper.wait(4000, function() {
this.captureSelector(screenshot_dir + 'front/40_added-to-cart.png', '.bootbox');
test.assertSelectorHasText('.bootbox h3', 'The product has been added to your cart');
});
@@ -43,7 +41,6 @@ casper.test.begin('Cart', 4, function suite(test) {
});
casper.run(function() {
test.done();
});