Commit 851a9d3f authored by CarlosGC1989's avatar CarlosGC1989
Browse files

Arregla errores detectados en los tests

parent 1c66c2b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ define([
		sidebarPrimaryValue: 'admin',
		sidebarSecondaryValue: '/admin/taxonomy',
		urlValue: '/taxon/misidentification',
		wizardEditionUrlValue: '/admin/misidentification-edit/2',
		wizardEditionUrlValue: '/admin/misidentification-edit/1',
		wizardAdditionUrlValue: '/admin/misidentification-add/new',
		textSearchValue: 'Diadema antillarum',
		configSteps: [{
+25 −2
Original line number Diff line number Diff line
@@ -139,6 +139,8 @@ define([
			return lang.partial(function(self) {

				return this.parent
					.sleep(Config.timeout.shortSleep)
					.then(Utils.checkLoadingIsGone())
					.then(self.clickDisplayedElementWithControlError(selector))
					.then(function(success) {

@@ -174,6 +176,25 @@ define([

		clickElementTakingIntoAccountAlertify: function(selector) {

			return lang.partial(function(self) {

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

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

						return this.parent
							.then(self.clickElementTakingIntoAccountAlertify(selector));
					});
			}, this);
		},

		/*clickElementTakingIntoAccountAlertify: function(selector) {

			return lang.partial(function(self) {

				return this.parent
@@ -183,11 +204,13 @@ define([
						if (!success) {
							return this.parent
								.then(self.clickDisplayedElement('div.alertify-notifier > div.ajs-visible'))
								.then(self.clickDisplayedElementWithControlError(selector));
								.then(self.clickElementTakingIntoAccountAlertify(selector));
						}

						return this.parent;
					});
			}, this);
		},
		},*/

		checkUrl: function(urlExpr) {
			//	summary:
+1 −0
Original line number Diff line number Diff line
@@ -196,6 +196,7 @@ define([
		_selectItem: function(checkboxSelector) {

			return this.parent
				.then(Utils.checkLoadingIsGone())
				.then(Utils.clickDisplayedElement(checkboxSelector))
				.then(Utils.checkLoadingIsGone());
		},
+1 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ define([
			return function() {

				return this.parent
					.sleep(Config.timeout.longSleep)
					.findAllByCssSelector(layersSelector + ' > *')
						.then(function(children) {
							return children.length;
+1 −0
Original line number Diff line number Diff line
@@ -190,6 +190,7 @@ define([
									.then(indexPage.clickRowButton(1, 'fa-toggle-off'));
							}(this);
						}, values))
						.then(Utils.checkLoadingIsGone())
						.then(indexPage.getLayersCount())
						.then(lang.partial(function(values, count) {

Loading