Commit 747903b9 authored by CarlosGC1989's avatar CarlosGC1989
Browse files

Arregla utils para tests funcionales

parent 40d27101
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -179,16 +179,19 @@ define([
			return lang.partial(function(self) {

				return this.parent
					.sleep(Config.timeout.shortSleep)
					.then(self.clickDisplayedElementWithControlError('div.alertify-notifier > div.ajs-visible'))
					.then(function(success) {

						var parent = this.parent.sleep(Config.timeout.shortSleep),
							actionName = 'clickElementTakingIntoAccountAlertify';

						if (!success) {
							return this.parent
								.then(self.clickDisplayedElement(selector));
							actionName = 'clickDisplayedElement';
						}

						return this.parent
							.then(self.clickElementTakingIntoAccountAlertify(selector));
						return parent
							.then(self[actionName](selector));
					});
			}, this);
		},
+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ define([
				var checkNotification = function(values) {

					return this
						.sleep(Config.timeout.longSleep)
						.sleep(Config.timeout.veryLongSleep)
						.then(Utils.getNotificationCount())
						.then(lang.partial(function(values, count) {