Loading tests/support/CustomReporter.js +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ intern.registerReporter('customreporter', function(options) { testStatus = '[ SKIP ]'; } else if (test.error) { failCounter++; testStatus = '[ FAIL ]'; testStatus = '[ FAIL ] ' + moment().format() + ' - '; } else { passCounter++; testStatus = '[ PASS ]'; Loading tests/support/Utils.js +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ define([ return this.parent .sleep(Config.timeout.shortSleep) .then(Utils.checkLoadingIsGone()) .then(self.checkLoadingIsGone()) .then(self.clickDisplayedElementWithControlError(selector)) .then(function(success) { Loading tests/support/tests/CatalogUserReport.js +7 −4 Original line number Diff line number Diff line Loading @@ -48,7 +48,6 @@ define([ return parent .then(Utils.clickElement(reportButtonSelector)) .sleep(Config.timeout.longSleep) .then(this.parent.externalContext.verifyNotificationCount(values)) .then(this.parent.externalContext.rememberLatestNotificationId(values)) Loading Loading @@ -76,7 +75,6 @@ define([ .sleep(Config.timeout.veryShortSleep) .then(Utils.setInputValue(alertTextInputSelector, 'test')) .then(Utils.clickElement(alertSubmitButtonSelector)) .sleep(Config.timeout.longSleep) .then(this.parent.externalContext.verifyNotificationCount(values)) .then(this.parent.externalContext.rememberLatestNotificationId(values)) Loading Loading @@ -105,6 +103,7 @@ define([ var checkNotification = function(values) { return this .sleep(Config.timeout.longSleep) .then(Utils.getNotificationCount()) .then(lang.partial(function(values, count) { Loading @@ -114,13 +113,15 @@ define([ values.count = 1; } if (values.count < 4 && count === values.previousNotificationCount) { if (values.count < 5 && count <= values.previousNotificationCount) { return this.parent .then(lang.hitch(this, checkNotification, values)); .then(lang.hitch(this.parent, checkNotification, values)); } assert.isAbove(count, values.previousNotificationCount, 'No hay más notificaciones que antes de pedir el informe'); return this.parent; }, values)); }; Loading @@ -139,6 +140,8 @@ define([ .then(lang.partial(function(values, id) { values.latestNotificationId = id; return this.parent; }, values)); }, values); }, Loading Loading
tests/support/CustomReporter.js +1 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ intern.registerReporter('customreporter', function(options) { testStatus = '[ SKIP ]'; } else if (test.error) { failCounter++; testStatus = '[ FAIL ]'; testStatus = '[ FAIL ] ' + moment().format() + ' - '; } else { passCounter++; testStatus = '[ PASS ]'; Loading
tests/support/Utils.js +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ define([ return this.parent .sleep(Config.timeout.shortSleep) .then(Utils.checkLoadingIsGone()) .then(self.checkLoadingIsGone()) .then(self.clickDisplayedElementWithControlError(selector)) .then(function(success) { Loading
tests/support/tests/CatalogUserReport.js +7 −4 Original line number Diff line number Diff line Loading @@ -48,7 +48,6 @@ define([ return parent .then(Utils.clickElement(reportButtonSelector)) .sleep(Config.timeout.longSleep) .then(this.parent.externalContext.verifyNotificationCount(values)) .then(this.parent.externalContext.rememberLatestNotificationId(values)) Loading Loading @@ -76,7 +75,6 @@ define([ .sleep(Config.timeout.veryShortSleep) .then(Utils.setInputValue(alertTextInputSelector, 'test')) .then(Utils.clickElement(alertSubmitButtonSelector)) .sleep(Config.timeout.longSleep) .then(this.parent.externalContext.verifyNotificationCount(values)) .then(this.parent.externalContext.rememberLatestNotificationId(values)) Loading Loading @@ -105,6 +103,7 @@ define([ var checkNotification = function(values) { return this .sleep(Config.timeout.longSleep) .then(Utils.getNotificationCount()) .then(lang.partial(function(values, count) { Loading @@ -114,13 +113,15 @@ define([ values.count = 1; } if (values.count < 4 && count === values.previousNotificationCount) { if (values.count < 5 && count <= values.previousNotificationCount) { return this.parent .then(lang.hitch(this, checkNotification, values)); .then(lang.hitch(this.parent, checkNotification, values)); } assert.isAbove(count, values.previousNotificationCount, 'No hay más notificaciones que antes de pedir el informe'); return this.parent; }, values)); }; Loading @@ -139,6 +140,8 @@ define([ .then(lang.partial(function(values, id) { values.latestNotificationId = id; return this.parent; }, values)); }, values); }, Loading