diff --git a/LesionTracker/.gagarin/.gitignore b/LesionTracker/.gagarin/.gitignore deleted file mode 100644 index 408303742..000000000 --- a/LesionTracker/.gagarin/.gitignore +++ /dev/null @@ -1 +0,0 @@ -local diff --git a/LesionTracker/runGagarinTests.sh b/LesionTracker/runGagarinTests.sh deleted file mode 100755 index b5cc0d3a0..000000000 --- a/LesionTracker/runGagarinTests.sh +++ /dev/null @@ -1 +0,0 @@ -starrynight run-tests --framework gagarin --debug --verbose --webdriver http://localhost:9515 --path ../Packages/*/tests/gagarin/**/*.js \ No newline at end of file diff --git a/LesionTracker/runNightwatchTests.sh b/LesionTracker/runNightwatchTests.sh deleted file mode 100755 index 12c028e31..000000000 --- a/LesionTracker/runNightwatchTests.sh +++ /dev/null @@ -1 +0,0 @@ -starrynight run-tests --framework nightwatch \ No newline at end of file diff --git a/LesionTracker/tests/nightwatch/.npmignore b/LesionTracker/tests/nightwatch/.npmignore deleted file mode 100644 index 27a3afbbc..000000000 --- a/LesionTracker/tests/nightwatch/.npmignore +++ /dev/null @@ -1 +0,0 @@ -reports diff --git a/LesionTracker/tests/nightwatch/assertions/sampleAssertion.js b/LesionTracker/tests/nightwatch/assertions/sampleAssertion.js deleted file mode 100644 index e720f80f8..000000000 --- a/LesionTracker/tests/nightwatch/assertions/sampleAssertion.js +++ /dev/null @@ -1,4 +0,0 @@ -exports.assertion = function() { - - return this; // allows the command to be chained. -}; diff --git a/LesionTracker/tests/nightwatch/commands/actions/sampleAction.js b/LesionTracker/tests/nightwatch/commands/actions/sampleAction.js deleted file mode 100644 index bb0506876..000000000 --- a/LesionTracker/tests/nightwatch/commands/actions/sampleAction.js +++ /dev/null @@ -1,4 +0,0 @@ -exports.command = function() { - - return this; -}; diff --git a/LesionTracker/tests/nightwatch/commands/api/entry/reviewSignInPage.js b/LesionTracker/tests/nightwatch/commands/api/entry/reviewSignInPage.js deleted file mode 100644 index e6c6c1520..000000000 --- a/LesionTracker/tests/nightwatch/commands/api/entry/reviewSignInPage.js +++ /dev/null @@ -1,15 +0,0 @@ -exports.command = function(username, password) { - this - .waitForElementVisible('#entrySignIn', 1000) - .verify.elementPresent("#signInPageTitle") - .verify.elementPresent("#signInPageMessage") - .verify.elementPresent("#signInPageEmailInput") - .verify.elementPresent("#signInPagePasswordInput") - .verify.elementPresent("#signInToAppButton") - .verify.elementPresent("#needAnAccountButton") - - .verify.containsText("#signInPageTitle", "Sign In") - .verify.containsText("#signInPageMessage", "Improve your clincal practice with checklists.") - - return this; // allows the command to be chained. -}; diff --git a/LesionTracker/tests/nightwatch/commands/api/entry/reviewSignUpPage.js b/LesionTracker/tests/nightwatch/commands/api/entry/reviewSignUpPage.js deleted file mode 100644 index a3b661b87..000000000 --- a/LesionTracker/tests/nightwatch/commands/api/entry/reviewSignUpPage.js +++ /dev/null @@ -1,11 +0,0 @@ -exports.command = function(username, password) { - this - .waitForElementVisible('#entrySignUp', 1000) - .verify.elementPresent("#signUpPageEmailInput") - .verify.elementPresent("#signUpPagePasswordInput") - .verify.elementPresent("#signUpPagePasswordConfirmInput") - - .verify.elementPresent("#signUpPageJoinNowButton") - - return this; // allows the command to be chained. -}; diff --git a/LesionTracker/tests/nightwatch/commands/api/entry/signIn.js b/LesionTracker/tests/nightwatch/commands/api/entry/signIn.js deleted file mode 100644 index 37d77a2fc..000000000 --- a/LesionTracker/tests/nightwatch/commands/api/entry/signIn.js +++ /dev/null @@ -1,14 +0,0 @@ -exports.command = function(username, password) { - - this - .waitForElementVisible('#entrySignIn', 1000) - .verify.elementPresent("#signInPageEmailInput") - .verify.elementPresent("#signInPagePasswordInput") - - .setValue("#signInPageEmailInput", username) - .setValue("#signInPagePasswordInput", password) - - .click("#signInToAppButton").pause(1000) - - return this; // allows the command to be chained. -}; diff --git a/LesionTracker/tests/nightwatch/commands/api/entry/signOut.js b/LesionTracker/tests/nightwatch/commands/api/entry/signOut.js deleted file mode 100644 index 909787c54..000000000 --- a/LesionTracker/tests/nightwatch/commands/api/entry/signOut.js +++ /dev/null @@ -1,8 +0,0 @@ -exports.command = function(email, password) { - - this - .verify.elementPresent("#logoutButton") - .click("#logoutButton").pause(500) - - return this; // allows the command to be chained. -}; diff --git a/LesionTracker/tests/nightwatch/commands/api/entry/signUp.js b/LesionTracker/tests/nightwatch/commands/api/entry/signUp.js deleted file mode 100644 index 6e2634289..000000000 --- a/LesionTracker/tests/nightwatch/commands/api/entry/signUp.js +++ /dev/null @@ -1,23 +0,0 @@ -exports.command = function(email, password) { - - this - .waitForElementVisible('#entrySignUp', 1000) - .verify.elementPresent("#signUpPageEmailInput") - .verify.elementPresent("#signUpPagePasswordInput") - .verify.elementPresent("#signUpPagePasswordConfirmInput") - - .clearValue("#signUpPageEmailInput") - .clearValue("#signUpPagePasswordInput") - .clearValue("#signUpPagePasswordConfirmInput") - - // .setValue("#signUpPageUsernameInput", "Jane Doe") - .setValue("#signUpPageEmailInput", email) - .setValue("#signUpPagePasswordInput", password) - .setValue("#signUpPagePasswordConfirmInput", password) - - .click("#signUpPageJoinNowButton").pause(200) - - - - return this; // allows the command to be chained. -}; diff --git a/LesionTracker/tests/nightwatch/commands/api/meteor/callMeteorMethod.js b/LesionTracker/tests/nightwatch/commands/api/meteor/callMeteorMethod.js deleted file mode 100644 index 629933fe9..000000000 --- a/LesionTracker/tests/nightwatch/commands/api/meteor/callMeteorMethod.js +++ /dev/null @@ -1,21 +0,0 @@ -// async version calls method on the server -exports.command = function(methodName, timeout) { - var client = this; - if (!timeout) { - timeout = 5000; - } - - this - .timeoutsAsyncScript(timeout) - .executeAsync(function(data, meteorCallback){ - //return HipaaLogger.logEventObject(data); - Meteor.call(methodName, data, function(meteorError, meteorResult){ - var response = (meteorError ? { error: meteorError } : { result: meteorResult }); - meteorCallback(response); - }) - }, [hipaaEvent], function(result){ - console.log("result.value", result.value); - client.assert.ok(result.value); - }).pause(1000) - return this; -}; diff --git a/LesionTracker/tests/nightwatch/commands/api/meteor/checkSession.js b/LesionTracker/tests/nightwatch/commands/api/meteor/checkSession.js deleted file mode 100644 index 2696db638..000000000 --- a/LesionTracker/tests/nightwatch/commands/api/meteor/checkSession.js +++ /dev/null @@ -1,40 +0,0 @@ -/*exports.command = function(sessionName, expectedValue, timeout, callback) { - - var self = this; - if (!timeout) { - timeout = 5000; - } - - var glassOpacity = false; - - this - .timeoutsAsyncScript(timeout) - .executeAsync(function (data, callback) { - return Session.get('glassOpacity'); - }, [''], function (response) { // you need to pass an ARRAY of ONE argument, must be a bug - if (response.value.error) { - throw 'Meteor apply (call) returned an error: ' + response.value.error; - } else if (typeof callback === 'function') { - callback.call(self); - } - }) - return this; -};*/ - - - - -// syncrhonous version; only works for checking javascript objects on client -exports.command = function(sessionVarName, expectedValue) { - var client = this; - this - .execute(function(data){ - return Session.get(data); - }, [sessionVarName], function(result){ - client.assert.ok(result.value); - if(expectedValue){ - client.assert.equal(result.value, expectedValue); - } - }).pause(1000) - return this; -}; diff --git a/LesionTracker/tests/nightwatch/commands/components/reviewMainLayout.js b/LesionTracker/tests/nightwatch/commands/components/reviewMainLayout.js deleted file mode 100644 index 33e06a408..000000000 --- a/LesionTracker/tests/nightwatch/commands/components/reviewMainLayout.js +++ /dev/null @@ -1,10 +0,0 @@ -exports.command = function(username, password) { - this - .verify.elementPresent("#appBody") - .verify.elementPresent("#navbarHeader") - .verify.elementPresent("#contentContainer") - .verify.elementPresent("#contentContainer .content-scrollable") - .verify.elementPresent("#navbarFooter") - - return this; // allows the command to be chained. -}; diff --git a/LesionTracker/tests/nightwatch/commands/methods/objectMethod.js b/LesionTracker/tests/nightwatch/commands/methods/objectMethod.js deleted file mode 100644 index d3ac064d9..000000000 --- a/LesionTracker/tests/nightwatch/commands/methods/objectMethod.js +++ /dev/null @@ -1,22 +0,0 @@ -// async version calls method on the server -exports.command = function(methodName, timeout) { - /*var client = this; - if (!timeout) { - timeout = 5000; - } - - this - .timeoutsAsyncScript(timeout) - .executeAsync(function(data, meteorCallback){ - //return HipaaLogger.logEventObject(data); - Meteor.call(methodName, data, function(meteorError, meteorResult){ - var response = (meteorError ? { error: meteorError } : { result: meteorResult }); - meteorCallback(response); - }) - }, [hipaaEvent], function(result){ - console.log("result.value", result.value); - client.assert.ok(result.value); - }).pause(1000) - return this;*/ - return this; -}; diff --git a/LesionTracker/tests/nightwatch/commands/sectionBreak.js b/LesionTracker/tests/nightwatch/commands/sectionBreak.js deleted file mode 100644 index 084597d3a..000000000 --- a/LesionTracker/tests/nightwatch/commands/sectionBreak.js +++ /dev/null @@ -1,9 +0,0 @@ -exports.command = function(input, callback) { - - this - .frame(null) - .waitForElementVisible("body", 1000, "=============================================================") - .verify.elementPresent("body", "== " + input) - - return this; // allows the command to be chained. -}; diff --git a/LesionTracker/tests/nightwatch/commands/waitForPage.js b/LesionTracker/tests/nightwatch/commands/waitForPage.js deleted file mode 100644 index 0b1ddc845..000000000 --- a/LesionTracker/tests/nightwatch/commands/waitForPage.js +++ /dev/null @@ -1,7 +0,0 @@ -exports.command = function(pageId) { - - this - .waitForElementVisible(pageId, 3000) - - return this; // allows the command to be chained. -}; diff --git a/LesionTracker/tests/nightwatch/globals.json b/LesionTracker/tests/nightwatch/globals.json deleted file mode 100644 index d41eedcb1..000000000 --- a/LesionTracker/tests/nightwatch/globals.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "default" : { - "myGlobal" : 1 - }, - "test_env" : { - "myGlobal" : 2 - } -} diff --git a/LesionTracker/tests/nightwatch/logs/selenium-debug.log b/LesionTracker/tests/nightwatch/logs/selenium-debug.log deleted file mode 100644 index ecf814651..000000000 --- a/LesionTracker/tests/nightwatch/logs/selenium-debug.log +++ /dev/null @@ -1 +0,0 @@ -hh:mm:ss.sss INFO - Initializing debug log diff --git a/LesionTracker/tests/nightwatch/unittests/foo.js b/LesionTracker/tests/nightwatch/unittests/foo.js deleted file mode 100644 index 389292aaa..000000000 --- a/LesionTracker/tests/nightwatch/unittests/foo.js +++ /dev/null @@ -1,34 +0,0 @@ -//var Utils = require('lib/util/utils.js'); -module.exports = { - testTrue: function(client){ - client.assert.equal(true, true); - } - /*testFormatElapsedTime : function(client) { - var test = client.assert; - - var resultMs = Utils.formatElapsedTime(999); - var resultSec = Utils.formatElapsedTime(1999); - var resultMin = Utils.formatElapsedTime(122299, true); - - test.equal(resultMs, '999ms'); - test.equal(resultSec, '1.999s'); - test.equal(resultMin, '2m 2s / 122299ms'); - }, - - testMakeFnAsync : function(client) { - function asynFn(done) { - done(); - } - - function syncFn() {} - - var test = client.assert; - - test.equal(Utils.makeFnAsync(1, asynFn), asynFn); - - var convertedFn = Utils.makeFnAsync(1, syncFn); - convertedFn(function() { - test.ok('converted fn called'); - }); - }*/ -}; diff --git a/LesionTracker/tests/nightwatch/walkthroughs/appLayout.js b/LesionTracker/tests/nightwatch/walkthroughs/appLayout.js deleted file mode 100644 index a2122614a..000000000 --- a/LesionTracker/tests/nightwatch/walkthroughs/appLayout.js +++ /dev/null @@ -1,14 +0,0 @@ -// add tests to this file using the Nightwatch.js API -// http://nightwatchjs.org/api - -module.exports = { - "Layout & Static Pages" : function (client) { - client - .url("http://localhost:3000") - .resizeWindow(1024, 768) - .verify.elementPresent("body") - - - .end(); - } -};