Permalink
Browse files

GPII-323: Merging acceptance tests for smarthouse from svetlana into …

…master
  • Loading branch information...
2 parents 2618f0b + 2ee74c9 commit a98b17478e283526045f750a933a13b95b3639ce @kaspermarkus kaspermarkus committed Feb 25, 2014
@@ -0,0 +1,53 @@
+/*
+
+GPII Acceptance Testing
+
+Copyright 2014 Raising the Floor International
+
+Licensed under the New BSD license. You may not use this file except in
+compliance with this License.
+
+You may obtain a copy of the License at
+https://github.com/gpii/universal/LICENSE.txt
+*/
+
+/*global require*/
+
+"use strict";
+var fluid = require("universal"),
+ kettle = fluid.registerNamespace("kettle"),
+ gpii = fluid.registerNamespace("gpii");
+
+fluid.require("./AcceptanceTests_include", require);
+
+var testDefs = [
+ {
+ name: "Acceptance test with 'cloudbased' flow manager for smarthouse1 token",
+ token: "smarthouse1",
+ appinfo: encodeURIComponent("{\"OS\":{\"id\":\"linux\"},\"solutions\":[{\"id\":\"net.gpii.smarthouses\"}]}"),
+ expected: {
+ "net.gpii.smarthouses": {
+ "volume": "100",
+ "fontSize": "40",
+ "language": "gr",
+ "highContrastTheme": "black-yellow"
+ }
+ }
+ },
+ {
+ name: "Acceptance test with 'cloudbased' flow manager for smarthouse2 token",
+ token: "smarthouse2",
+ appinfo: encodeURIComponent("{\"OS\":{\"id\":\"linux\"},\"solutions\":[{\"id\":\"net.gpii.smarthouses\"}]}"),
+ expected: {
+ "net.gpii.smarthouses": {
+ "volume": "30",
+ "fontSize": "25",
+ "language": "en",
+ "highContrastTheme": "defaultTheme"
+ }
+ }
+ }
+];
+
+testDefs = gpii.acceptanceTesting.flowManager.runTests(testDefs);
+module.exports = kettle.tests.bootstrap(testDefs);
View
@@ -35,6 +35,7 @@ var testIncludes = [
"./acceptanceTests/AcceptanceTests_gnome_keyboard.js",
"./acceptanceTests/AcceptanceTests_jme.js",
"./acceptanceTests/AcceptanceTests_chrome.js",
+ "./acceptanceTests/AcceptanceTests_smarthouses.js",
"./DevelopmentTests.js"
];

0 comments on commit a98b174

Please sign in to comment.